summaryrefslogtreecommitdiffstats
path: root/include/plist
diff options
context:
space:
mode:
Diffstat (limited to 'include/plist')
-rw-r--r--include/plist/Data.h6
-rw-r--r--include/plist/plist.h10
2 files changed, 8 insertions, 8 deletions
diff --git a/include/plist/Data.h b/include/plist/Data.h
index 3f1c329..b566a6c 100644
--- a/include/plist/Data.h
+++ b/include/plist/Data.h
@@ -35,13 +35,13 @@ public :
35 Data(plist_t node, Node* parent = NULL); 35 Data(plist_t node, Node* parent = NULL);
36 Data(const Data& d); 36 Data(const Data& d);
37 Data& operator=(const Data& b); 37 Data& operator=(const Data& b);
38 Data(const std::vector<uint8_t>& buff); 38 Data(const std::vector<char>& buff);
39 virtual ~Data(); 39 virtual ~Data();
40 40
41 Node* Clone() const; 41 Node* Clone() const;
42 42
43 void SetValue(const std::vector<uint8_t>& buff); 43 void SetValue(const std::vector<char>& buff);
44 std::vector<uint8_t> GetValue() const; 44 std::vector<char> GetValue() const;
45}; 45};
46 46
47}; 47};
diff --git a/include/plist/plist.h b/include/plist/plist.h
index 7d5b4cb..aff81e9 100644
--- a/include/plist/plist.h
+++ b/include/plist/plist.h
@@ -258,7 +258,7 @@ extern "C"
258 * @return the created item 258 * @return the created item
259 * @sa #plist_type 259 * @sa #plist_type
260 */ 260 */
261 PLIST_API plist_t plist_new_data(const uint8_t *val, uint64_t length); 261 PLIST_API plist_t plist_new_data(const char *val, uint64_t length);
262 262
263 /** 263 /**
264 * Create a new plist_t type #PLIST_DATE 264 * Create a new plist_t type #PLIST_DATE
@@ -445,7 +445,7 @@ extern "C"
445 PLIST_API void plist_dict_get_item_key(plist_t node, char **key); 445 PLIST_API void plist_dict_get_item_key(plist_t node, char **key);
446 446
447 /** 447 /**
448 * Get the item for given key in a #PLIST_DICT node. 448 * Get the nth item in a #PLIST_DICT node.
449 * 449 *
450 * @param node the node of type #PLIST_DICT 450 * @param node the node of type #PLIST_DICT
451 * @param key the identifier of the item to get. 451 * @param key the identifier of the item to get.
@@ -755,7 +755,7 @@ extern "C"
755 * @param length the length of the buffer 755 * @param length the length of the buffer
756 * @note Use plist_mem_free() to free the allocated memory. 756 * @note Use plist_mem_free() to free the allocated memory.
757 */ 757 */
758 PLIST_API void plist_get_data_val(plist_t node, uint8_t **val, uint64_t * length); 758 PLIST_API void plist_get_data_val(plist_t node, char **val, uint64_t * length);
759 759
760 /** 760 /**
761 * Get a pointer to the data buffer of a #PLIST_DATA node. 761 * Get a pointer to the data buffer of a #PLIST_DATA node.
@@ -768,7 +768,7 @@ extern "C"
768 * 768 *
769 * @return Pointer to the buffer 769 * @return Pointer to the buffer
770 */ 770 */
771 PLIST_API const uint8_t* plist_get_data_ptr(plist_t node, uint64_t* length); 771 PLIST_API const char* plist_get_data_ptr(plist_t node, uint64_t* length);
772 772
773 /** 773 /**
774 * Get the value of a #PLIST_DATE node. 774 * Get the value of a #PLIST_DATE node.
@@ -860,7 +860,7 @@ extern "C"
860 * be freed by the node. 860 * be freed by the node.
861 * @param length the length of the buffer 861 * @param length the length of the buffer
862 */ 862 */
863 PLIST_API void plist_set_data_val(plist_t node, const uint8_t *val, uint64_t length); 863 PLIST_API void plist_set_data_val(plist_t node, const char *val, uint64_t length);
864 864
865 /** 865 /**
866 * Set the value of a node. 866 * Set the value of a node.