#include <glib-object.h>
#include "upkg.h"
-#include "avl.h"
#define U_OBJECT_TYPE u_object_get_type()
#define U_OBJECT(obj) \
struct UObject {
GObject parent;
+
+ struct upkg *pkg;
+ struct upkg_file *pkg_file;
+ unsigned long pkg_idx;
};
struct UObjectClass {
const GValue *u_object_get_property(UObject *obj, const char *name);
void u_object_set_property(UObject *obj, const char *name, const GValue *val);
-int u_object_deserialize(GObject *obj, struct upkg_file *f);
+int u_object_deserialize(GObject *obj, struct upkg *pkg, unsigned long idx);
#endif