proplist: Change proplist_name_valid() to be public function pa_proplist_key_valid().

I want to check the validity in pa_tagstruct_get_proplist(),
and I think also client applications might have use for this
function.
This commit is contained in:
Tanu Kaskinen 2012-04-13 14:40:31 +03:00 committed by Tanu Kaskinen
parent 9b3d5acbbc
commit e17f18d89a
3 changed files with 18 additions and 14 deletions

View file

@ -279,6 +279,9 @@ pa_proplist* pa_proplist_new(void);
/** Free the property list. \since 0.9.11 */
void pa_proplist_free(pa_proplist* p);
/** Returns a non-zero value if the key is valid. \since 3.0 */
int pa_proplist_key_valid(const char *key);
/** Append a new string entry to the property list, possibly
* overwriting an already existing entry with the same key. An
* internal copy of the data passed is made. Will accept only valid