PROP_DICTIONARY(3) | Library Functions Manual | PROP_DICTIONARY(3) |
prop_dictionary_t
prop_dictionary_create(void);
prop_dictionary_t
prop_dictionary_create_with_capacity(unsigned int capacity);
prop_dictionary_t
prop_dictionary_copy(prop_dictionary_t dict);
prop_dictionary_t
prop_dictionary_copy_mutable(prop_dictionary_t dict);
unsigned int
prop_dictionary_count(prop_dictionary_t dict);
bool
prop_dictionary_ensure_capacity(prop_dictionary_t dict, unsigned int capacity);
prop_object_iterator_t
prop_dictionary_iterator(prop_dictionary_t dict);
prop_array_t
prop_dictionary_all_keys(prop_dictionary_t dict);
void
prop_dictionary_make_immutable(prop_dictionary_t dict);
bool
prop_dictionary_mutable(prop_dictionary_t dict);
prop_object_t
prop_dictionary_get(prop_dictionary_t dict, const char *key);
bool
prop_dictionary_set(prop_dictionary_t dict, const char *key, prop_object_t obj);
void
prop_dictionary_remove(prop_dictionary_t dict, const char *key);
prop_object_t
prop_dictionary_get_keysym(prop_dictionary_t dict, prop_dictionary_keysym_t keysym);
bool
prop_dictionary_set_keysym(prop_dictionary_t dict, prop_dictionary_keysym_t keysym, prop_object_t obj);
void
prop_dictionary_remove_keysym(prop_dictionary_t dict, prop_dictionary_keysym_t keysym);
bool
prop_dictionary_equals(prop_dictionary_t dict1, prop_dictionary_t dict2);
const char *
prop_dictionary_keysym_cstring_nocopy(prop_dictionary_keysym_t sym);
bool
prop_dictionary_keysym_equals(prop_dictionary_keysym_t keysym1, prop_dictionary_keysym_t keysym2);
char *
prop_dictionary_externalize(prop_dictionary_t dict);
prop_dictionary_t
prop_dictionary_internalize(const char *xml);
bool
prop_dictionary_externalize_to_file(prop_dictionary_t dict, const char *path);
prop_dictionary_t
prop_dictionary_internalize_from_file(const char *path);
bool
prop_dictionary_externalize_to_pref(prop_dictionary_t dict, struct plistref *pref);
bool
prop_dictionary_internalize_from_pref(const struct plistref *pref, prop_dictionary_t *dictp);
In user space, the buffer is allocated using malloc(3). In the kernel, the buffer is allocated using malloc(9) using the malloc type M_TEMP.
December 5, 2009 | NetBSD 6.1 |