sml_devinf_obj.h
/*
* libsyncml - A syncml protocol implementation
* Copyright (C) 2005 Armin Bauer <armin.bauer@opensync.org>
* Copyright (C) 2008 Michael Bell <michael.bell@opensync.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef _SML_DEVINF_OBJ_H_
#define _SML_DEVINF_OBJ_H_
typedef struct SmlDevInfAgent SmlDevInfAgent;
// only the SmlDevInf pointer of smlDevInfAgentNew is the local DevInf
// all other SmlDevInf pointers are the DevInf of the remote peer
SmlDevInfAgent *smlDevInfAgentNew(SmlDevInf *devinf, SmlError **error);
void smlDevInfAgentFree(SmlDevInfAgent *agent);
SmlBool smlDevInfAgentRegisterSession(SmlDevInfAgent *agent, SmlManager *manager, SmlSession *session, SmlError **error);
SmlBool smlDevInfAgentRegister(SmlDevInfAgent *agent, SmlManager *manager, SmlError **error);
SmlBool smlDevInfAgentSendDevInf(SmlDevInfAgent *agent, SmlSession *session, SmlError **error);
SmlBool smlDevInfAgentRequestDevInf(SmlDevInfAgent *agent, SmlSession *session, SmlError **error);
SmlBool smlDevInfAgentSetSessionDevInf(SmlDevInfAgent *agent, SmlSession *session, SmlDevInf *devinf, SmlError **error);
SmlDevInf *smlDevInfAgentGetSessionDevInf(SmlDevInfAgent *agent, SmlSession *session);
/* These functions can only work in a single session environemnt.
* This is a design bug. The functions are not removed immediately
* to avoid breaking applications which ignore the device information.
* These functions always fire an assertion.
*/
void smlDevInfAgentSetDevInf(SmlDevInfAgent *agent, SmlDevInf *devinf) LIBSYNCML_DEPRECATED;
SmlDevInf *smlDevInfAgentGetDevInf(SmlDevInfAgent *agent) LIBSYNCML_DEPRECATED;
#endif //_SML_DEVINF_OBJ_H_
SmlDevInfAgent
Definition: sml_devinf_obj_internals.h:41
smlDevInfAgentSendDevInf
SmlBool smlDevInfAgentSendDevInf(SmlDevInfAgent *agent, SmlSession *session, SmlError **error)
Definition: sml_devinf_obj.c:494
SmlManager
Definition: sml_manager_internals.h:35
SmlSession
Definition: sml_session_internals.h:27
smlDevInfAgentRequestDevInf
SmlBool smlDevInfAgentRequestDevInf(SmlDevInfAgent *agent, SmlSession *session, SmlError **error)
Definition: sml_devinf_obj.c:512
SmlDevInf
Definition: sml_devinf_internals.h:33
SmlError
Represent an error.
Definition: sml_error_internals.h:29