pacemaker  2.1.8-3980678f03
Scalable High-Availability cluster resource manager
Data Structures | Macros | Typedefs | Functions
nvpair_internal.h File Reference
#include <glib.h>
#include <libxml/tree.h>
#include <crm/common/rules.h>
#include <crm/common/iso8601.h>
#include <crm/common/strings_internal.h>
Include dependency graph for nvpair_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  unpack_data_s
 

Macros

#define pcmk__insert_meta(obj, name, value)
 

Typedefs

typedef struct unpack_data_s pcmk__nvpair_unpack_t
 

Functions

int pcmk__xe_get_datetime (const xmlNode *xml, const char *attr, crm_time_t **t)
 

Macro Definition Documentation

◆ pcmk__insert_meta

#define pcmk__insert_meta (   obj,
  name,
  value 
)
Value:
do { \
if (pcmk__str_eq((value), "#default", pcmk__str_casei)) { \
/* @COMPAT Deprecated since 2.1.8 */ \
pcmk__config_warn("Support for setting meta-attributes " \
"(such as %s) to the explicit value " \
"'#default' is deprecated and will be " \
"removed in a future release", (name)); \
} else if ((value) != NULL) { \
pcmk__insert_dup((obj)->meta, (name), (value)); \
} \
} while (0)
const char * name
Definition: cib.c:26

Definition at line 45 of file nvpair_internal.h.

Typedef Documentation

◆ pcmk__nvpair_unpack_t

Function Documentation

◆ pcmk__xe_get_datetime()

int pcmk__xe_get_datetime ( const xmlNode *  xml,
const char *  attr,
crm_time_t **  t 
)

Definition at line 644 of file nvpair.c.