summaryrefslogtreecommitdiffstats
path: root/include/plist/plist.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/plist/plist.h')
-rw-r--r--include/plist/plist.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/plist/plist.h b/include/plist/plist.h
index b666d2f..c5af845 100644
--- a/include/plist/plist.h
+++ b/include/plist/plist.h
@@ -50,17 +50,17 @@ typedef enum {
plist_t plist_new_dict();
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, void* value, uint64_t length);
+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
void plist_add_sub_node(plist_t node, plist_t subnode);
-void plist_add_sub_key_el(plist_t node, char* val);
-void plist_add_sub_string_el(plist_t node, char* val);
+void plist_add_sub_key_el(plist_t node, const char* val);
+void plist_add_sub_string_el(plist_t node, const char* val);
void plist_add_sub_bool_el(plist_t node, uint8_t val);
void plist_add_sub_uint_el(plist_t node, uint64_t val);
void plist_add_sub_real_el(plist_t node, double val);
-void plist_add_sub_data_el(plist_t node, char* val, uint64_t length);
+void plist_add_sub_data_el(plist_t node, const char* val, uint64_t length);
//plist free
@@ -72,9 +72,9 @@ plist_t plist_get_next_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
-plist_t plist_find_node(plist_t plist, plist_type type, void *value, uint64_t length);
-plist_t plist_find_node_by_key(plist_t plist, char *value);
-plist_t plist_find_node_by_string(plist_t plist, char *value);
+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_string(plist_t plist, const char *value);
void plist_get_type_and_value(plist_t node, plist_type * type, void *value, uint64_t * length);