oweals/uci.git
16 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

16 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

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

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

16 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

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

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

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

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

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

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

16 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

16 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

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

16 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

16 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

16 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

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

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

16 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

16 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

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

16 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

16 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

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

16 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>
16 years agoanother one
Felix Fietkau [Thu, 31 Jul 2008 16:13:57 +0000 (18:13 +0200)]
another one

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

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

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

16 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)

16 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

16 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

16 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

16 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

16 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

16 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

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

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

16 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

16 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

16 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

16 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

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

16 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)

16 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

16 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

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

16 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

16 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()

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

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

16 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

16 years agofix lua plugin linking
Felix Fietkau [Thu, 1 May 2008 09:00:29 +0000 (11:00 +0200)]
fix lua plugin linking

16 years agoadd revert, merge package handler functions
Felix Fietkau [Sun, 13 Apr 2008 14:08:52 +0000 (16:08 +0200)]
add revert, merge package handler functions

16 years agoconstify
Felix Fietkau [Sun, 13 Apr 2008 14:03:00 +0000 (16:03 +0200)]
constify

16 years agocompile fixes for native compilation
Felix Fietkau [Sun, 13 Apr 2008 13:43:14 +0000 (15:43 +0200)]
compile fixes for native compilation

16 years agobuild variable sharing between uci and uci-lua, proper installation for lua plugin
Felix Fietkau [Sun, 13 Apr 2008 13:28:29 +0000 (15:28 +0200)]
build variable sharing between uci and uci-lua, proper installation for lua plugin

16 years agofix unused variable
Felix Fietkau [Sun, 13 Apr 2008 13:28:09 +0000 (15:28 +0200)]
fix unused variable

16 years agoadd make install to the uci build directory
Felix Fietkau [Sun, 13 Apr 2008 13:20:29 +0000 (15:20 +0200)]
add make install to the uci build directory

16 years agoset, save, commit for the lua plugin
Felix Fietkau [Sun, 13 Apr 2008 13:08:34 +0000 (15:08 +0200)]
set, save, commit for the lua plugin

16 years agotypechecking, add set_confdir and set_savedir
Felix Fietkau [Sun, 13 Apr 2008 12:42:48 +0000 (14:42 +0200)]
typechecking, add set_confdir and set_savedir

16 years agoadd uci.unload to the lua plugin
Felix Fietkau [Sun, 13 Apr 2008 11:32:16 +0000 (13:32 +0200)]
add uci.unload to the lua plugin

