X-Git-Url: https://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/4a3125b61348969b91b9642bba803fc17135c189..559bcf15ef66d20d7e8527c690c0b4e5a66b6381:/src/uobject/uobject.h?ds=inline diff --git a/src/uobject/uobject.h b/src/uobject/uobject.h index 116b783..0d0d45c 100644 --- a/src/uobject/uobject.h +++ b/src/uobject/uobject.h @@ -1,6 +1,6 @@ /* * upkg: tool for manipulating Unreal Tournament packages. - * Copyright (C) 2009 Nick Bowler + * Copyright © 2009-2011 Nick Bowler * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -42,17 +42,18 @@ struct UObject { struct upkg *pkg; struct upkg_file *pkg_file; - unsigned long pkg_idx; }; struct UObjectClass { GObjectClass parent; - int (*deserialize)(UObject *obj, struct upkg_file *f); + int (*deserialize)(UObject *obj); }; GType u_object_get_type(void); int u_object_deserialize(GObject *obj, struct upkg *pkg, unsigned long idx); +GObject *u_object_new_from_package(struct upkg *pkg, unsigned long idx); + #endif