File: sofia-decls.h

package info (click to toggle)
telepathy-rakia 0.8.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 3,028 kB
  • ctags: 1,720
  • sloc: sh: 11,552; ansic: 9,892; python: 4,532; makefile: 421; xml: 15
file content (50 lines) | stat: -rw-r--r-- 2,048 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
 * sofia-decls.h - A header file to pull in Sofia APIs
 * Copyright (C) 2006-2009 Nokia Corporation
 *   @author Mikhail Zabaluev <mikhail.zabaluev@nokia.com>
 *
 * This work is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This work 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this work; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

#ifndef _RAKIA_SOFIA_DECLS_H_
#define _RAKIA_SOFIA_DECLS_H_

/* note: As one Sofia-SIP NUA instance is created per SIP connection,
 *       RakiaConnection is used as the context pointer.
 *       See {top}/docs/design.txt for further information.
 *
 *       Each NUA handle managed by Telepathy-Rakia is bound to an object
 *       implementing RakiaEventTarget. The managed NUA handle survives at
 *       least as long as the bound object. When the object is destroyed,
 *       the handle is bound to a special end-of-life event handler object.
 *       Thus, any NUA handle has either the magic value of NULL, or
 *       pointing to an event target object attached to this handle.
 */

#define NUA_MAGIC_T      struct _RakiaBaseConnection
#define NUA_HMAGIC_T     struct _RakiaEventTarget
#define SU_ROOT_MAGIC_T  struct _RakiaConnectionManager
#define SU_TIMER_ARG_T   struct _RakiaBaseConnection
#define SU_WAKEUP_ARG_T  void

#define RAKIA_DEFAULT_STUN_PORT 3478

/* Maximum defer timeout for deferrable Sofia timers */
#define RAKIA_DEFER_TIMEOUT 30

#include <sofia-sip/nua.h>
#include <sofia-sip/su.h>

#endif /* _RAKIA_SOFIA_DECLS_H_*/