]> git.draconx.ca Git - upkg.git/blobdiff - src/upkg.h
libupkg: Kill upkg_export_class.
[upkg.git] / src / upkg.h
index 51b92f6fc17a0cab69bf1ffbe5bff08f42ac656d..da85a268382cc5473d39a3b9ab1e244eabacff4b 100644 (file)
@@ -82,6 +82,14 @@ struct upkg_export {
 
        const char *name;
        unsigned long flags;
+       long class;
+};
+
+struct upkg_import {
+       const struct upkg_import *parent;
+
+       const char *name;
+       const char *class_package, *class_name;
 };
 
 struct upkg_file {
@@ -103,12 +111,10 @@ int upkg_close(struct upkg *pkg);
 
 const char *upkg_get_name(struct upkg *pkg, unsigned long idx);
 const struct upkg_export *upkg_get_export(struct upkg *pkg, unsigned long idx);
+const struct upkg_import *upkg_get_import(struct upkg *pkg, unsigned long idx);
 
 long upkg_export_find(struct upkg *pkg, long parent, const char *name);
 
-const char *upkg_export_class(struct upkg *pkg, unsigned long idx,
-                              const char **package);
-
 struct upkg_file *upkg_export_open(struct upkg *pkg, unsigned long idx);
 size_t upkg_export_read(struct upkg_file *f, void *buf, size_t n);
 int    upkg_export_seek(struct upkg_file *f, long offset, int whence);