#include <glib.h>
#include <libxml/tree.h>
#include <crm/common/rules.h>
#include <crm/common/iso8601.h>
#include <crm/common/strings_internal.h>
Go to the source code of this file.
◆ pcmk__insert_meta
#define pcmk__insert_meta |
( |
|
obj, |
|
|
|
name, |
|
|
|
value |
|
) |
| |
Value:do { \
\
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)
Definition at line 45 of file nvpair_internal.h.
◆ pcmk__nvpair_unpack_t
◆ pcmk__xe_get_datetime()
int pcmk__xe_get_datetime |
( |
const xmlNode * |
xml, |
|
|
const char * |
attr, |
|
|
crm_time_t ** |
t |
|
) |
| |
◆ pcmk__xe_get_flags()
int pcmk__xe_get_flags |
( |
const xmlNode * |
xml, |
|
|
const char * |
name, |
|
|
uint32_t * |
dest, |
|
|
uint32_t |
default_value |
|
) |
| |
Retrieve a flag group from an XML attribute value.
This is like crm_element_value()
except getting the value as a 32-bit unsigned integer.
- Parameters
-
[in] | xml | XML node to check |
[in] | name | Attribute name to check (must not be NULL) |
[out] | dest | Where to store flags (may be NULL to just validate type) |
[in] | default_value | What to use for missing or invalid value |
- Returns
- Standard Pacemaker return code
Definition at line 535 of file nvpair.c.