]> git.draconx.ca Git - upkg.git/blobdiff - src/uobject/package.h
package: Get rid of separate mechanisms for opening packages.
[upkg.git] / src / uobject / package.h
index e8cb4a8c2b951201e88e5dc9751c2bf59e4e5ae1..03d9b01c78ef0a81bba0e5867890f1febf82f75a 100644 (file)
@@ -38,6 +38,7 @@ typedef struct UPkgClass UPkgClass;
 
 struct UPkg {
        GTypeModule parent;
+       struct upkg *pkg;
 };
 
 struct UPkgClass {
@@ -45,6 +46,10 @@ struct UPkgClass {
 };
 
 GType u_pkg_get_type(void);
-GTypeModule *u_pkg_new(const char *name);
+GTypeModule *u_pkg_open(const char *name);
+
+const char *u_pkg_get_search_path(void);
+int u_pkg_set_search_path(const char *path);
+int u_pkg_add_search_dir(const char *path);
 
 #endif