]> git.draconx.ca Git - upkg.git/blobdiff - src/uobject/uobject.h
uobject: Make the relevant UPkg available to objects.
[upkg.git] / src / uobject / uobject.h
index e0b22562beb25b5c2a6e3eb66d07cc72b77db424..00f742bd1d0b23a9696114d12cc73a8006aff911 100644 (file)
@@ -41,7 +41,7 @@ typedef struct UObjectClass UObjectClass;
 struct UObject {
        GObject parent;
 
-       struct upkg *pkg;
+       GTypeModule *pkg;
        struct upkg_file *pkg_file;
        char *pkg_name;
 };
@@ -54,9 +54,9 @@ struct UObjectClass {
 
 GType u_object_get_type(void);
 
-int u_object_deserialize(GObject *obj, struct upkg *pkg, unsigned long idx);
+int u_object_deserialize(GObject *obj, GTypeModule *pkg, unsigned long idx);
 
-GObject *u_object_new_from_package(struct upkg *pkg, unsigned long idx);
+GObject *u_object_new_from_package(GTypeModule *pkg, unsigned long idx);
 
 /* Logging helpers for UObject class implementations. */
 void u_vlog_full(GObject *o, GLogLevelFlags level, const char *fmt, va_list ap);