summaryrefslogtreecommitdiffstats
path: root/include/plist/plist.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-03-19 02:32:57 +0100
committerGravatar Nikias Bassen2014-03-19 02:32:57 +0100
commit6b719ecda2072dafeb98a44a6f4eac247748efc0 (patch)
treeb223294da3c9e4124ddead7c6ece4107b72d8b47 /include/plist/plist.h
parentf9299fa80a7530fea4b829ea851972a664edf1fe (diff)
downloadlibplist-6b719ecda2072dafeb98a44a6f4eac247748efc0.tar.gz
libplist-6b719ecda2072dafeb98a44a6f4eac247748efc0.tar.bz2
deprecated plist_dict_insert_item in favor of plist_dict_set_item
Diffstat (limited to 'include/plist/plist.h')
-rw-r--r--include/plist/plist.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/plist/plist.h b/include/plist/plist.h
index b482199..4dd76a6 100644
--- a/include/plist/plist.h
+++ b/include/plist/plist.h
@@ -44,9 +44,17 @@ extern "C"
44#else 44#else
45#define PLIST_API __declspec( dllimport ) 45#define PLIST_API __declspec( dllimport )
46#endif 46#endif
47#define DEPRECATED(x) __declspec(deprecated(x))
47#else 48#else
48#include <stdint.h> 49#include <stdint.h>
49#define PLIST_API 50#define PLIST_API
51#ifdef __GNUC__
52#define DEPRECATED(x) __attribute__((deprecated(x)))
53#elif defined(_MSC_VER)
54#else
55#define DEPRECATED(x)
56#pragma message("WARNING: You need to implement DEPRECATED for this compiler")
57#endif
50#endif 58#endif
51 59
52#include <sys/types.h> 60#include <sys/types.h>
@@ -322,11 +330,13 @@ extern "C"
322 /** 330 /**
323 * Insert a new item into a #PLIST_DICT node. 331 * Insert a new item into a #PLIST_DICT node.
324 * 332 *
333 * @deprecated Deprecated. Use plist_dict_set_item instead.
334 *
325 * @param node the node of type #PLIST_DICT 335 * @param node the node of type #PLIST_DICT
326 * @param item the new item to insert 336 * @param item the new item to insert
327 * @param key The identifier of the item to insert. 337 * @param key The identifier of the item to insert.
328 */ 338 */
329 PLIST_API void plist_dict_insert_item(plist_t node, const char* key, plist_t item); 339 DEPRECATED("use plist_dict_set_item instead") PLIST_API void plist_dict_insert_item(plist_t node, const char* key, plist_t item);
330 340
331 /** 341 /**
332 * Remove an existing position in a #PLIST_DICT node. 342 * Remove an existing position in a #PLIST_DICT node.