Home | History | Annotate | Download | only in listener
      1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef JINGLE_NOTIFIER_LISTENER_XML_ELEMENT_UTIL_H_
      6 #define JINGLE_NOTIFIER_LISTENER_XML_ELEMENT_UTIL_H_
      7 
      8 #include <string>
      9 
     10 namespace buzz {
     11 class XmlElement;
     12 }
     13 
     14 namespace notifier {
     15 
     16 std::string XmlElementToString(const buzz::XmlElement& xml_element);
     17 
     18 // The functions below are helpful for building notifications-related
     19 // XML stanzas.
     20 
     21 buzz::XmlElement* MakeBoolXmlElement(const char* name, bool value);
     22 
     23 buzz::XmlElement* MakeIntXmlElement(const char* name, int value);
     24 
     25 buzz::XmlElement* MakeStringXmlElement(const char* name, const char* value);
     26 
     27 }  // namespace notifier
     28 
     29 #endif  // JINGLE_NOTIFIER_LISTENER_XML_ELEMENT_UTIL_H_
     30