project/uci.git
11 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

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

12 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

12 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

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

12 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

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

12 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

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

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

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

12 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

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

12 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

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

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

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

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

12 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

12 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

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

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

12 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

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

12 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

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

12 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

12 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

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

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

12 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

12 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

12 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

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

12 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

12 years agoimplement batch mode in cli
Felix Fietkau [Mon, 4 Feb 2008 23:35:24 +0000 (00:35 +0100)]
implement batch mode in cli

12 years agoimprove the argument parser
Felix Fietkau [Mon, 4 Feb 2008 23:33:59 +0000 (00:33 +0100)]
improve the argument parser

12 years agoexport a function for parsing shell-style arguments in libuci
Felix Fietkau [Mon, 4 Feb 2008 22:51:08 +0000 (23:51 +0100)]
export a function for parsing shell-style arguments in libuci

12 years agoonly overwrite config files at commit time when actual changes were made
Felix Fietkau [Mon, 4 Feb 2008 22:08:51 +0000 (23:08 +0100)]
only overwrite config files at commit time when actual changes were made

12 years agoimprove validation, accept more characters in the section type
Felix Fietkau [Mon, 4 Feb 2008 21:56:03 +0000 (22:56 +0100)]
improve validation, accept more characters in the section type

12 years agomake the value of an option optional (found by lubek)
Felix Fietkau [Mon, 4 Feb 2008 21:02:34 +0000 (22:02 +0100)]
make the value of an option optional (found by lubek)

12 years agofix a small memleak
Felix Fietkau [Sun, 3 Feb 2008 07:25:18 +0000 (08:25 +0100)]
fix a small memleak

12 years agofix a few bugs found during code review
Felix Fietkau [Sun, 3 Feb 2008 06:37:20 +0000 (07:37 +0100)]
fix a few bugs found during code review

12 years agoimplement uci revert
Felix Fietkau [Sun, 3 Feb 2008 05:05:08 +0000 (06:05 +0100)]
implement uci revert

12 years agomove history code into history.c
Felix Fietkau [Sun, 3 Feb 2008 04:10:21 +0000 (05:10 +0100)]
move history code into history.c

12 years agofix accidental lowercasing of license headers
Felix Fietkau [Sun, 3 Feb 2008 04:00:21 +0000 (05:00 +0100)]
fix accidental lowercasing of license headers

12 years agocli: don't commit, if the savedir was overwritten
Felix Fietkau [Sun, 3 Feb 2008 03:44:57 +0000 (04:44 +0100)]
cli: don't commit, if the savedir was overwritten

12 years agoadd a comment about history path
Felix Fietkau [Sun, 3 Feb 2008 03:43:08 +0000 (04:43 +0100)]
add a comment about history path

12 years agomake use of the history path feature in the cli
Felix Fietkau [Sun, 3 Feb 2008 03:37:44 +0000 (04:37 +0100)]
make use of the history path feature in the cli

12 years agoadd history search path
Felix Fietkau [Sun, 3 Feb 2008 03:31:34 +0000 (04:31 +0100)]
add history search path

12 years agoallow the user of the library to override the confdir/searchdir
Felix Fietkau [Sun, 3 Feb 2008 02:48:45 +0000 (03:48 +0100)]
allow the user of the library to override the confdir/searchdir

12 years agosome extra null pointer checks
Felix Fietkau [Sun, 3 Feb 2008 02:05:03 +0000 (03:05 +0100)]
some extra null pointer checks

12 years agoparse comments properly
Felix Fietkau [Sun, 3 Feb 2008 01:56:41 +0000 (02:56 +0100)]
parse comments properly

12 years agoallow the make command line to override LD properly
Felix Fietkau [Sun, 3 Feb 2008 01:33:48 +0000 (02:33 +0100)]
allow the make command line to override LD properly

12 years agoadd quiet mode flag for cli
Felix Fietkau [Sun, 3 Feb 2008 01:32:45 +0000 (02:32 +0100)]
add quiet mode flag for cli

