/usr/include/libsyncml-1.0/libsyncml/sml_command.h is in libsyncml-dev 0.5.4-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | /*
* 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
*
*/
/**
* @defgroup SmlCommand SyncML Command
* @ingroup PublicLowLevelAPI
* @brief The public part
*
*/
/*@{*/
#ifndef _SML_COMMAND_H_
#define _SML_COMMAND_H_
SmlStatus *smlStatusNew(SmlErrorType data, unsigned int cmdref, unsigned int msgref, SmlLocation *sourceref, SmlLocation *targeref, SmlCommandType type, SmlError **error);
SmlStatus *smlStatusRef(SmlStatus *status);
void smlStatusUnref(SmlStatus *status);
SmlErrorType smlStatusGetCode(SmlStatus *status);
SmlErrorClass smlStatusGetClass(SmlStatus *status);
SmlCommand *smlStatusGetResult(SmlStatus *status);
SmlBool smlStatusIsResult(SmlStatus *status);
SmlCommand *smlCommandNew(SmlCommandType type, SmlError **error);
SmlStatus *smlCommandNewReply(const SmlCommand *cmd, SmlErrorType code, SmlError **error);
SmlCommand *smlCommandRef(SmlCommand *cmd);
void smlCommandUnref(SmlCommand *cmd);
SmlCommand *smlCommandNewAlert(SmlAlertType type, SmlLocation *target, SmlLocation *source, const char *next, const char *last, const char *contenttype, SmlError **error);
SmlCommand *smlCommandNewSync(SmlLocation *target, SmlLocation *source, unsigned int num_changes, SmlError **error);
SmlCommand *smlCommandNewChange(SmlChangeType type, const char *uid, const char *data, unsigned int size, const char *contenttype, SmlError **error);
SmlCommand *smlCommandNewPartialChange(SmlChangeType type, const char *uid, const char *data, unsigned int complete_size, unsigned int partial_size, const char *contenttype, SmlError **error);
SmlCommand *smlCommandNewResult(SmlCommand *cmd, SmlLocation *source, char *data, unsigned int size, const char *contenttype, SmlError **error);
SmlCommand *smlCommandNewPut(SmlLocation *target, SmlLocation *source, const char *data, unsigned int size, const char *contenttype, SmlError **error);
SmlCommand *smlCommandNewGet(SmlLocation *target, const char *contenttype, SmlError **error);
SmlCommand *smlCommandNewMap(SmlLocation *target, SmlLocation *source, SmlError **error);
SmlBool smlCommandAddMapItem(SmlCommand *map, SmlMapItem *item, SmlError **error);
#endif //_SML_COMMAND_H_
/*@}*/
|