diff options
author | Jonathan Beck | 2009-11-10 23:37:43 +0100 |
---|---|---|
committer | Jonathan Beck | 2009-11-10 23:37:43 +0100 |
commit | ff536344bc04ab9ec3763968b82997d07312acd6 (patch) | |
tree | 48aa02beef8c8a0dc686683f7a1294871149646f /test | |
parent | 51c24ae543bda324e4f16e17d189c8d8cd545fc1 (diff) | |
download | libplist-ff536344bc04ab9ec3763968b82997d07312acd6.tar.gz libplist-ff536344bc04ab9ec3763968b82997d07312acd6.tar.bz2 |
Remove deprecated functions from API.
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 1 | ||||
-rw-r--r-- | test/plist_cmp.c | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 40dc640..415d076 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,5 +1,6 @@ #build the test executable +INCLUDE_DIRECTORIES( ${GLIB2_INCLUDE_DIR} ) SET(plist_test_SRC plist_test.c) diff --git a/test/plist_cmp.c b/test/plist_cmp.c index 709e8d0..dcf961f 100644 --- a/test/plist_cmp.c +++ b/test/plist_cmp.c @@ -27,10 +27,27 @@ #include <string.h> #include <sys/stat.h> +#include <glib.h> + #ifdef _MSC_VER #pragma warning(disable:4996) #endif +static plist_t plist_get_first_child(plist_t node) +{ + return (plist_t) g_node_first_child((GNode *) node); +} + +static plist_t plist_get_next_sibling(plist_t node) +{ + return (plist_t) g_node_next_sibling((GNode *) node); +} + +static plist_t plist_get_prev_sibling(plist_t node) +{ + return (plist_t) g_node_prev_sibling((GNode *) node); +} + char compare_plist(plist_t node_l, plist_t node_r) { plist_t cur_l = NULL; |