~ubuntu-branches/ubuntu/quantal/linphone/quantal

« back to all changes in this revision

Viewing changes to oRTP/src/rtpsignaltable.h

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2006-11-15 10:34:50 UTC
  • mfrom: (1.2.1 upstream) (2.1.8 feisty)
  • Revision ID: james.westby@ubuntu.com-20061115103450-qgafwcks2lkhctlj
* New upstream release.
* Enable video support.
* Fix mismatched #endif in mscommon.h, closes: #398307.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
  The oRTP library is an RTP (Realtime Transport Protocol - rfc1889) stack.
3
 
  Copyright (C) 2001  Simon MORLAT simon.morlat@linphone.org
4
 
 
5
 
  This library is free software; you can redistribute it and/or
6
 
  modify it under the terms of the GNU Lesser General Public
7
 
  License as published by the Free Software Foundation; either
8
 
  version 2.1 of the License, or (at your option) any later version.
9
 
 
10
 
  This library is distributed in the hope that it will be useful,
11
 
  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
 
  Lesser General Public License for more details.
14
 
 
15
 
  You should have received a copy of the GNU Lesser General Public
16
 
  License along with this library; if not, write to the Free Software
17
 
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
 
*/
19
 
 
20
 
#define RTP_CALLBACK_TABLE_MAX_ENTRIES  5
21
 
 
22
 
typedef void (*RtpCallback)(RtpSession *, ...);
23
 
 
24
 
struct _RtpSignalTable
25
 
{
26
 
        RtpCallback callback[RTP_CALLBACK_TABLE_MAX_ENTRIES];
27
 
        gpointer        user_data[RTP_CALLBACK_TABLE_MAX_ENTRIES];
28
 
        RtpSession *session;
29
 
        gint count;
30
 
};
31
 
 
32
 
typedef struct _RtpSignalTable RtpSignalTable;
33
 
 
34
 
void rtp_signal_table_init(RtpSignalTable *table,RtpSession *session);
35
 
 
36
 
int rtp_signal_table_add(RtpSignalTable *table,RtpCallback cb, gpointer user_data);
37
 
 
38
 
void rtp_signal_table_emit(RtpSignalTable *table);
39
 
 
40
 
/* emit but with a second arg */
41
 
void rtp_signal_table_emit2(RtpSignalTable *table, gpointer arg);
42
 
 
43
 
int rtp_signal_table_remove_by_callback(RtpSignalTable *table,RtpCallback cb);
44