/usr/include/libwfut-0.2/libwfut/ChannelIO.h is in libwfut-0.2-dev 0.2.3-1.
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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | // This file may be redistributed and modified only under the terms of
// the GNU Lesser General Public License (See COPYING for details).
// Copyright (C) 2005 - 2007 Simon Goodall
#ifndef LIBWFUT_CHANNELIO_H
#define LIBWFUT_CHANNELIO_H 1
#include <string>
#include <libwfut/types.h>
namespace WFUT {
static const std::string TAG_name = "name";
static const std::string TAG_description = "description";
static const std::string TAG_url = "url";
static const std::string TAG_email = "email";
static const std::string TAG_logo = "logo";
static const std::string TAG_channel = "channel";
static const std::string TAG_channellist = "channelList";
static const std::string TAG_mirror = "mirror";
static const std::string TAG_mirrorlist = "mirrorList";
/**
* Parse an XML document from a file and return the Channels in a
* ChannelList object
* @param filename The filename of the XML file.
* @param channels A ChannelList object to add parsed channels to.
* @return 0 on success, error otherwise
*/
int parseChannelList(const std::string &filename, ChannelList &channels);
/**
* Parse an XML document from a string and return the Channels in a
* ChannelList object
* @param xml The string object containing the XML.
* @param channels A ChannelList object to add parsed channels to.
* @return 0 on success, error otherwise
*/
int parseChannelListXML(const std::string &xml, ChannelList &channels);
/**
* Writes a ChannelList object to a file.
* @param filename The filename to write to
* @param channels The ChannelList object to write the file from.
* @return 0 on success, error otherwise
*/
int writeChannelList(const std::string &filename, const ChannelList &channels);
/**
* Parse an XML document from a file and return the Mirrors in a
* MirrorList object
* @param filename The filename of the XML file.
* @param mirrors A MirrorList object to add parsed mirrors to.
* @return 0 on success, error otherwise
*/
int parseMirrorList(const std::string &filename, MirrorList &mirrors);
/**
* Parse an XML document from a string and return the Mirrors in a
* MirrorList object
* @param xml The string object containing the XML.
* @param mirrors A MirrorList object to add parsed mirrors to.
* @return 0 on success, error otherwise
*/
int parseMirrorListXML(const std::string &xml, MirrorList &mirrors);
} /* namespace WFUT */
#endif /* LIBWFUT_CANNELIO_H */
|