summaryrefslogtreecommitdiff
path: root/chromium/jingle/notifier/listener/xml_element_util.h
blob: bde86576cbf9d84c9354ae9275bb3733877fbedc (plain)
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
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef JINGLE_NOTIFIER_LISTENER_XML_ELEMENT_UTIL_H_
#define JINGLE_NOTIFIER_LISTENER_XML_ELEMENT_UTIL_H_

#include <string>

namespace buzz {
class XmlElement;
}

namespace notifier {

std::string XmlElementToString(const buzz::XmlElement& xml_element);

// The functions below are helpful for building notifications-related
// XML stanzas.

buzz::XmlElement* MakeBoolXmlElement(const char* name, bool value);

buzz::XmlElement* MakeIntXmlElement(const char* name, int value);

buzz::XmlElement* MakeStringXmlElement(const char* name, const char* value);

}  // namespace notifier

#endif  // JINGLE_NOTIFIER_LISTENER_XML_ELEMENT_UTIL_H_