]> git.draconx.ca Git - upkg.git/blobdiff - src/upkg.h
module: add missing return value to module_exit.
[upkg.git] / src / upkg.h
index 34124453b8f986d29cfdb1d06f2a6e775caac110..08ee13a1eb68d033ef9af482752084272b4e53b8 100644 (file)
@@ -44,6 +44,7 @@
 
 struct upkg {
        unsigned version, license;
+       unsigned char guid[16];
        unsigned long flags;
 
        unsigned long name_count, export_count, import_count;
@@ -52,6 +53,10 @@ struct upkg {
 };
 
 struct upkg_file {
+       const char *name;
+
+       int eof;
+
        struct upkg *pkg;
        unsigned long base, offset, len;
 };
@@ -61,6 +66,11 @@ int upkg_close(struct upkg *pkg);
 
 const char *upkg_get_name(struct upkg *pkg, unsigned long idx);
 
+long   upkg_export_find(struct upkg *pkg, const char *name);
+const char *upkg_export_name(struct upkg *pkg, unsigned long idx);
+const char *upkg_export_class(struct upkg *pkg, unsigned long idx,
+                              const char **package, const char **group);
+
 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);