opkg: implement opkg_set_option() and opkg_get_option()
[oweals/opkg-lede.git] / libopkg / opkg_conf.h
index 4b50900243582655c3b87ccc37b855dd619e4a60..4b971b4fe8484e23020b52e4cc31f9fc97344514 100644 (file)
@@ -1,4 +1,4 @@
-/* opkg_conf.h - the itsy package management system
+/* opkg_conf.h - the opkg package management system
 
    Carl D. Worth
 
@@ -21,7 +21,6 @@
 typedef struct opkg_conf opkg_conf_t;
 
 #include "hash_table.h"
-#include "opkg.h"
 #include "args.h"
 #include "pkg.h"
 #include "pkg_hash.h"
@@ -54,6 +53,7 @@ struct opkg_conf
      const char *pending_dir;
 
      /* options */
+     int autoremove;
      int force_depends;
      int force_defaults;
      int force_overwrite;
@@ -104,4 +104,7 @@ void opkg_conf_deinit(opkg_conf_t *conf);
 int opkg_conf_write_status_files(opkg_conf_t *conf);
 char *root_filename_alloc(opkg_conf_t *conf, char *filename);
 
+
+int opkg_init_options_array(const opkg_conf_t *conf, opkg_option_t **options);
+
 #endif