12 years agominor comments
Felix Fietkau [Sun, 3 Feb 2008 00:55:32 +0000 (01:55 +0100)]
minor comments

12 years agosave some space
Felix Fietkau [Sun, 3 Feb 2008 00:52:09 +0000 (01:52 +0100)]
save some space

12 years agobetter input validation
Felix Fietkau [Sun, 3 Feb 2008 00:48:12 +0000 (01:48 +0100)]
better input validation

12 years agodisable EOL check for non-strict mode
Felix Fietkau [Sun, 3 Feb 2008 00:19:26 +0000 (01:19 +0100)]
disable EOL check for non-strict mode

12 years agofix filename validation
Felix Fietkau [Sun, 3 Feb 2008 00:17:14 +0000 (01:17 +0100)]
fix filename validation

12 years agofix typo
Felix Fietkau [Sat, 2 Feb 2008 23:46:51 +0000 (00:46 +0100)]
fix typo

12 years agofix more compile errors
Felix Fietkau [Sat, 2 Feb 2008 23:46:08 +0000 (00:46 +0100)]
fix more compile errors

12 years agofix compiler error under linux
Felix Fietkau [Sat, 2 Feb 2008 23:43:47 +0000 (00:43 +0100)]
fix compiler error under linux

12 years agoadd missing flags
Felix Fietkau [Sat, 2 Feb 2008 23:43:37 +0000 (00:43 +0100)]
add missing flags

12 years agoadd shared library support
Felix Fietkau [Sat, 2 Feb 2008 23:41:32 +0000 (00:41 +0100)]
add shared library support

12 years agoadd flag for naming unnamed sections
Felix Fietkau [Sat, 2 Feb 2008 23:25:50 +0000 (00:25 +0100)]
add flag for naming unnamed sections

12 years agoremove unused variables
Felix Fietkau [Sat, 2 Feb 2008 23:12:10 +0000 (00:12 +0100)]
remove unused variables

12 years agosplit warning options from other compiler options
Felix Fietkau [Sat, 2 Feb 2008 23:10:21 +0000 (00:10 +0100)]
split warning options from other compiler options

12 years agofix file input for cli
Felix Fietkau [Sat, 2 Feb 2008 23:06:20 +0000 (00:06 +0100)]
fix file input for cli

12 years agoimplement overwriting import
Felix Fietkau [Sat, 2 Feb 2008 23:03:56 +0000 (00:03 +0100)]
implement overwriting import

12 years agoadd support for merged importing
Felix Fietkau [Sat, 2 Feb 2008 22:46:58 +0000 (23:46 +0100)]
add support for merged importing

12 years agooptimization
Felix Fietkau [Sat, 2 Feb 2008 22:05:16 +0000 (23:05 +0100)]
optimization

12 years agoadd stub for uci import
Felix Fietkau [Sat, 2 Feb 2008 22:01:01 +0000 (23:01 +0100)]
add stub for uci import

12 years agoconstify
Felix Fietkau [Sat, 2 Feb 2008 21:55:01 +0000 (22:55 +0100)]
constify

12 years agovalidate the package name for import
Felix Fietkau [Sat, 2 Feb 2008 21:54:29 +0000 (22:54 +0100)]
validate the package name for import

12 years agomore error handling for internal uci_import calls
Felix Fietkau [Sat, 2 Feb 2008 21:49:09 +0000 (22:49 +0100)]
more error handling for internal uci_import calls

12 years agoadd import merging functionality, fix error handling in uci_import
Felix Fietkau [Sat, 2 Feb 2008 21:47:00 +0000 (22:47 +0100)]
add import merging functionality, fix error handling in uci_import

12 years agoimplement uci rename
Felix Fietkau [Sat, 2 Feb 2008 20:36:56 +0000 (21:36 +0100)]
implement uci rename

