opkg: (leak fixing, day 2) lots and lots of memory leaks fixed
[project/opkg-lede.git] / libopkg / opkg_conf.h
index 4b50900243582655c3b87ccc37b855dd619e4a60..566bf463f49f526d63b4c91a0cb90a6ba328d3bf 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"
@@ -50,10 +49,11 @@ struct opkg_conf
      pkg_dest_t *default_dest;
 
      char *tmp_dir;
-     const char *lists_dir;
-     const char *pending_dir;
+     char *lists_dir;
+     char *pending_dir;
 
      /* options */
+     int autoremove;
      int force_depends;
      int force_defaults;
      int force_overwrite;
@@ -63,7 +63,6 @@ struct opkg_conf
      int force_removal_of_dependent_packages;
      int force_removal_of_essential_packages;
      int nodeps; /* do not follow dependences */
-     int verbose_wget;
      int multiple_providers;
      char *offline_root;
      char *offline_root_pre_script_cmd;
@@ -104,4 +103,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