root/include/crm/common/xml_compat.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


DEFINITIONS

This source file includes following definitions.
  1. crm_xml_add_boolean

   1 /*
   2  * Copyright 2004-2022 the Pacemaker project contributors
   3  *
   4  * The version control history for this file may have further details.
   5  *
   6  * This source code is licensed under the GNU Lesser General Public License
   7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
   8  */
   9 
  10 #ifndef PCMK__CRM_COMMON_XML_COMPAT__H
  11 #  define PCMK__CRM_COMMON_XML_COMPAT__H
  12 
  13 #include <glib.h>               // gboolean
  14 #include <libxml/tree.h>        // xmlNode
  15 #include <crm/common/xml.h>     // crm_xml_add()
  16 
  17 #ifdef __cplusplus
  18 extern "C" {
  19 #endif
  20 
  21 /**
  22  * \file
  23  * \brief Deprecated Pacemaker XML API
  24  * \ingroup core
  25  * \deprecated Do not include this header directly. The XML APIs in this
  26  *             header, and the header itself, will be removed in a future
  27  *             release.
  28  */
  29 
  30 //! \deprecated This function will be removed in a future release
  31 xmlNode *find_entity(xmlNode *parent, const char *node_name, const char *id);
  32 
  33 //!  \deprecated Use xml_apply_patchset() instead
  34 gboolean apply_xml_diff(xmlNode *old_xml, xmlNode *diff, xmlNode **new_xml);
  35 
  36 //!  \deprecated Use crm_xml_add() with "true" or "false" instead
  37 static inline const char *
  38 crm_xml_add_boolean(xmlNode *node, const char *name, gboolean value)
     /* [previous][next][first][last][top][bottom][index][help] */
  39 {
  40     return crm_xml_add(node, name, (value? "true" : "false"));
  41 }
  42 
  43 #ifdef __cplusplus
  44 }
  45 #endif
  46 
  47 #endif // PCMK__CRM_COMMON_XML_COMPAT__H

/* [previous][next][first][last][top][bottom][index][help] */