libsyncml 0.5.4

- Main Page
- Modules
- Data Structures
- Files

- File List

obex_server_internals.h
1 /*
2 * libsyncml - A syncml protocol implementation
3 * Copyright (C) 2005 Armin Bauer <armin.bauer@opensync.org>
4 * Copyright (C) 2008 Michael Bell <michael.bell@opensync.org>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 *
20 */
21
22 #ifndef _OBEX_SERVER_INTERNALS_H_
23 #define _OBEX_SERVER_INTERNALS_H_
24
25 #include "obex_bluetooth.h"
26 #include <openobex/obex.h>
27
28 #define STREAM_CHUNK 4096
29
30 typedef struct SmlTransportObexServerEnv {
31 SmlTransportConnectionType type;
32 SmlTransport *tsp;
33 char *path;
34 uint16_t port;
35 #ifdef ENABLE_BLUETOOTH
36 bdaddr_t *bdaddr;
37 #endif
38 char *irda_service;
39
40 obex_t *handle;
41
42 GSource *source;
43 GSourceFuncs *functions;
44
45 uint32_t lastConId;
46 } SmlTransportObexServerEnv;
47
48 typedef struct SmlLinkObexServerEnv {
49 SmlLink *link;
50 SmlTransportObexServerEnv *env;
51 uint32_t conid;
52 obex_t *handle;
53 uint8_t *stream_chunk;
54 SmlBool destroy;
55 SmlBool disconnect;
56 GSource *source;
57 SmlError *error;
58 SmlTransportData *send_data;
59 } SmlLinkObexServerEnv;
60
61 SmlBool smlTransportObexServerNew(SmlTransport *tsp, SmlError **error);
62
63 #endif //_OBEX_SERVER_INTERNALS_H_