Commit Graph

  • f544a5cefb add uci.foreach() Felix Fietkau 2008-05-01 12:43:18 +02:00
  • 562dc0ce59 add uci.get_all to the lua binding, which converts a section or package to a lua datastructure Felix Fietkau 2008-05-01 12:13:35 +02:00
  • 55736115e7 fix lua plugin linking Felix Fietkau 2008-05-01 11:00:29 +02:00
  • c4cecfa593 add revert, merge package handler functions Felix Fietkau 2008-04-13 16:08:52 +02:00
  • f1ae2ddc4f constify Felix Fietkau 2008-04-13 16:03:00 +02:00
  • 68b14ef1b5 compile fixes for native compilation Felix Fietkau 2008-04-13 15:43:14 +02:00
  • 3da86cbf98 build variable sharing between uci and uci-lua, proper installation for lua plugin Felix Fietkau 2008-04-13 15:28:29 +02:00
  • f7bf32d989 fix unused variable Felix Fietkau 2008-04-13 15:28:09 +02:00
  • 66311debd9 add make install to the uci build directory Felix Fietkau 2008-04-13 15:20:29 +02:00
  • 928edd2bff set, save, commit for the lua plugin Felix Fietkau 2008-04-13 15:08:34 +02:00
  • 8032b67176 typechecking, add set_confdir and set_savedir Felix Fietkau 2008-04-13 14:42:48 +02:00
  • 4837364113 add uci.unload to the lua plugin Felix Fietkau 2008-04-13 13:32:16 +02:00
  • 42c5188ed4 add rudimentary lua binding for uci (can only do "load" and "get" at the moment and does not free memory on gc) Felix Fietkau 2008-04-13 13:06:54 +02:00
  • 51b60a322a rename ctx->errno to ctx->err to avoid conflicts with a #define errno in the system headers Felix Fietkau 2008-04-09 12:41:14 +02:00
  • d4bab37948 parser: fix precedence of quoting over ; as command terminator, thx to netprince for spotting the bug Felix Fietkau 2008-04-08 21:20:41 +02:00
  • 043baa6067 add missing helptext for commit Felix Fietkau 2008-03-27 16:36:34 +05:30
  • 1c7d6f7766 fix a bug that prevented modifying empty config files Felix Fietkau 2008-02-12 22:01:50 +01:00
  • 5510ccd7a9 add an extra check for uci_lookup Felix Fietkau 2008-02-12 21:46:50 +01:00
  • ce0ffab408 more functionality for plugins Felix Fietkau 2008-02-12 13:31:43 +01:00
  • 8dd3eb5002 create the history savedir on uci_save() if it does not exist Felix Fietkau 2008-02-12 13:30:25 +01:00
  • 7cefa00ead more plugin support Felix Fietkau 2008-02-12 13:19:42 +01:00
  • 406d259cd1 add feature flags for the build process, improve automatic rebuild Felix Fietkau 2008-02-12 12:43:14 +01:00
  • 68ced4fb64 make more functions available externally Felix Fietkau 2008-02-12 12:38:41 +01:00
  • 4e55f6b382 consistency Felix Fietkau 2008-02-12 12:24:36 +01:00
  • 2a3ffb0a3f improve error handling Felix Fietkau 2008-02-12 12:22:02 +01:00
  • 5dd8939426 fold err.h into uci_internal.h Felix Fietkau 2008-02-12 12:19:11 +01:00
  • 53726f5dd5 add uci_set_backend() Felix Fietkau 2008-02-12 12:16:39 +01:00
  • 4f629ff865 use the per-package backend on commit Felix Fietkau 2008-02-12 12:11:15 +01:00
  • c90d9cb8ba cleanup Felix Fietkau 2008-02-12 12:09:35 +01:00
  • 5faea6dcdf remove some unused stuff Felix Fietkau 2008-02-12 11:53:49 +01:00
  • 7ca5c675d7 fix uci_set Felix Fietkau 2008-02-12 11:49:56 +01:00
  • 7f054d4ea2 more debugging Felix Fietkau 2008-02-12 11:49:41 +01:00
  • 0731533959 add comment about memory handling in list_configs Felix Fietkau 2008-02-12 11:37:45 +01:00
  • 80e2e58f4e add abstraction for listing config files as well Felix Fietkau 2008-02-12 11:36:24 +01:00
  • d11b68d884 bump library version Felix Fietkau 2008-02-12 11:32:04 +01:00
  • 85125c59e6 some backend abstraction Felix Fietkau 2008-02-12 11:31:41 +01:00
  • c57e7c3943 fold uci_file_cleanup into uci_cleanup Felix Fietkau 2008-02-12 11:02:00 +01:00
  • fb45f840ab bump library version number Felix Fietkau 2008-02-09 17:34:47 +01:00
  • 9f540f2106 reorganize some code, add an extra command for adding unnamed sections Felix Fietkau 2008-02-09 17:31:21 +01:00
  • 20925c2795 remove accidentally committed junk Felix Fietkau 2008-02-09 16:48:43 +01:00
  • 5620bfaa14 extend uci_set so that it can store the resulting element in a variable Felix Fietkau 2008-02-06 15:52:53 +01:00
  • 735792ded0 use strsep instead of strtok to avoid a segfault Felix Fietkau 2008-02-06 15:47:04 +01:00
  • 12bdbcd95d fix uci_parse_tuple Felix Fietkau 2008-02-05 21:25:00 +01:00
  • a428a41ac9 add a missing nullpointer check Felix Fietkau 2008-02-05 05:59:20 +01:00
  • cba72526bb fix an off-by-one error that prevented the open() check from succeeding, if stdin is closed Felix Fietkau 2008-02-05 03:25:54 +01:00
  • d0cd0868cd allow merge-import, even if the config file does not exist yet Felix Fietkau 2008-02-05 02:09:25 +01:00
  • ec06b60edb add missing line to command line help Felix Fietkau 2008-02-05 01:35:43 +01:00
  • 031b620e1f add missing include statement Felix Fietkau 2008-02-05 01:30:03 +01:00
  • 1465422326 implement the uci changes command to display uncommitted changes Felix Fietkau 2008-02-05 01:23:55 +01:00
  • 24c59ffa00 implement batch mode in cli Felix Fietkau 2008-02-05 00:35:24 +01:00
  • c394d8787d improve the argument parser Felix Fietkau 2008-02-05 00:33:59 +01:00
  • 1ac34884c1 export a function for parsing shell-style arguments in libuci Felix Fietkau 2008-02-04 23:51:08 +01:00
  • 907e27f801 only overwrite config files at commit time when actual changes were made Felix Fietkau 2008-02-04 23:08:51 +01:00
  • e828bcf07c improve validation, accept more characters in the section type Felix Fietkau 2008-02-04 22:56:03 +01:00
  • ad92cae5b9 make the value of an option optional (found by lubek) Felix Fietkau 2008-02-04 22:02:34 +01:00
  • a15a9c2c71 fix a small memleak Felix Fietkau 2008-02-03 08:25:18 +01:00
  • cf66ea9067 fix a few bugs found during code review Felix Fietkau 2008-02-03 07:37:20 +01:00
  • 65e2c3559b implement uci revert Felix Fietkau 2008-02-03 06:05:08 +01:00
  • 818f7b8433 move history code into history.c Felix Fietkau 2008-02-03 05:10:21 +01:00
  • f2520c27cd fix accidental lowercasing of license headers Felix Fietkau 2008-02-03 05:00:21 +01:00
  • cd2883daec cli: don't commit, if the savedir was overwritten Felix Fietkau 2008-02-03 04:44:57 +01:00
  • 53ddba8280 add a comment about history path Felix Fietkau 2008-02-03 04:43:08 +01:00
  • 2b4872345a make use of the history path feature in the cli Felix Fietkau 2008-02-03 04:37:44 +01:00
  • 96d35364c9 add history search path Felix Fietkau 2008-02-03 04:31:34 +01:00
  • c228bf838c allow the user of the library to override the confdir/searchdir Felix Fietkau 2008-02-03 03:48:45 +01:00
  • abccd307f4 some extra null pointer checks Felix Fietkau 2008-02-03 03:05:03 +01:00
  • 60d40fa1a8 parse comments properly Felix Fietkau 2008-02-03 02:56:41 +01:00
  • 52531af950 allow the make command line to override LD properly Felix Fietkau 2008-02-03 02:33:48 +01:00
  • 28caa37a5d add quiet mode flag for cli Felix Fietkau 2008-02-03 02:32:45 +01:00
  • 27cef8e191 minor comments Felix Fietkau 2008-02-03 01:55:32 +01:00
  • 0a18953fa3 save some space Felix Fietkau 2008-02-03 01:52:09 +01:00
  • ee1d58013e better input validation Felix Fietkau 2008-02-03 01:48:12 +01:00
  • b12bd89466 disable EOL check for non-strict mode Felix Fietkau 2008-02-03 01:19:26 +01:00
  • 1188f6ac8a fix filename validation Felix Fietkau 2008-02-03 01:17:14 +01:00
  • 23feab3914 fix typo Felix Fietkau 2008-02-03 00:46:51 +01:00
  • 14bd2704bb fix more compile errors Felix Fietkau 2008-02-03 00:46:08 +01:00
  • 402b084b1e fix compiler error under linux Felix Fietkau 2008-02-03 00:43:47 +01:00
  • 3805b1bec0 add missing flags Felix Fietkau 2008-02-03 00:43:37 +01:00
  • c065d5043c add shared library support Felix Fietkau 2008-02-03 00:41:32 +01:00
  • 333ef9e09b add flag for naming unnamed sections Felix Fietkau 2008-02-03 00:25:50 +01:00
  • 1085fcb801 remove unused variables Felix Fietkau 2008-02-03 00:12:10 +01:00
  • 72d64f1bf4 split warning options from other compiler options Felix Fietkau 2008-02-03 00:10:21 +01:00
  • 865b3fb435 fix file input for cli Felix Fietkau 2008-02-03 00:06:20 +01:00
  • 4b1ddfb835 implement overwriting import Felix Fietkau 2008-02-03 00:03:56 +01:00
  • d0470b6f42 add support for merged importing Felix Fietkau 2008-02-02 23:46:58 +01:00
  • 05cf670dde optimization Felix Fietkau 2008-02-02 23:05:16 +01:00
  • c57bfa88f8 add stub for uci import Felix Fietkau 2008-02-02 23:01:01 +01:00
  • a49b8b7e23 constify Felix Fietkau 2008-02-02 22:55:01 +01:00
  • fb83e2b2dd validate the package name for import Felix Fietkau 2008-02-02 22:54:29 +01:00
  • bdb2bbfbe9 more error handling for internal uci_import calls Felix Fietkau 2008-02-02 22:49:09 +01:00
  • 9387bced4e add import merging functionality, fix error handling in uci_import Felix Fietkau 2008-02-02 22:47:00 +01:00
  • b69b459ecc implement uci rename Felix Fietkau 2008-02-02 21:36:56 +01:00
  • 6042bb553c 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 Felix Fietkau 2008-02-02 16:42:51 +01:00
  • 4094cedb83 accept unnamed sections Felix Fietkau 2008-01-30 20:16:28 +01:00
  • 3d22ffb838 cli code cleanup Felix Fietkau 2008-01-30 05:25:45 +01:00
  • 71a0126dff proper commit support, better debugging Felix Fietkau 2008-01-30 05:13:59 +01:00
  • 01ca9e5e46 free the history on package unload Felix Fietkau 2008-01-30 03:56:25 +01:00
  • a79ac49b06 document UCI_INTERNAL Felix Fietkau 2008-01-30 03:48:43 +01:00
  • 0d93aa6955 some helpful comments Felix Fietkau 2008-01-30 03:46:54 +01:00
  • b892863972 create history files with the proper mode Felix Fietkau 2008-01-30 03:20:58 +01:00