16 years agoadd rudimentary lua binding for uci (can only do "load" and "get" at the moment and...
Felix Fietkau [Sun, 13 Apr 2008 11:06:54 +0000 (13:06 +0200)]
add rudimentary lua binding for uci (can only do "load" and "get" at the moment and does not free memory on gc)

16 years agorename ctx->errno to ctx->err to avoid conflicts with a #define errno in the system...
Felix Fietkau [Wed, 9 Apr 2008 10:41:14 +0000 (12:41 +0200)]
rename ctx->errno to ctx->err to avoid conflicts with a #define errno in the system headers

16 years agoparser: fix precedence of quoting over ; as command terminator, thx to netprince...
Felix Fietkau [Tue, 8 Apr 2008 19:20:41 +0000 (21:20 +0200)]
parser: fix precedence of quoting over ; as command terminator, thx to netprince for spotting the bug

16 years agoadd missing helptext for commit
Felix Fietkau [Thu, 27 Mar 2008 11:06:34 +0000 (16:36 +0530)]
add missing helptext for commit

16 years agofix a bug that prevented modifying empty config files
Felix Fietkau [Tue, 12 Feb 2008 21:01:50 +0000 (22:01 +0100)]
fix a bug that prevented modifying empty config files

16 years agoadd an extra check for uci_lookup
Felix Fietkau [Tue, 12 Feb 2008 20:46:50 +0000 (21:46 +0100)]
add an extra check for uci_lookup

16 years agomore functionality for plugins
Felix Fietkau [Tue, 12 Feb 2008 12:31:43 +0000 (13:31 +0100)]
more functionality for plugins

16 years agocreate the history savedir on uci_save() if it does not exist
Felix Fietkau [Tue, 12 Feb 2008 12:30:25 +0000 (13:30 +0100)]
create the history savedir on uci_save() if it does not exist

16 years agomore plugin support
Felix Fietkau [Tue, 12 Feb 2008 12:19:42 +0000 (13:19 +0100)]
more plugin support

16 years agoadd feature flags for the build process, improve automatic rebuild
Felix Fietkau [Tue, 12 Feb 2008 11:43:14 +0000 (12:43 +0100)]
add feature flags for the build process, improve automatic rebuild

16 years agomake more functions available externally
Felix Fietkau [Tue, 12 Feb 2008 11:38:41 +0000 (12:38 +0100)]
make more functions available externally

16 years agoconsistency
Felix Fietkau [Tue, 12 Feb 2008 11:24:36 +0000 (12:24 +0100)]
consistency

16 years agoimprove error handling
Felix Fietkau [Tue, 12 Feb 2008 11:22:02 +0000 (12:22 +0100)]
improve error handling

16 years agofold err.h into uci_internal.h
Felix Fietkau [Tue, 12 Feb 2008 11:19:11 +0000 (12:19 +0100)]
fold err.h into uci_internal.h

16 years agoadd uci_set_backend()
Felix Fietkau [Tue, 12 Feb 2008 11:16:39 +0000 (12:16 +0100)]
add uci_set_backend()

16 years agouse the per-package backend on commit
Felix Fietkau [Tue, 12 Feb 2008 11:11:15 +0000 (12:11 +0100)]
use the per-package backend on commit

16 years agocleanup
Felix Fietkau [Tue, 12 Feb 2008 11:09:35 +0000 (12:09 +0100)]
cleanup

16 years agoremove some unused stuff
Felix Fietkau [Tue, 12 Feb 2008 10:53:49 +0000 (11:53 +0100)]
remove some unused stuff

16 years agofix uci_set
Felix Fietkau [Tue, 12 Feb 2008 10:49:56 +0000 (11:49 +0100)]
fix uci_set

16 years agomore debugging
Felix Fietkau [Tue, 12 Feb 2008 10:49:41 +0000 (11:49 +0100)]
more debugging

16 years agoadd comment about memory handling in list_configs
Felix Fietkau [Tue, 12 Feb 2008 10:37:45 +0000 (11:37 +0100)]
add comment about memory handling in list_configs

16 years agoadd abstraction for listing config files as well
Felix Fietkau [Tue, 12 Feb 2008 10:36:24 +0000 (11:36 +0100)]
add abstraction for listing config files as well

16 years agobump library version
Felix Fietkau [Tue, 12 Feb 2008 10:32:04 +0000 (11:32 +0100)]
bump library version

16 years agosome backend abstraction
Felix Fietkau [Tue, 12 Feb 2008 10:31:41 +0000 (11:31 +0100)]
some backend abstraction

16 years agofold uci_file_cleanup into uci_cleanup
Felix Fietkau [Tue, 12 Feb 2008 10:02:00 +0000 (11:02 +0100)]
fold uci_file_cleanup into uci_cleanup

16 years agobump library version number
Felix Fietkau [Sat, 9 Feb 2008 16:34:47 +0000 (17:34 +0100)]
bump library version number

16 years agoreorganize some code, add an extra command for adding unnamed sections
Felix Fietkau [Sat, 9 Feb 2008 16:31:21 +0000 (17:31 +0100)]
reorganize some code, add an extra command for adding unnamed sections

16 years agoremove accidentally committed junk
Felix Fietkau [Sat, 9 Feb 2008 15:48:43 +0000 (16:48 +0100)]
remove accidentally committed junk

16 years agoextend uci_set so that it can store the resulting element in a variable
Felix Fietkau [Wed, 6 Feb 2008 14:52:53 +0000 (15:52 +0100)]
extend uci_set so that it can store the resulting element in a variable

16 years agouse strsep instead of strtok to avoid a segfault
Felix Fietkau [Wed, 6 Feb 2008 14:47:04 +0000 (15:47 +0100)]
use strsep instead of strtok to avoid a segfault

16 years agofix uci_parse_tuple
Felix Fietkau [Tue, 5 Feb 2008 20:25:00 +0000 (21:25 +0100)]
fix uci_parse_tuple

16 years agoadd a missing nullpointer check
Felix Fietkau [Tue, 5 Feb 2008 04:59:20 +0000 (05:59 +0100)]
add a missing nullpointer check

16 years agofix an off-by-one error that prevented the open() check from succeeding, if stdin...
Felix Fietkau [Tue, 5 Feb 2008 02:25:54 +0000 (03:25 +0100)]
fix an off-by-one error that prevented the open() check from succeeding, if stdin is closed

16 years agoallow merge-import, even if the config file does not exist yet
Felix Fietkau [Tue, 5 Feb 2008 01:09:25 +0000 (02:09 +0100)]
allow merge-import, even if the config file does not exist yet

16 years agoadd missing line to command line help
Felix Fietkau [Tue, 5 Feb 2008 00:35:43 +0000 (01:35 +0100)]
add missing line to command line help

16 years agoadd missing include statement
Felix Fietkau [Tue, 5 Feb 2008 00:30:03 +0000 (01:30 +0100)]
add missing include statement

16 years agoimplement the uci changes command to display uncommitted changes
Felix Fietkau [Tue, 5 Feb 2008 00:23:55 +0000 (01:23 +0100)]
implement the uci changes command to display uncommitted changes