X-Git-Url: https://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/4a3125b61348969b91b9642bba803fc17135c189..7b7fa9198e6872739a50374aebe61b6444611438:/src/uobject/package.h diff --git a/src/uobject/package.h b/src/uobject/package.h index e8cb4a8..47f6aa8 100644 --- a/src/uobject/package.h +++ b/src/uobject/package.h @@ -20,6 +20,7 @@ #define U_OBJECT_PACKAGE_H_ #include +#include #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,6 +47,8 @@ struct UPkgClass { }; GType u_pkg_get_type(void); -GTypeModule *u_pkg_new(const char *name); +GTypeModule *u_pkg_open(const char *name); + +bool u_pkg_is_native(GTypeModule *pkg); #endif