introduce the active_list for searching.
[oweals/opkg-lede.git] / libopkg / pkg.h
index de972b2862d05001cb6f5285ae08d76cee3c992a..3f7d6b6aec1828182cd5b636ed9c6bc6c28f158a 100644 (file)
@@ -1,4 +1,4 @@
-/* pkg.h - the itsy package management system
+/* pkg.h - the opkg package management system
 
    Carl D. Worth
 
@@ -24,6 +24,7 @@
 
 #include "pkg_vec.h"
 #include "str_list.h"
+#include "active_list.h"
 #include "pkg_src.h"
 #include "pkg_dest.h"
 #include "opkg_conf.h"
@@ -87,6 +88,7 @@ struct abstract_pkg{
     struct abstract_pkg ** depended_upon_by; /* @@@@ this should be abstract_pkg_vec_t -Jamey */
     abstract_pkg_vec_t * provided_by;
     abstract_pkg_vec_t * replaced_by;
+    struct active_list   searched_node;   /* Used for hash search */
 };
 
 #include "pkg_depends.h"
@@ -117,7 +119,6 @@ struct pkg
      unsigned long epoch;
      char *version;
      char *revision;
-     char *familiar_revision;
      pkg_src_t *src;
      pkg_dest_t *dest;
      char *architecture;
@@ -136,6 +137,8 @@ struct pkg
      int recommends_count;
      char **suggests_str;
      int suggests_count;
+     struct active_list list; /* Used for installing|upgrading */
+     struct active_list searched_node;  /* Used for searching */
      compound_depend_t * depends;
 
      /* Abhaya: new conflicts */