From: Nick Bowler Date: Mon, 8 Jun 2009 19:26:32 +0000 (-0400) Subject: Store the export name in the file structure. X-Git-Url: https://git.draconx.ca/gitweb/upkg.git/commitdiff_plain/3dd8f219561d68c12b04ef2d226a23e495b7c540 Store the export name in the file structure. --- diff --git a/src/libupkg.c b/src/libupkg.c index 64b00d2..f7c55ba 100644 --- a/src/libupkg.c +++ b/src/libupkg.c @@ -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; diff --git a/src/upkg.h b/src/upkg.h index 3412445..8aa81a1 100644 --- a/src/upkg.h +++ b/src/upkg.h @@ -52,6 +52,8 @@ struct upkg { }; struct upkg_file { + const char *name; + struct upkg *pkg; unsigned long base, offset, len; };