void plist_set_date_val(plist_t node, int32_t sec, int32_t usec) { struct timeval val = { sec, usec }; plist_set_element_val(node, PLIST_DATE, &val, sizeof(struct timeval)); }
void plist_set_real_val(plist_t node, double val) { plist_set_element_val(node, PLIST_REAL, &val, sizeof(double)); }
void plist_set_data_val(plist_t node, const char *val, uint64_t length) { plist_set_element_val(node, PLIST_DATA, val, length); }
void plist_set_uid_val(plist_t node, uint64_t val) { plist_set_element_val(node, PLIST_UID, &val, sizeof(uint64_t)); }
void plist_set_bool_val(plist_t node, uint8_t val) { plist_set_element_val(node, PLIST_BOOLEAN, &val, sizeof(uint8_t)); }
void plist_set_string_val(plist_t node, const char *val) { plist_set_element_val(node, PLIST_STRING, val, strlen(val)); }
void plist_set_key_val(plist_t node, const char *val) { plist_set_element_val(node, PLIST_KEY, val, strlen(val)); }
void plist_set_date_val(plist_t node, int32_t sec, int32_t usec) { timeval_t val = { sec, usec }; plist_set_element_val(node, PLIST_DATE, &val, sizeof(timeval_t)); }