X-Git-Url: http://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/e3726c0480d74840dd9104850cba0f3e5f93beed..76b8a4bf05701afcd1be69ff4490a7c6be431dc4:/src/uobject/uobject.h diff --git a/src/uobject/uobject.h b/src/uobject/uobject.h index e91bf5b..00f742b 100644 --- a/src/uobject/uobject.h +++ b/src/uobject/uobject.h @@ -41,8 +41,9 @@ typedef struct UObjectClass UObjectClass; struct UObject { GObject parent; - struct upkg *pkg; + GTypeModule *pkg; struct upkg_file *pkg_file; + char *pkg_name; }; struct UObjectClass { @@ -53,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);