10 #ifndef PCMK__CRM_COMMON_NVPAIR__H 11 #define PCMK__CRM_COMMON_NVPAIR__H 15 #include <libxml/tree.h> 38 const char *
name,
const char *value);
39 void hash2field(gpointer key, gpointer value, gpointer user_data);
40 void hash2metafield(gpointer key, gpointer value, gpointer user_data);
51 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1) 55 #endif // PCMK__CRM_COMMON_NVPAIR__H
void hash2field(gpointer key, gpointer value, gpointer user_data)
Set XML attribute based on hash table entry.
void pcmk_free_nvpairs(GSList *nvpairs)
Free a list of name/value pairs.
GSList * pcmk_prepend_nvpair(GSList *nvpairs, const char *name, const char *value)
Prepend a name/value pair to a list.
void hash2smartfield(gpointer key, gpointer value, gpointer user_data)
Safely add hash table entry to XML as attribute or name-value pair.
Deprecated Pacemaker name-value pair API.
GHashTable * xml2list(const xmlNode *parent)
Retrieve XML attributes as a hash table.
void hash2metafield(gpointer key, gpointer value, gpointer user_data)
Set XML attribute based on hash table entry, as meta-attribute name.
xmlNode * crm_create_nvpair_xml(xmlNode *parent, const char *id, const char *name, const char *value)
Create an XML name/value pair.
const char * crm_meta_value(GHashTable *hash, const char *field)
Get the value of a meta-attribute.
struct pcmk_nvpair_s pcmk_nvpair_t
char * crm_meta_name(const char *field)
Get the environment variable equivalent of a meta-attribute name.