Commit ddf3e321 authored by Jonathan Beck's avatar Jonathan Beck

Remove dangerous functions from pulic API.

parent 6d2cd169
...@@ -49,8 +49,7 @@ typedef enum { ...@@ -49,8 +49,7 @@ typedef enum {
//utilitary functions to create root nodes (supposed to be dict or array) //utilitary functions to create root nodes (supposed to be dict or array)
plist_t plist_new_dict(); plist_t plist_new_dict();
plist_t plist_new_array(); plist_t plist_new_array();
//Plist edition, create a new root if node is NULL
plist_t plist_add_sub_element( plist_t node, plist_type type, const void* value, uint64_t length);
//Plist edition, only work for dict and array node //Plist edition, only work for dict and array node
void plist_add_sub_node(plist_t node, plist_t subnode); void plist_add_sub_node(plist_t node, plist_t subnode);
...@@ -72,12 +71,9 @@ plist_t plist_get_next_sibling(plist_t node); ...@@ -72,12 +71,9 @@ plist_t plist_get_next_sibling(plist_t node);
plist_t plist_get_prev_sibling(plist_t node); plist_t plist_get_prev_sibling(plist_t node);
//utili function to find first (and only the first encountred) corresponding node //utili function to find first (and only the first encountred) corresponding node
plist_t plist_find_node(plist_t plist, plist_type type, const void *value, uint64_t length);
plist_t plist_find_node_by_key(plist_t plist, const char *value); plist_t plist_find_node_by_key(plist_t plist, const char *value);
plist_t plist_find_node_by_string(plist_t plist, const char *value); plist_t plist_find_node_by_string(plist_t plist, const char *value);
void plist_get_type_and_value(plist_t node, plist_type * type, void *value, uint64_t * length);
//Plist reading //Plist reading
plist_type plist_get_node_type(plist_t node); plist_type plist_get_node_type(plist_t node);
......
...@@ -57,5 +57,8 @@ plist_data_t plist_new_plist_data(); ...@@ -57,5 +57,8 @@ plist_data_t plist_new_plist_data();
void plist_free_plist_data(plist_data_t node); void plist_free_plist_data(plist_data_t node);
uint64_t plist_get_node_uint_val(plist_t node); uint64_t plist_get_node_uint_val(plist_t node);
plist_t plist_add_sub_element( plist_t node, plist_type type, const void* value, uint64_t length);
plist_t plist_find_node(plist_t plist, plist_type type, const void *value, uint64_t length);
void plist_get_type_and_value(plist_t node, plist_type * type, void *value, uint64_t * length);
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment