1 #ifndef foosaphfoo 2 #define foosaphfoo 3 4 /*** 5 This file is part of PulseAudio. 6 7 Copyright 2006 Lennart Poettering 8 9 PulseAudio is free software; you can redistribute it and/or modify 10 it under the terms of the GNU Lesser General Public License as published 11 by the Free Software Foundation; either version 2.1 of the License, 12 or (at your option) any later version. 13 14 PulseAudio is distributed in the hope that it will be useful, but 15 WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 General Public License for more details. 18 19 You should have received a copy of the GNU Lesser General Public License 20 along with PulseAudio; if not, see <http://www.gnu.org/licenses/>. 21 ***/ 22 23 #include <inttypes.h> 24 #include <sys/socket.h> 25 #include <sys/types.h> 26 #include <pulsecore/memblockq.h> 27 #include <pulsecore/memchunk.h> 28 29 typedef struct pa_sap_context { 30 int fd; 31 char *sdp_data; 32 33 uint16_t msg_id_hash; 34 } pa_sap_context; 35 36 pa_sap_context* pa_sap_context_init_send(pa_sap_context *c, int fd, char *sdp_data); 37 void pa_sap_context_destroy(pa_sap_context *c); 38 39 int pa_sap_send(pa_sap_context *c, bool goodbye); 40 41 pa_sap_context* pa_sap_context_init_recv(pa_sap_context *c, int fd); 42 int pa_sap_recv(pa_sap_context *c, bool *goodbye); 43 44 #endif 45