]> git.draconx.ca Git - upkg.git/blobdiff - src/uobject/package.h
upkg: Improve error reporting during package load.
[upkg.git] / src / uobject / package.h
index 697abd24fcdcafbacdcd1a34fc3bcf81a858171d..47f6aa8e4ba65f5f7ba0a78d772efc3ad97cca57 100644 (file)
@@ -20,6 +20,7 @@
 #define U_OBJECT_PACKAGE_H_
 
 #include <glib-object.h>
+#include <stdbool.h>
 
 #define U_PKG_TYPE (u_pkg_get_type())
 #define U_PKG(obj) \
@@ -38,6 +39,7 @@ typedef struct UPkgClass UPkgClass;
 
 struct UPkg {
        GTypeModule parent;
+       struct upkg *pkg;
 };
 
 struct UPkgClass {
@@ -45,10 +47,8 @@ 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);
+bool u_pkg_is_native(GTypeModule *pkg);
 
 #endif