12 years agokeep unnamed sections unnamed on export
Felix Fietkau [Sat, 2 Feb 2008 15:42:51 +0000 (16:42 +0100)]
keep unnamed sections unnamed on export
add some safety to altering unnamed sections by generating the name from a hash of its type and its option/value pairs

12 years agoaccept unnamed sections
Felix Fietkau [Wed, 30 Jan 2008 19:16:28 +0000 (20:16 +0100)]
accept unnamed sections

12 years agocli code cleanup
Felix Fietkau [Wed, 30 Jan 2008 04:25:45 +0000 (05:25 +0100)]
cli code cleanup

12 years agoproper commit support, better debugging
Felix Fietkau [Wed, 30 Jan 2008 04:13:59 +0000 (05:13 +0100)]
proper commit support, better debugging

12 years agofree the history on package unload
Felix Fietkau [Wed, 30 Jan 2008 02:56:25 +0000 (03:56 +0100)]
free the history on package unload

12 years agodocument UCI_INTERNAL
Felix Fietkau [Wed, 30 Jan 2008 02:48:43 +0000 (03:48 +0100)]
document UCI_INTERNAL

12 years agosome helpful comments
Felix Fietkau [Wed, 30 Jan 2008 02:46:54 +0000 (03:46 +0100)]
some helpful comments

12 years agocreate history files with the proper mode
Felix Fietkau [Wed, 30 Jan 2008 02:20:58 +0000 (03:20 +0100)]
create history files with the proper mode

12 years agofree uci_history entries properly
Felix Fietkau [Wed, 30 Jan 2008 02:18:56 +0000 (03:18 +0100)]
free uci_history entries properly

12 years agoplug a memleak
Felix Fietkau [Wed, 30 Jan 2008 02:14:49 +0000 (03:14 +0100)]
plug a memleak

12 years agochange uci_list_configs api for proper exception handling
Felix Fietkau [Wed, 30 Jan 2008 02:11:36 +0000 (03:11 +0100)]
change uci_list_configs api for proper exception handling

12 years agodisable history tracking for non-confdir files
Felix Fietkau [Wed, 30 Jan 2008 02:05:37 +0000 (03:05 +0100)]
disable history tracking for non-confdir files

12 years agoadd strict mode to the cli usage
Felix Fietkau [Wed, 30 Jan 2008 02:02:23 +0000 (03:02 +0100)]
add strict mode to the cli usage

12 years agoadd strict mode flag (enabled by default, can be disabled to ignore lines with parser...
Felix Fietkau [Wed, 30 Jan 2008 01:58:57 +0000 (02:58 +0100)]
add strict mode flag (enabled by default, can be disabled to ignore lines with parser errors)

12 years agomove the stat check to the stream open function
Felix Fietkau [Wed, 30 Jan 2008 01:25:47 +0000 (02:25 +0100)]
move the stat check to the stream open function

12 years agoadd proper history tracking for delete
Felix Fietkau [Wed, 30 Jan 2008 00:38:03 +0000 (01:38 +0100)]
add proper history tracking for delete

12 years agoextra checks
Felix Fietkau [Tue, 29 Jan 2008 23:38:53 +0000 (00:38 +0100)]
extra checks

12 years agoimplement history parsing
Felix Fietkau [Tue, 29 Jan 2008 23:14:54 +0000 (00:14 +0100)]
implement history parsing

12 years agoadd extra null pointer check
Felix Fietkau [Tue, 29 Jan 2008 18:21:00 +0000 (19:21 +0100)]
add extra null pointer check

12 years agoclean up history handling
Felix Fietkau [Tue, 29 Jan 2008 18:20:25 +0000 (19:20 +0100)]
clean up history handling

12 years agoset -O0 for debug builds
Felix Fietkau [Tue, 29 Jan 2008 18:20:10 +0000 (19:20 +0100)]
set -O0 for debug builds

12 years agofix updated parse_tuple function
Felix Fietkau [Tue, 29 Jan 2008 18:19:53 +0000 (19:19 +0100)]
fix updated parse_tuple function