1 #ifndef foopulseheaderlisthfoo 2 #define foopulseheaderlisthfoo 3 4 /*** 5 This file is part of PulseAudio. 6 7 Copyright 2008 Colin Guthrie 8 Copyright 2007 Lennart Poettering 9 10 PulseAudio is free software; you can redistribute it and/or modify 11 it under the terms of the GNU Lesser General Public License as 12 published by the Free Software Foundation; either version 2.1 of the 13 License, or (at your option) any later version. 14 15 PulseAudio is distributed in the hope that it will be useful, but 16 WITHOUT ANY WARRANTY; without even the implied warranty of 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 Lesser General Public License for more details. 19 20 You should have received a copy of the GNU Lesser General Public 21 License along with PulseAudio; if not, see <http://www.gnu.org/licenses/>. 22 ***/ 23 24 #include <pulsecore/macro.h> 25 26 typedef struct pa_headerlist pa_headerlist; 27 28 pa_headerlist* pa_headerlist_new(void); 29 void pa_headerlist_free(pa_headerlist* p); 30 31 int pa_headerlist_puts(pa_headerlist *p, const char *key, const char *value); 32 int pa_headerlist_putsappend(pa_headerlist *p, const char *key, const char *value); 33 34 const char *pa_headerlist_gets(pa_headerlist *p, const char *key); 35 36 int pa_headerlist_remove(pa_headerlist *p, const char *key); 37 38 const char *pa_headerlist_iterate(pa_headerlist *p, void **state); 39 40 char *pa_headerlist_to_string(pa_headerlist *p); 41 42 int pa_headerlist_contains(pa_headerlist *p, const char *key); 43 44 #endif 45