X-Git-Url: https://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/5a1bc015e48db57deda5a7069c26ebcd6b255441..1f5b72d49e29a126b35385a6277b411b1f97fbf5:/src/uobject/package.h diff --git a/src/uobject/package.h b/src/uobject/package.h index 697abd2..eb217aa 100644 --- a/src/uobject/package.h +++ b/src/uobject/package.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 @@ -20,6 +20,7 @@ #define U_OBJECT_PACKAGE_H_ #include +#include #define U_PKG_TYPE (u_pkg_get_type()) #define U_PKG(obj) \ @@ -38,6 +39,7 @@ typedef struct UPkgClass UPkgClass; struct UPkg { GTypeModule parent; + struct upkg *pkg; }; struct UPkgClass { @@ -45,10 +47,8 @@ struct UPkgClass { }; GType u_pkg_get_type(void); -GTypeModule *u_pkg_new(const char *name); +GTypeModule *u_pkg_open(const char *name); -const char *u_pkg_get_search_path(void); -int u_pkg_set_search_path(const char *path); -int u_pkg_add_search_dir(const char *path); +bool u_pkg_is_native(GTypeModule *pkg); #endif