libsyncml
0.5.4
Main Page
Modules
Data Structures
Files
File List
libsyncml
transports
http_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 _HTTP_SERVER_INTERNALS_H_
23
#define _HTTP_SERVER_INTERNALS_H_
24
25
#include <libsoup/soup-uri.h>
26
#include <libsoup/soup-server.h>
27
#ifdef HAVE_LIBSOUP22
28
#include <libsoup/soup-server-message.h>
29
#else
30
#include <libsoup/soup-message.h>
31
#endif
32
33
typedef
struct
SmlTransportHttpServerEnv
{
34
#ifdef HAVE_LIBSOUP22
35
SoupUri *uri;
36
#else
37
SoupURI *uri;
38
#endif
39
SoupServer *server;
40
SmlTransport
*tsp;
41
uint16_t port;
42
char
*url;
43
char
*ssl_cert;
44
char
*ssl_key;
45
46
/* session protection via ResponseURI */
47
GHashTable *sessionToUri;
48
GHashTable *uriToLink;
49
}
SmlTransportHttpServerEnv
;
50
51
typedef
struct
SmlLinkHttpServerEnv
{
52
SoupMessage *msg;
53
SmlTransportHttpServerEnv
*env;
54
SmlSession
*session;
55
char
*url;
56
SmlLink
*link;
57
}
SmlLinkHttpServerEnv
;
58
59
SmlBool smlTransportHttpServerNew(
SmlTransport
*tsp,
SmlError
**error);
60
61
#endif //_HTTP_SERVER_INTERNALS_H_
SmlTransportHttpServerEnv
Definition:
http_server_internals.h:33
SmlLinkHttpServerEnv
Definition:
http_server_internals.h:51
SmlTransport
Definition:
sml_transport_internals.h:69
SmlSession
Definition:
sml_session_internals.h:27
SmlLink
Definition:
sml_transport_internals.h:92
SmlError
Represent an error.
Definition:
sml_error_internals.h:29
Generated on Tue Dec 30 2014 04:38:36 for libsyncml by
1.8.8