pacemaker  3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
xml_idref_internal.h
Go to the documentation of this file.
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
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
xmlNode * pcmk__xe_resolve_idref(xmlNode *xml, xmlNode *search)
Definition: xml_idref.c:85
char data[0]
Definition: cpg.c:58
void pcmk__free_idref(gpointer data)
Definition: xml_idref.c:61
void pcmk__add_idref(GHashTable *table, const char *id, const char *referrer)
Definition: xml_idref.c:32