10#ifndef PCMK__CRM_COMMON_NVPAIR__H
11#define PCMK__CRM_COMMON_NVPAIR__H
15#include <libxml/tree.h>
41 const char *
name,
const char *value);
42void hash2field(gpointer key, gpointer value, gpointer user_data);
43void hash2metafield(gpointer key, gpointer value, gpointer user_data);
59#if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
struct crm_time_s crm_time_t
const char * crm_meta_value(GHashTable *hash, const char *field)
Get the value of a meta-attribute.
GHashTable * xml2list(const xmlNode *parent)
Retrieve XML attributes as a hash table.
struct pcmk_nvpair_s pcmk_nvpair_t
GSList * pcmk_prepend_nvpair(GSList *nvpairs, const char *name, const char *value)
Prepend a name/value pair to a list.
xmlNode * crm_create_nvpair_xml(xmlNode *parent, const char *id, const char *name, const char *value)
Create an XML name/value pair.
void hash2metafield(gpointer key, gpointer value, gpointer user_data)
Set XML attribute based on hash table entry, as meta-attribute name.
void hash2field(gpointer key, gpointer value, gpointer user_data)
Set XML attribute based on hash table entry.
char * crm_meta_name(const char *field)
Get the environment variable equivalent of a meta-attribute name.
void pcmk_free_nvpairs(GSList *nvpairs)
Free a list of name/value pairs.
void pcmk_unpack_nvpair_blocks(const xmlNode *xml, const char *element_name, const char *first_id, const pcmk_rule_input_t *rule_input, GHashTable *values, crm_time_t *next_change)
Unpack nvpair blocks contained by an XML element into a hash table, evaluated for any rules.
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.