X-Git-Url: https://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/0dc1fb4639524c1a1846e32fa7437605c65a9b72..c7949f41d0002e833f2977e66785795d6c6c1829:/src/libupkg.c diff --git a/src/libupkg.c b/src/libupkg.c index 6ee7ffa..45fda93 100644 --- a/src/libupkg.c +++ b/src/libupkg.c @@ -436,6 +436,13 @@ long upkg_export_find(struct upkg *pkg, const char *name) return -1; } +unsigned long upkg_export_flags(struct upkg *pkg, unsigned long idx) +{ + if (idx < pkg->export_count) + return pkg->priv->exports[idx].flags; + return 0; +} + const char *upkg_export_name(struct upkg *pkg, unsigned long idx) { if (idx < pkg->export_count)