/* linphone Copyright (C) 2010 Simon MORLAT (simon.morlat@free.fr) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /** This header files defines the Signaling Abstraction Layer. The purpose of this layer is too allow experiment different call signaling protocols and implementations under linphone, for example SIP, JINGLE... **/ #ifndef sal_h #define sal_h #include "mediastreamer2/mscommon.h" struct Sal; typedef struct Sal Sal; struct SalOp; typedef struct SalOp SalOp; Sal * sal_init(); void sal_uninit(Sal* sal); typedef enum { SAL_TRANSPORT_DATAGRAM, SAL_TRANSPORT_STREAM }SalTransport; typedef enum { SAL_AUDIO, SAL_VIDEO, SAL_OTHER } SalStreamType; typedef enum{ SAL_PROTO_UNKNOWN, SAL_PROTO_RTP_AVP, SAL_PROTO_RTP_SAVP }SalMediaProto; typedef struct SalStreamDescription{ SalMediaProto proto; SalStreamType type; char addr[64]; int port; MSList *payloads; //user_data=(void*)((long)n); #define payload_type_get_number(pt) ((int)(long)(pt)->user_data) /*internal API */ void __sal_op_init(SalOp *b, Sal *sal); void __sal_op_free(SalOp *b); #endif