telepathy: implement read side of transport
[siplcs.git] / src / telepathy / telepathy-private.h
blobf45e6eb7030c969514ba27c6db2237ca26990ac9
1 /**
2 * @file telepathy-private.h
4 * pidgin-sipe
6 * Copyright (C) 2012 SIPE Project <http://sipe.sourceforge.net/>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 /* Forward declarations */
24 struct _SipeConnection;
25 struct _TpBaseConnection;
26 struct _TpBaseConnectionManager;
27 struct _TpBaseProtocol;
29 /* constants */
30 #define SIPE_TELEPATHY_DOMAIN "sipe"
32 struct sipe_backend_private {
33 struct sipe_core_public *public;
34 struct _SipeConnection *connection;
35 gpointer transport;
38 /* connection */
39 struct _TpBaseConnection *sipe_telepathy_connection_new(struct _TpBaseProtocol *protocol,
40 GHashTable *params,
41 GError **error);
43 /* debugging */
44 void sipe_telepathy_debug_init(void);
45 void sipe_telepathy_debug_finalize(void);
47 /* protocol */
48 void sipe_telepathy_protocol_init(struct _TpBaseConnectionManager *cm);
49 gchar *sipe_telepathy_protocol_normalize_contact(struct _TpBaseProtocol *self,
50 const gchar *contact,
51 GError **error);
55 Local Variables:
56 mode: c
57 c-file-style: "bsd"
58 indent-tabs-mode: t
59 tab-width: 8
60 End: