pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
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)
17typedef struct {
18 char *id; // XML ID of primary element
19 GList *refs; // XML IDs of elements that reference the primary element
21
22void pcmk__add_idref(GHashTable *table, const char *id, const char *referrer);
23void pcmk__free_idref(gpointer data);
24xmlNode *pcmk__xe_resolve_idref(xmlNode *xml, xmlNode *search);
25GList *pcmk__xe_dereference_children(const xmlNode *xml,
26 const char *element_name);
27
28#endif // PCMK__CRM_COMMON_XML_IDREF_INTERNAL__H
char data[0]
Definition cpg.c:10
GList * pcmk__xe_dereference_children(const xmlNode *xml, const char *element_name)
Definition xml_idref.c:128
xmlNode * pcmk__xe_resolve_idref(xmlNode *xml, xmlNode *search)
Definition xml_idref.c:85
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