Patch from rwhitby to follow 302 redirects properly.
[oweals/opkg-lede.git] / libopkg / opkg_conf.h
index b44a7613ed93e365ff5cbf2a21db4f6ef3e18de0..3c5dfe4f1bdbc18d526745f6ae07a3baac94f25e 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
 
@@ -41,6 +41,7 @@ typedef struct opkg_conf opkg_conf_t;
 
 struct opkg_conf
 {
+     int lock_fd; /* file descriptor for the lock file */
      pkg_src_list_t pkg_src_list;
      pkg_dest_list_t pkg_dest_list;
      nv_pair_list_t arch_list;
@@ -49,8 +50,8 @@ 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;
@@ -63,8 +64,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;
      char *offline_root_post_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