summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/plist/plist.h6
-rw-r--r--src/plist.h3
2 files changed, 4 insertions, 5 deletions
diff --git a/include/plist/plist.h b/include/plist/plist.h
index c5af845..c06d38b 100644
--- a/include/plist/plist.h
+++ b/include/plist/plist.h
@@ -49,8 +49,7 @@ typedef enum {
49//utilitary functions to create root nodes (supposed to be dict or array) 49//utilitary functions to create root nodes (supposed to be dict or array)
50plist_t plist_new_dict(); 50plist_t plist_new_dict();
51plist_t plist_new_array(); 51plist_t plist_new_array();
52//Plist edition, create a new root if node is NULL 52
53plist_t plist_add_sub_element( plist_t node, plist_type type, const void* value, uint64_t length);
54 53
55//Plist edition, only work for dict and array node 54//Plist edition, only work for dict and array node
56void plist_add_sub_node(plist_t node, plist_t subnode); 55void plist_add_sub_node(plist_t node, plist_t subnode);
@@ -72,12 +71,9 @@ plist_t plist_get_next_sibling(plist_t node);
72plist_t plist_get_prev_sibling(plist_t node); 71plist_t plist_get_prev_sibling(plist_t node);
73 72
74//utili function to find first (and only the first encountred) corresponding node 73//utili function to find first (and only the first encountred) corresponding node
75plist_t plist_find_node(plist_t plist, plist_type type, const void *value, uint64_t length);
76plist_t plist_find_node_by_key(plist_t plist, const char *value); 74plist_t plist_find_node_by_key(plist_t plist, const char *value);
77plist_t plist_find_node_by_string(plist_t plist, const char *value); 75plist_t plist_find_node_by_string(plist_t plist, const char *value);
78 76
79void plist_get_type_and_value(plist_t node, plist_type * type, void *value, uint64_t * length);
80
81//Plist reading 77//Plist reading
82plist_type plist_get_node_type(plist_t node); 78plist_type plist_get_node_type(plist_t node);
83 79
diff --git a/src/plist.h b/src/plist.h
index 80a3f7f..319647d 100644
--- a/src/plist.h
+++ b/src/plist.h
@@ -57,5 +57,8 @@ plist_data_t plist_new_plist_data();
57void plist_free_plist_data(plist_data_t node); 57void plist_free_plist_data(plist_data_t node);
58uint64_t plist_get_node_uint_val(plist_t node); 58uint64_t plist_get_node_uint_val(plist_t node);
59 59
60plist_t plist_add_sub_element( plist_t node, plist_type type, const void* value, uint64_t length);
61plist_t plist_find_node(plist_t plist, plist_type type, const void *value, uint64_t length);
62void plist_get_type_and_value(plist_t node, plist_type * type, void *value, uint64_t * length);
60 63
61#endif 64#endif