root/include/crm/common/xml_idref_internal.h

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

INCLUDED FROM


   1 /*
   2  * Copyright 2024 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_IDREF_INTERNAL__H
  11 #define PCMK__CRM_COMMON_XML_IDREF_INTERNAL__H
  12 
  13 #include <glib.h>           // gboolean, gpointer, GList, GHashTable
  14 #include <libxml/tree.h>    // xmlNode
  15 
  16 // An XML ID and references to it (used for tags and templates)
  17 typedef struct {
  18     char *id;       // XML ID of primary element
  19     GList *refs;    // XML IDs of elements that reference the primary element
  20 } pcmk__idref_t;
  21 
  22 void pcmk__add_idref(GHashTable *table, const char *id, const char *referrer);
  23 void pcmk__free_idref(gpointer data);
  24 xmlNode *pcmk__xe_resolve_idref(xmlNode *xml, xmlNode *search);
  25 
  26 #endif // PCMK__CRM_COMMON_XML_IDREF_INTERNAL__H

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