XMMS2
xmmsc_strlist.h
Go to the documentation of this file.
1 /* XMMS2 - X Music Multiplexer System
2  * Copyright (C) 2003-2011 XMMS2 Team
3  *
4  * PLUGINS ARE NOT CONSIDERED TO BE DERIVED WORK !!!
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  */
16 
17 #ifndef __XMMS_STRLIST_H__
18 #define __XMMS_STRLIST_H__
19 
20 #include <stdarg.h>
21 
22 char **xmms_valist_to_strlist (const char *first, va_list ap);
23 char **xmms_vargs_to_strlist (const char *first, ...);
24 int xmms_strlist_len (char **data);
25 void xmms_strlist_destroy (char **data);
26 char **xmms_strlist_prepend_copy (char **data, char *newstr);
27 char **xmms_strlist_copy (char **strlist);
28 
29 #endif /* __XMMS_STRLIST_H__ */
char ** xmms_strlist_prepend_copy(char **data, char *newstr)
Return a copy of a list with newstr prepended.
Definition: strlist.c:119
int xmms_strlist_len(char **data)
Get the number of strings in a list.
Definition: strlist.c:87
char ** xmms_strlist_copy(char **strlist)
Return a deep copy of a list.
Definition: strlist.c:139
void xmms_strlist_destroy(char **data)
Destroy a list of strings.
Definition: strlist.c:101
char ** xmms_valist_to_strlist(const char *first, va_list ap)
Convert a list of variable arguments into a list of strings.
Definition: strlist.c:37
char ** xmms_vargs_to_strlist(const char *first,...)
Convert a variable number of arguments into a list of strings.
Definition: strlist.c:65