mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -05:00
api documentation improvements
includes typo fixes, neatening, addition of more return info, and such.
This commit is contained in:
parent
7973dfd768
commit
b683350856
15 changed files with 205 additions and 143 deletions
|
|
@ -271,7 +271,7 @@ PA_C_DECL_BEGIN
|
|||
* as keys and arbitrary data as values. \since 0.9.11 */
|
||||
typedef struct pa_proplist pa_proplist;
|
||||
|
||||
/** Allocate a property list. \since 0.9.11 */
|
||||
/** Allocate a property list. Free with pa_proplist_free. \since 0.9.11 */
|
||||
pa_proplist* pa_proplist_new(void);
|
||||
|
||||
/** Free the property list. \since 0.9.11 */
|
||||
|
|
@ -283,7 +283,7 @@ 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
|
||||
* UTF-8. \since 0.9.11 */
|
||||
* UTF-8. Returns zero on success. \since 0.9.11 */
|
||||
int pa_proplist_sets(pa_proplist *p, const char *key, const char *value);
|
||||
|
||||
/** Append a new string entry to the property list, possibly
|
||||
|
|
@ -291,19 +291,20 @@ int pa_proplist_sets(pa_proplist *p, const char *key, const char *value);
|
|||
* internal copy of the data passed is made. Will accept only valid
|
||||
* UTF-8. The string passed in must contain a '='. Left hand side of
|
||||
* the '=' is used as key name, the right hand side as string
|
||||
* data. \since 0.9.16 */
|
||||
* data. Returns zero on success. \since 0.9.16 */
|
||||
int pa_proplist_setp(pa_proplist *p, const char *pair);
|
||||
|
||||
/** 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
|
||||
* UTF-8. The data can be passed as printf()-style format string with
|
||||
* arguments. \since 0.9.11 */
|
||||
* arguments. Returns zero on success. \since 0.9.11 */
|
||||
int pa_proplist_setf(pa_proplist *p, const char *key, const char *format, ...) PA_GCC_PRINTF_ATTR(3,4);
|
||||
|
||||
/** Append a new arbitrary data entry to the property list, possibly
|
||||
* overwriting an already existing entry with the same key. An
|
||||
* internal copy of the data passed is made. \since 0.9.11 */
|
||||
* internal copy of the data passed is made.
|
||||
* Returns zero on success. \since 0.9.11 */
|
||||
int pa_proplist_set(pa_proplist *p, const char *key, const void *data, size_t nbytes);
|
||||
|
||||
/** Return a string entry for the specified key. Will return NULL if
|
||||
|
|
@ -315,8 +316,8 @@ const char *pa_proplist_gets(pa_proplist *p, const char *key);
|
|||
/** Store the value for the specified key in \a data. Will store a
|
||||
* NUL-terminated string for string entries. The \a data pointer returned will
|
||||
* point to an internally allocated buffer. The caller should make a
|
||||
* copy of the data before the property list is accessed again. \since
|
||||
* 0.9.11 */
|
||||
* copy of the data before the property list is accessed again.
|
||||
* Returns zero on success, negative on error. \since 0.9.11 */
|
||||
int pa_proplist_get(pa_proplist *p, const char *key, const void **data, size_t *nbytes);
|
||||
|
||||
/** Update mode enum for pa_proplist_update(). \since 0.9.11 */
|
||||
|
|
@ -347,7 +348,8 @@ typedef enum pa_update_mode {
|
|||
void pa_proplist_update(pa_proplist *p, pa_update_mode_t mode, const pa_proplist *other);
|
||||
|
||||
/** Removes a single entry from the property list, identified be the
|
||||
* specified key name. \since 0.9.11 */
|
||||
* specified key name. Returns zero on success, negative on error.
|
||||
* \since 0.9.11 */
|
||||
int pa_proplist_unset(pa_proplist *p, const char *key);
|
||||
|
||||
/** Similar to pa_proplist_unset() but takes an array of keys to
|
||||
|
|
@ -384,7 +386,7 @@ char *pa_proplist_to_string_sep(pa_proplist *p, const char *sep);
|
|||
pa_proplist *pa_proplist_from_string(const char *str);
|
||||
|
||||
/** Returns 1 if an entry for the specified key exists in the
|
||||
* property list. \since 0.9.11 */
|
||||
* property list. Returns negative on error. \since 0.9.11 */
|
||||
int pa_proplist_contains(pa_proplist *p, const char *key);
|
||||
|
||||
/** Remove all entries from the property list object. \since 0.9.11 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue