]> code.delx.au - pulseaudio/blob - src/modules/rtp/headerlist.h
loopback: add loopback module for direct connections of sinks and sources
[pulseaudio] / src / modules / rtp / headerlist.h
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, write to the Free Software
22 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23 USA.
24 ***/
25
26 #include <pulsecore/macro.h>
27
28 typedef struct pa_headerlist pa_headerlist;
29
30 pa_headerlist* pa_headerlist_new(void);
31 void pa_headerlist_free(pa_headerlist* p);
32
33 int pa_headerlist_puts(pa_headerlist *p, const char *key, const char *value);
34 int pa_headerlist_putsappend(pa_headerlist *p, const char *key, const char *value);
35
36 const char *pa_headerlist_gets(pa_headerlist *p, const char *key);
37
38 int pa_headerlist_remove(pa_headerlist *p, const char *key);
39
40 const char *pa_headerlist_iterate(pa_headerlist *p, void **state);
41
42 char *pa_headerlist_to_string(pa_headerlist *p);
43
44 int pa_headerlist_contains(pa_headerlist *p, const char *key);
45
46 #endif