]> git.draconx.ca Git - upkg.git/blobdiff - src/uobject/package.h
package: Allow opening by filename in addition to package name.
[upkg.git] / src / uobject / package.h
index 697abd24fcdcafbacdcd1a34fc3bcf81a858171d..5e60a18d3467fc0bdb68d46b9ce60f194ba6cd03 100644 (file)
@@ -38,6 +38,7 @@ typedef struct UPkgClass UPkgClass;
 
 struct UPkg {
        GTypeModule parent;
+       struct upkg *pkg;
 };
 
 struct UPkgClass {
@@ -45,7 +46,8 @@ struct UPkgClass {
 };
 
 GType u_pkg_get_type(void);
-GTypeModule *u_pkg_new(const char *name);
+GTypeModule *u_pkg_new_by_name(const char *name);
+GTypeModule *u_pkg_new_by_file(const char *filename);
 
 const char *u_pkg_get_search_path(void);
 int u_pkg_set_search_path(const char *path);