project/uci.git
12 years agoincrease argv in batch mode to silence a false gcc 4.4 warning
Felix Fietkau [Thu, 30 Apr 2009 19:35:53 +0000 (21:35 +0200)]
increase argv in batch mode to silence a false gcc 4.4 warning

12 years agodon't bail out on locking errors, when flock() is not supported
Felix Fietkau [Thu, 23 Apr 2009 15:06:10 +0000 (17:06 +0200)]
don't bail out on locking errors, when flock() is not supported

12 years agocreate missing lib dir on installation
Felix Fietkau [Sat, 11 Apr 2009 02:53:20 +0000 (04:53 +0200)]
create missing lib dir on installation

12 years agofix const related compile error with newer gcc
Felix Fietkau [Fri, 10 Apr 2009 23:16:02 +0000 (01:16 +0200)]
fix const related compile error with newer gcc

12 years agoadd missing fflush() on close - fixes a bug in the lock/unlock order (thx, Cyrus)
Felix Fietkau [Tue, 24 Mar 2009 15:48:13 +0000 (16:48 +0100)]
add missing fflush() on close - fixes a bug in the lock/unlock order (thx, Cyrus)

12 years agofix compilation on later glibc/gcc versions with stricter checks
Felix Fietkau [Mon, 23 Feb 2009 14:57:12 +0000 (15:57 +0100)]
fix compilation on later glibc/gcc versions with stricter checks

12 years agofix signed vs unsigned char validation bug
Felix Fietkau [Tue, 20 Jan 2009 13:17:29 +0000 (14:17 +0100)]
fix signed vs unsigned char validation bug

12 years agolua: fix rewriting uci lists
Felix Fietkau [Tue, 20 Jan 2009 00:28:02 +0000 (01:28 +0100)]
lua: fix rewriting uci lists

12 years agomake the uci_ptr struct reusable after a call to uci_delete()
Felix Fietkau [Tue, 20 Jan 2009 00:07:28 +0000 (01:07 +0100)]
make the uci_ptr struct reusable after a call to uci_delete()

12 years agoadd uci.rename()
Felix Fietkau [Sun, 18 Jan 2009 02:03:32 +0000 (03:03 +0100)]
add uci.rename()

12 years agobump major version
Felix Fietkau [Sat, 27 Dec 2008 18:52:36 +0000 (19:52 +0100)]
bump major version

12 years agofix uci rename for anonymous sections
Felix Fietkau [Sat, 27 Dec 2008 18:52:18 +0000 (19:52 +0100)]
fix uci rename for anonymous sections

12 years agoadd initial version of the shell api
Felix Fietkau [Tue, 23 Dec 2008 11:31:23 +0000 (12:31 +0100)]
add initial version of the shell api

13 years agoadd foreign key and list support for ucimap
Felix Fietkau [Fri, 28 Nov 2008 10:33:23 +0000 (11:33 +0100)]
add foreign key and list support for ucimap

13 years agofix memory leak reported in https://dev.openwrt.org/ticket/4236
Felix Fietkau [Tue, 25 Nov 2008 16:29:08 +0000 (17:29 +0100)]
fix memory leak reported in https://dev.openwrt.org/ticket/4236

13 years agolua: add uci.add_history to the api
Felix Fietkau [Sat, 15 Nov 2008 11:55:33 +0000 (12:55 +0100)]
lua: add uci.add_history to the api

13 years agoadd libucimap
Felix Fietkau [Fri, 14 Nov 2008 21:38:57 +0000 (22:38 +0100)]
add libucimap

13 years agoinstall development headers
Felix Fietkau [Fri, 14 Nov 2008 21:20:27 +0000 (22:20 +0100)]
install development headers

13 years agodon't redefine container_of if it's already defined
Felix Fietkau [Fri, 14 Nov 2008 21:20:18 +0000 (22:20 +0100)]
don't redefine container_of if it's already defined

13 years agolua: fix uci.set_list
Felix Fietkau [Fri, 14 Nov 2008 16:52:11 +0000 (17:52 +0100)]
lua: fix uci.set_list

