The wsreg_set_data() function returns a non-zero value if the specified key-value pair was successfully added. It returns 0 if the addition failed. If NULL is passed as the value, the current key-value pair are removed from the specified component.
The wsreg_get_data() function returns the value associated with the specified key. It returns NULL if there is no value associated with the specified key. The char pointer that is returned is not a clone, so it must not be freed
by the caller.
The wsreg_get_data_pairs() function returns a null-terminated array of char pointers that represents the specified component's list of data pairs. The even indexes of the resulting array represent the key names. The odd indexes of the array represent the values.
If the specified component has no data pairs, NULL is returned. The resulting array (not its contents) must be released by the caller.
|