libsyncml
0.5.4
Main Page
Modules
Data Structures
Files
File List
libsyncml
objects
sml_devinf_obj.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
29
30
#ifndef _SML_DEVINF_OBJ_H_
31
#define _SML_DEVINF_OBJ_H_
32
33
typedef
struct
SmlDevInfAgent
SmlDevInfAgent
;
34
35
// only the SmlDevInf pointer of smlDevInfAgentNew is the local DevInf
36
// all other SmlDevInf pointers are the DevInf of the remote peer
37
38
SmlDevInfAgent
*smlDevInfAgentNew(
SmlDevInf
*devinf,
SmlError
**error);
39
void
smlDevInfAgentFree(
SmlDevInfAgent
*agent);
40
SmlBool smlDevInfAgentRegisterSession(
SmlDevInfAgent
*agent,
SmlManager
*manager,
SmlSession
*session,
SmlError
**error);
41
SmlBool smlDevInfAgentRegister(
SmlDevInfAgent
*agent,
SmlManager
*manager,
SmlError
**error);
42
SmlBool
smlDevInfAgentSendDevInf
(
SmlDevInfAgent
*agent,
SmlSession
*session,
SmlError
**error);
43
SmlBool
smlDevInfAgentRequestDevInf
(
SmlDevInfAgent
*agent,
SmlSession
*session,
SmlError
**error);
44
45
SmlBool smlDevInfAgentSetSessionDevInf(
SmlDevInfAgent
*agent,
SmlSession
*session,
SmlDevInf
*devinf,
SmlError
**error);
46
SmlDevInf
*smlDevInfAgentGetSessionDevInf(
SmlDevInfAgent
*agent,
SmlSession
*session);
47
48
/* These functions can only work in a single session environemnt.
49
* This is a design bug. The functions are not removed immediately
50
* to avoid breaking applications which ignore the device information.
51
* These functions always fire an assertion.
52
*/
53
void
smlDevInfAgentSetDevInf(
SmlDevInfAgent
*agent,
SmlDevInf
*devinf) LIBSYNCML_DEPRECATED;
54
SmlDevInf
*smlDevInfAgentGetDevInf(
SmlDevInfAgent
*agent) LIBSYNCML_DEPRECATED;
55
56
#endif //_SML_DEVINF_OBJ_H_
57
Generated on Sun Jul 1 2012 03:36:52 for libsyncml by
1.8.1.1