]> git.draconx.ca Git - upkg.git/blobdiff - src/uobject/loadable.h
uobject: Make interface functions take UObjects directly.
[upkg.git] / src / uobject / loadable.h
index 296366b6272c6d7c4ecf0566c39d6700ae221891..d862583890fac12a6609b0b0ca6e25083f758d97 100644 (file)
@@ -19,8 +19,7 @@
 #ifndef U_OBJECT_LOADABLE_H_
 #define U_OBJECT_LOADABLE_H_
 
-#include <stdio.h>
-#include <glib-object.h>
+#include <uobject/uobject.h>
 
 #define U_TYPE_OBJECT_LOADABLE (u_object_loadable_get_type())
 #define U_OBJECT_LOADABLE(obj) G_TYPE_CHECK_INSTANCE_CAST(obj, \
@@ -41,8 +40,8 @@ typedef struct UObjectLoadableIface UObjectLoadableIface;
 struct UObjectLoadableIface {
        GTypeInterface parent;
 
-       int (*load)(GObject *obj);
-       void (*unload)(GObject *obj);
+       int (*load)(UObject *obj);
+       void (*unload)(UObject *obj);
 };
 
 GType u_object_loadable_get_type(void);