13 years agomake extended syntax on uci show optional (but enabled by default)
Felix Fietkau [Wed, 15 Oct 2008 11:39:40 +0000 (13:39 +0200)]
make extended syntax on uci show optional (but enabled by default)

13 years agoput more descriptive names on anonymous sections when running uci show (can be reused...
Felix Fietkau [Wed, 15 Oct 2008 11:27:50 +0000 (13:27 +0200)]
put more descriptive names on anonymous sections when running uci show (can be reused for uci set/del/...) - based on an idea by xMff

13 years agooverhaul package and section type validation - makes it easier to read and fixes...
Felix Fietkau [Fri, 5 Sep 2008 19:51:46 +0000 (21:51 +0200)]
overhaul package and section type validation - makes it easier to read and fixes some bugs in uci changes and uci show without explicit package references

13 years agoadd .index field to sections
Felix Fietkau [Fri, 5 Sep 2008 19:36:45 +0000 (21:36 +0200)]
add .index field to sections

13 years agofix lua binding include path
Felix Fietkau [Thu, 4 Sep 2008 23:59:14 +0000 (01:59 +0200)]
fix lua binding include path

13 years agofix uci batch nesting check (patch by lars)
Felix Fietkau [Thu, 4 Sep 2008 23:20:09 +0000 (01:20 +0200)]
fix uci batch nesting check (patch by lars)

13 years agofix segmentation fault / endless loop on history loads
Felix Fietkau [Thu, 4 Sep 2008 23:15:00 +0000 (01:15 +0200)]
fix segmentation fault / endless loop on history loads

13 years agoproperly search for lua includes and the library directory
Felix Fietkau [Sun, 31 Aug 2008 16:46:31 +0000 (18:46 +0200)]
properly search for lua includes and the library directory

13 years agoAdd mkdir to Makefile and Makefile.inc, use $prefix for binary
Jens Muecke [Sun, 24 Aug 2008 17:28:09 +0000 (19:28 +0200)]
Add mkdir to Makefile and Makefile.inc, use $prefix for binary

13 years agofix segfault in uci batch
Felix Fietkau [Sun, 31 Aug 2008 10:17:56 +0000 (12:17 +0200)]
fix segfault in uci batch

13 years agofix uci.save() with cursors
Felix Fietkau [Wed, 27 Aug 2008 21:05:21 +0000 (23:05 +0200)]
fix uci.save() with cursors

13 years agofix uci.get()
Felix Fietkau [Wed, 27 Aug 2008 20:44:44 +0000 (22:44 +0200)]
fix uci.get()

13 years agoadd \n to error messages only when output goes to stderr
Felix Fietkau [Wed, 27 Aug 2008 20:07:52 +0000 (22:07 +0200)]
add \n to error messages only when output goes to stderr

13 years agopush out uci error messages to lua as well
Felix Fietkau [Wed, 27 Aug 2008 20:05:54 +0000 (22:05 +0200)]
push out uci error messages to lua as well

13 years agoextend api to be able to get a full error string instead of printing it
Felix Fietkau [Wed, 27 Aug 2008 19:43:08 +0000 (21:43 +0200)]
extend api to be able to get a full error string instead of printing it

13 years agofix segfault in extended section lookup
Felix Fietkau [Wed, 27 Aug 2008 19:38:54 +0000 (21:38 +0200)]
fix segfault in extended section lookup

13 years agoadd uci.cursor() support based on a patch by CyrusFF
Felix Fietkau [Wed, 27 Aug 2008 18:16:58 +0000 (20:16 +0200)]
add uci.cursor() support based on a patch by CyrusFF

13 years agoadd get functions for savedir and confdir
Felix Fietkau [Wed, 27 Aug 2008 15:09:50 +0000 (17:09 +0200)]
add get functions for savedir and confdir

13 years agofix sanity checks for uci.set to be able to create new sections
Felix Fietkau [Wed, 27 Aug 2008 14:45:56 +0000 (16:45 +0200)]
fix sanity checks for uci.set to be able to create new sections

13 years agofix incomplete lookups for uci.get()
Felix Fietkau [Wed, 27 Aug 2008 14:43:40 +0000 (16:43 +0200)]
fix incomplete lookups for uci.get()

13 years agoreport errors on partial lookups for show/get in the cli instead of silently falling...
Felix Fietkau [Wed, 27 Aug 2008 14:31:49 +0000 (16:31 +0200)]
report errors on partial lookups for show/get in the cli instead of silently falling back to the last match

13 years agoCheck for segfault and illegal instruction when expecting an error
Frédéric Moulins [Tue, 26 Aug 2008 10:28:00 +0000 (12:28 +0200)]
Check for segfault and illegal instruction when expecting an error

When an error is expected, fail the test when return code is :
* 139: segmentation fault
* 132: illegal instruction

13 years agoadd an extra option check for tuple parsing
Felix [Mon, 25 Aug 2008 23:20:43 +0000 (01:20 +0200)]
add an extra option check for tuple parsing

13 years agoAdd parsing tests for get, set and show
Frédéric Moulins [Mon, 25 Aug 2008 21:46:44 +0000 (23:46 +0200)]
Add parsing tests for get, set and show

Hello,

the result of 'make test' is explicit, even if there is much noise for
the same issue I think.

Do not miss segmentation faults in the log when testing section index
corner cases.

fred

13 years agoadd .anonymous attribute for uci sections in lua
Felix [Sun, 24 Aug 2008 15:35:29 +0000 (17:35 +0200)]
add .anonymous attribute for uci sections in lua

13 years agoAdds a unit test framework based on shunit2
Felix [Sat, 23 Aug 2008 13:03:23 +0000 (15:03 +0200)]
Adds a unit test framework based on shunit2

Includes simple tests for :
- uci import
- uci export
- uci get
- uci set
- uci add

shunit2 :
http://code.google.com/p/shunit2/

Signed-off-by: Frédéric Moulins <ffrrrr@gmail.com>
13 years agofilter incomplete lookups on uci show
Felix Fietkau [Sat, 23 Aug 2008 11:39:05 +0000 (13:39 +0200)]
filter incomplete lookups on uci show

13 years agofilter out duplicate changes when using uci_set to change option values
Felix Fietkau [Sat, 23 Aug 2008 11:36:39 +0000 (13:36 +0200)]
filter out duplicate changes when using uci_set to change option values

13 years agowork around a gcc optimizer bug
Felix Fietkau [Sat, 23 Aug 2008 09:44:07 +0000 (11:44 +0200)]
work around a gcc optimizer bug

13 years agofix 4-arg uci.set()
Felix Fietkau [Sat, 23 Aug 2008 09:14:15 +0000 (11:14 +0200)]
fix 4-arg uci.set()

13 years agoadd some missing initializations
Felix Fietkau [Sat, 23 Aug 2008 09:10:41 +0000 (11:10 +0200)]
add some missing initializations

13 years agoport lua bindings to new uci api
Felix Fietkau [Sat, 23 Aug 2008 09:07:13 +0000 (11:07 +0200)]
port lua bindings to new uci api

13 years agofix uci revert
Felix Fietkau [Fri, 22 Aug 2008 20:08:06 +0000 (22:08 +0200)]
fix uci revert

13 years agofix uci delete
Felix Fietkau [Fri, 22 Aug 2008 20:03:22 +0000 (22:03 +0200)]
fix uci delete

13 years agoclean up uci_set
Felix Fietkau [Fri, 22 Aug 2008 20:02:20 +0000 (22:02 +0200)]
clean up uci_set

13 years agouci_revert api cleanup
Felix Fietkau [Fri, 22 Aug 2008 18:39:37 +0000 (20:39 +0200)]
uci_revert api cleanup

13 years agomore cleanup
Felix Fietkau [Fri, 22 Aug 2008 18:30:17 +0000 (20:30 +0200)]
more cleanup

13 years agocleanup, fix rename
Felix Fietkau [Fri, 22 Aug 2008 18:17:09 +0000 (20:17 +0200)]
cleanup, fix rename

13 years agocode cleanup, some api changes for new uci_ptr struct
Felix Fietkau [Fri, 22 Aug 2008 18:11:02 +0000 (20:11 +0200)]
code cleanup, some api changes for new uci_ptr struct

13 years agoremove uci_parse_tuple, preparation for adding a new api for lookups
Felix Fietkau [Fri, 22 Aug 2008 15:31:06 +0000 (17:31 +0200)]
remove uci_parse_tuple, preparation for adding a new api for lookups

13 years agofix extended cli lookup
Felix Fietkau [Wed, 20 Aug 2008 15:11:57 +0000 (17:11 +0200)]
fix extended cli lookup

13 years agocorrectly show list changes in "uci changes" output
Felix Fietkau [Tue, 19 Aug 2008 20:28:07 +0000 (22:28 +0200)]
correctly show list changes in "uci changes" output

13 years agolua: allow uci.set() to create/update a list value
Felix Fietkau [Tue, 19 Aug 2008 20:22:18 +0000 (22:22 +0200)]
lua: allow uci.set() to create/update a list value

13 years agofix list parsing with anonymous sections
Felix Fietkau [Mon, 18 Aug 2008 20:14:14 +0000 (22:14 +0200)]
fix list parsing with anonymous sections

13 years agofix wrong buffer allocation
Felix Fietkau [Mon, 18 Aug 2008 19:49:13 +0000 (21:49 +0200)]
fix wrong buffer allocation

13 years agofix use-after-free
Felix Fietkau [Mon, 18 Aug 2008 19:48:57 +0000 (21:48 +0200)]
fix use-after-free

13 years agofix lookup for section commands in the cli
Felix Fietkau [Mon, 18 Aug 2008 16:49:28 +0000 (18:49 +0200)]
fix lookup for section commands in the cli

13 years agoadd list support to the uci lua binding
Felix Fietkau [Mon, 18 Aug 2008 15:11:00 +0000 (17:11 +0200)]
add list support to the uci lua binding

13 years agoadd list support
Felix Fietkau [Mon, 18 Aug 2008 14:54:57 +0000 (16:54 +0200)]
add list support

13 years agoadd initial work for option datatype abstraction
Felix Fietkau [Sun, 17 Aug 2008 18:57:52 +0000 (20:57 +0200)]
add initial work for option datatype abstraction

13 years agobump library version to 0.5
Felix Fietkau [Sun, 17 Aug 2008 16:03:35 +0000 (18:03 +0200)]
bump library version to 0.5

13 years agoimplement extended uci lookup syntax
Felix Fietkau [Sun, 17 Aug 2008 16:03:13 +0000 (18:03 +0200)]
implement extended uci lookup syntax

13 years agoFix uci show for sections and options.
Felix Fietkau [Sun, 17 Aug 2008 13:40:33 +0000 (15:40 +0200)]
Fix uci show for sections and options.

Signed-off-by: Frédéric Moulins <ffrrrr at gmail.com>
13 years agoanother one
Felix Fietkau [Thu, 31 Jul 2008 16:13:57 +0000 (18:13 +0200)]
another one

13 years agofix a really stupid bug
Felix Fietkau [Thu, 31 Jul 2008 15:49:06 +0000 (17:49 +0200)]
fix a really stupid bug

13 years agofix some parser glitches
Felix Fietkau [Thu, 31 Jul 2008 01:07:29 +0000 (03:07 +0200)]
fix some parser glitches

13 years agosome more input validation
Felix Fietkau [Wed, 30 Jul 2008 19:37:24 +0000 (21:37 +0200)]
some more input validation

13 years agofix a stupid duplicate value checking bug (patch by Frédéric Moulins)
Felix Fietkau [Fri, 20 Jun 2008 17:22:25 +0000 (19:22 +0200)]
fix a stupid duplicate value checking bug (patch by Frédéric Moulins)

13 years agoallow the cli to override the confdir
Felix Fietkau [Fri, 6 Jun 2008 18:23:52 +0000 (20:23 +0200)]
allow the cli to override the confdir

13 years agouse the correct soname for libuci
Felix Fietkau [Wed, 4 Jun 2008 22:38:49 +0000 (00:38 +0200)]
use the correct soname for libuci

13 years agoreplace the uci_escape function with something cleaner, fixes some quoted string...
Felix Fietkau [Wed, 4 Jun 2008 22:38:32 +0000 (00:38 +0200)]
replace the uci_escape function with something cleaner, fixes some quoted string escaping issues

13 years agodon't record a changed value if the new value matches the old one
Felix Fietkau [Wed, 4 Jun 2008 15:25:03 +0000 (17:25 +0200)]
don't record a changed value if the new value matches the old one

13 years agolua binding: add .name attribute for sections pushed by uci.foreach and uci.get_all
Felix Fietkau [Wed, 4 Jun 2008 15:17:25 +0000 (17:17 +0200)]
lua binding: add .name attribute for sections pushed by uci.foreach and uci.get_all

13 years agoadjust default installation target dir for uci lua binding
Felix Fietkau [Wed, 4 Jun 2008 15:14:57 +0000 (17:14 +0200)]
adjust default installation target dir for uci lua binding

13 years agouse .type instead of .TYPE
Felix Fietkau [Tue, 3 Jun 2008 21:38:38 +0000 (23:38 +0200)]
use .type instead of .TYPE

13 years agominor cleanup
Felix Fietkau [Tue, 3 Jun 2008 21:36:01 +0000 (23:36 +0200)]
minor cleanup

13 years agochange the format of uci.get_all() - reduce the number of tables used and make it...
Felix Fietkau [Tue, 3 Jun 2008 21:35:17 +0000 (23:35 +0200)]
change the format of uci.get_all() - reduce the number of tables used and make it possible to do uci.get_all("package").section.option

13 years agoimplement uci.changes() in lua binding
Felix Fietkau [Tue, 3 Jun 2008 21:21:49 +0000 (23:21 +0200)]
implement uci.changes() in lua binding

13 years agoload the saved history by default to make things easier for the lua binding
Felix Fietkau [Tue, 3 Jun 2008 20:23:10 +0000 (22:23 +0200)]
load the saved history by default to make things easier for the lua binding

13 years agoimplement uci.delete() in the lua binding
Felix Fietkau [Tue, 3 Jun 2008 19:38:56 +0000 (21:38 +0200)]
implement uci.delete() in the lua binding

13 years agomore const stuff
Felix Fietkau [Tue, 3 Jun 2008 19:38:21 +0000 (21:38 +0200)]
more const stuff

13 years agoimplement autoload for uci lua binding (optional, enabled by default)
Felix Fietkau [Mon, 26 May 2008 14:09:46 +0000 (16:09 +0200)]
implement autoload for uci lua binding (optional, enabled by default)

13 years agofix invocation of uci.commit(), uci.save() without arguments
Felix Fietkau [Mon, 26 May 2008 13:53:07 +0000 (15:53 +0200)]
fix invocation of uci.commit(), uci.save() without arguments

13 years agoadd uci.add() to lua binding
Felix Fietkau [Mon, 26 May 2008 13:50:35 +0000 (15:50 +0200)]
add uci.add() to lua binding

13 years agomore const stuff
Felix Fietkau [Mon, 26 May 2008 13:48:20 +0000 (15:48 +0200)]
more const stuff

13 years agoallow more types of characters for uci package names
Felix Fietkau [Sat, 3 May 2008 17:02:56 +0000 (19:02 +0200)]
allow more types of characters for uci package names

13 years agoadd 2 and 3 argument versions of uci.get()
Felix Fietkau [Thu, 1 May 2008 11:38:15 +0000 (13:38 +0200)]
add 2 and 3 argument versions of uci.get()

13 years agoconstify
Felix Fietkau [Thu, 1 May 2008 11:29:39 +0000 (13:29 +0200)]
constify

13 years agoadd uci.foreach()
Felix Fietkau [Thu, 1 May 2008 10:43:18 +0000 (12:43 +0200)]
add uci.foreach()

13 years agoadd uci.get_all to the lua binding, which converts a section or package to a lua...
Felix Fietkau [Thu, 1 May 2008 10:13:35 +0000 (12:13 +0200)]
add uci.get_all to the lua binding, which converts a section or package to a lua datastructure