]> git.draconx.ca Git - upkg.git/blobdiff - src/upkg.h
libupkg: Add signed integer unpacking to fix incorrect signedness issue.
[upkg.git] / src / upkg.h
index 2e92e8527c1570e78be20bb8fa14792041a5b39f..775f918c8087e8b128562b78aeec95991a2c9316 100644 (file)
@@ -55,6 +55,8 @@ struct upkg {
 struct upkg_file {
        const char *name;
 
+       int eof;
+
        struct upkg *pkg;
        unsigned long base, offset, len;
 };
@@ -64,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);
+
 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);