| plist.h | | plist.h | |
| | | | |
| skipping to change at line 85 | | skipping to change at line 85 | |
| { | | { | |
| PLIST_BOOLEAN, /**< Boolean, scalar type */ | | PLIST_BOOLEAN, /**< Boolean, scalar type */ | |
| PLIST_UINT, /**< Unsigned integer, scalar type */ | | PLIST_UINT, /**< Unsigned integer, scalar type */ | |
| PLIST_REAL, /**< Real, scalar type */ | | PLIST_REAL, /**< Real, scalar type */ | |
| PLIST_STRING, /**< ASCII string, scalar type */ | | PLIST_STRING, /**< ASCII string, scalar type */ | |
| PLIST_ARRAY, /**< Ordered array, structured type */ | | PLIST_ARRAY, /**< Ordered array, structured type */ | |
| PLIST_DICT, /**< Unordered dictionary (key/value pair), structur
ed type */ | | PLIST_DICT, /**< Unordered dictionary (key/value pair), structur
ed type */ | |
| PLIST_DATE, /**< Date, scalar type */ | | PLIST_DATE, /**< Date, scalar type */ | |
| PLIST_DATA, /**< Binary data, scalar type */ | | PLIST_DATA, /**< Binary data, scalar type */ | |
| PLIST_KEY, /**< Key in dictionaries (ASCII String), scalar type
*/ | | PLIST_KEY, /**< Key in dictionaries (ASCII String), scalar type
*/ | |
|
| | | PLIST_UID, /**< Special type used for 'keyed encoding' */ | |
| PLIST_NONE /**< No type */ | | PLIST_NONE /**< No type */ | |
| } plist_type; | | } plist_type; | |
| | | | |
| /******************************************** | | /******************************************** | |
| * * | | * * | |
| * Creation & Destruction * | | * Creation & Destruction * | |
| * * | | * * | |
| ********************************************/ | | ********************************************/ | |
| | | | |
| /** | | /** | |
| | | | |
| skipping to change at line 167 | | skipping to change at line 168 | |
| * Create a new plist_t type #PLIST_DATE | | * Create a new plist_t type #PLIST_DATE | |
| * | | * | |
| * @param sec the number of seconds since 01/01/2001 | | * @param sec the number of seconds since 01/01/2001 | |
| * @param usec the number of microseconds | | * @param usec the number of microseconds | |
| * @return the created item | | * @return the created item | |
| * @sa #plist_type | | * @sa #plist_type | |
| */ | | */ | |
| PLIST_API plist_t plist_new_date(int32_t sec, int32_t usec); | | PLIST_API plist_t plist_new_date(int32_t sec, int32_t usec); | |
| | | | |
| /** | | /** | |
|
| | | * Create a new plist_t type #PLIST_UID | |
| | | * | |
| | | * @param val the unsigned integer value | |
| | | * @return the created item | |
| | | * @sa #plist_type | |
| | | */ | |
| | | PLIST_API plist_t plist_new_uid(uint64_t val); | |
| | | | |
| | | /** | |
| * Destruct a plist_t node and all its children recursively | | * Destruct a plist_t node and all its children recursively | |
| * | | * | |
| * @param plist the plist to free | | * @param plist the plist to free | |
| */ | | */ | |
| PLIST_API void plist_free(plist_t plist); | | PLIST_API void plist_free(plist_t plist); | |
| | | | |
| /** | | /** | |
| * Return a copy of passed node and it's children | | * Return a copy of passed node and it's children | |
| * | | * | |
| * @param node the plist to copy | | * @param node the plist to copy | |
| | | | |
| skipping to change at line 415 | | skipping to change at line 425 | |
| /** | | /** | |
| * Get the value of a #PLIST_DATE node. | | * Get the value of a #PLIST_DATE node. | |
| * This function does nothing if node is not of type #PLIST_DATE | | * This function does nothing if node is not of type #PLIST_DATE | |
| * | | * | |
| * @param node the node | | * @param node the node | |
| * @param sec a pointer to an int32_t variable. Represents the number o
f seconds since 01/01/2001. | | * @param sec a pointer to an int32_t variable. Represents the number o
f seconds since 01/01/2001. | |
| * @param usec a pointer to an int32_t variable. Represents the number
of microseconds | | * @param usec a pointer to an int32_t variable. Represents the number
of microseconds | |
| */ | | */ | |
| PLIST_API void plist_get_date_val(plist_t node, int32_t * sec, int32_t
* usec); | | PLIST_API void plist_get_date_val(plist_t node, int32_t * sec, int32_t
* usec); | |
| | | | |
|
| | | /** | |
| | | * Get the value of a #PLIST_UID node. | |
| | | * This function does nothing if node is not of type #PLIST_UID | |
| | | * | |
| | | * @param node the node | |
| | | * @param val a pointer to a uint64_t variable. | |
| | | */ | |
| | | PLIST_API void plist_get_uid_val(plist_t node, uint64_t * val); | |
| | | | |
| /******************************************** | | /******************************************** | |
| * * | | * * | |
| * Setters * | | * Setters * | |
| * * | | * * | |
| ********************************************/ | | ********************************************/ | |
| | | | |
| /** | | /** | |
| * Forces type of node. Changing type of structured nodes is only allow
ed if node is empty. | | * Forces type of node. Changing type of structured nodes is only allow
ed if node is empty. | |
| * Reset value of node; | | * Reset value of node; | |
| * @param node the node | | * @param node the node | |
| | | | |
| skipping to change at line 494 | | skipping to change at line 513 | |
| /** | | /** | |
| * Set the value of a node. | | * Set the value of a node. | |
| * Forces type of node to #PLIST_DATE | | * Forces type of node to #PLIST_DATE | |
| * | | * | |
| * @param node the node | | * @param node the node | |
| * @param sec the number of seconds since 01/01/2001 | | * @param sec the number of seconds since 01/01/2001 | |
| * @param usec the number of microseconds | | * @param usec the number of microseconds | |
| */ | | */ | |
| PLIST_API void plist_set_date_val(plist_t node, int32_t sec, int32_t us
ec); | | PLIST_API void plist_set_date_val(plist_t node, int32_t sec, int32_t us
ec); | |
| | | | |
|
| | | /** | |
| | | * Set the value of a node. | |
| | | * Forces type of node to #PLIST_UID | |
| | | * | |
| | | * @param node the node | |
| | | * @param val the unsigned integer value | |
| | | */ | |
| | | PLIST_API void plist_set_uid_val(plist_t node, uint64_t val); | |
| | | | |
| /******************************************** | | /******************************************** | |
| * * | | * * | |
| * Import & Export * | | * Import & Export * | |
| * * | | * * | |
| ********************************************/ | | ********************************************/ | |
| | | | |
| /** | | /** | |
| * Export the #plist_t structure to XML format. | | * Export the #plist_t structure to XML format. | |
| * | | * | |
| * @param plist the root node to export | | * @param plist the root node to export | |
| | | | |
End of changes. 4 change blocks. |
| 0 lines changed or deleted | | 28 lines changed or added | |
|