]> git.draconx.ca Git - upkg.git/commitdiff
Store the export name in the file structure.
authorNick Bowler <nbowler@draconx.ca>
Mon, 8 Jun 2009 19:26:32 +0000 (15:26 -0400)
committerNick Bowler <nbowler@draconx.ca>
Mon, 8 Jun 2009 19:27:58 +0000 (15:27 -0400)
src/libupkg.c
src/upkg.h

index 64b00d27818db40a3d6628bb8b621059d2e57f1b..f7c55ba2fbf26428c110369e021d7c4d0bb6484e 100644 (file)
@@ -403,6 +403,7 @@ struct upkg_file *upkg_export_open(struct upkg *pkg, unsigned long idx)
                .pkg  = pkg,
                .base = pkg->priv->exports[idx].offset,
                .len  = pkg->priv->exports[idx].size,
+               .name = pkg->priv->exports[idx].name,
        };
 
        return f;
index 34124453b8f986d29cfdb1d06f2a6e775caac110..8aa81a11af838140f7f1a90feeb5a989008ee28d 100644 (file)
@@ -52,6 +52,8 @@ struct upkg {
 };
 
 struct upkg_file {
+       const char *name;
+
        struct upkg *pkg;
        unsigned long base, offset, len;
 };