]> git.draconx.ca Git - upkg.git/blobdiff - src/upkg.h
libupkg: Use parent pointers for imports.
[upkg.git] / src / upkg.h
index 34291b7f7bf18717e6256dfe18441e65b2cca9be..dc73780ea93eeb6f3b06d633ba2225608f045d5f 100644 (file)
@@ -78,10 +78,17 @@ struct upkg {
 };
 
 struct upkg_export {
-       const char *name;
+       const struct upkg_export *parent;
 
+       const char *name;
        unsigned long flags;
-       long package;
+};
+
+struct upkg_import {
+       const struct upkg_import *parent;
+
+       const char *name;
+       const char *class_package, *class_name;
 };
 
 struct upkg_file {
@@ -89,7 +96,7 @@ struct upkg_file {
 
        int eof;
 
-       struct upkg_priv *pkg;
+       struct upkg *pkg;
        unsigned long base, offset, len;
 };