libsyncml 0.5.4

- Main Page
- Modules
- Data Structures
- Files

- File List

sml_notification_internals.h
1 /*
2 * libsyncml - A syncml protocol implementation
3 * Copyright (C) 2005 Armin Bauer <armin.bauer@opensync.org>
4 * Copyright (C) 2007-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
29
30 #ifndef _SML_NOTIFICATION_INTERNALS_H_
31 #define _SML_NOTIFICATION_INTERNALS_H_
32
33 struct SmlNotification {
34 SmlNotificationVersion version;
35 SmlNotificationUIMode mode;
36 SmlNotificationInitiator init;
37 unsigned int sessionID;
38 char *identifier;
39 SmlLocation *target;
40 GList *alerts;
41 SmlMimeType type;
42 SmlCred *cred;
43 SmlSessionType sessionType;
44 SmlManager *manager;
45
46 unsigned int localMaxMsgSize;
47 unsigned int localMaxObjSize;
48 };
49
50 struct SmlSanAlert {
51 SmlAlertType type;
52 char *contenttype;
53 char *serverURI;
54 };
55
56 SmlBool smlNotificationAssemble11(
57 SmlNotification *san,
58 char **data,
59 unsigned int *size,
60 SmlProtocolVersion version,
61 SmlError **error);
62
63 #endif //_SML_NOTIFICATION_INTERNALS_H_
64