pacemaker  2.1.0-7c3f660
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
util_compat.h File Reference

Deprecated Pacemaker utilities. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define crm_get_interval   crm_parse_interval_spec
 
#define safe_str_eq(a, b)   crm_str_eq(a, b, FALSE)
 
#define crm_atoi(text, default_text)   crm_parse_int(text, default_text)
 
#define crm_str_hash   g_str_hash_traditional
 

Functions

gboolean crm_str_eq (const char *a, const char *b, gboolean use_case)
 
gboolean safe_str_neq (const char *a, const char *b)
 
char * crm_itoa_stack (int an_int, char *buf, size_t len)
 
int pcmk_scan_nvpair (const char *input, char **name, char **value)
 
char * pcmk_format_nvpair (const char *name, const char *value, const char *units)
 
char * pcmk_format_named_time (const char *name, time_t epoch_time)
 
long long crm_parse_ll (const char *text, const char *default_text)
 
int crm_parse_int (const char *text, const char *default_text)
 
guint g_str_hash_traditional (gconstpointer v)
 
gboolean crm_strcase_equal (gconstpointer a, gconstpointer b)
 
guint crm_strcase_hash (gconstpointer v)
 
GHashTable * crm_str_table_dup (GHashTable *old_table)
 
char * crm_strip_trailing_newline (char *str)
 
int pcmk_numeric_strcasecmp (const char *s1, const char *s2)
 
void crm_build_path (const char *path_c, mode_t mode)
 

Detailed Description

Deprecated Pacemaker utilities.

Deprecated:
Do not include this header directly. The utilities in this header, and the header itself, will be removed in a future release.

Definition in file util_compat.h.

Macro Definition Documentation

#define crm_atoi (   text,
  default_text 
)    crm_parse_int(text, default_text)
Deprecated:
Use strtoll() instead

Definition at line 79 of file util_compat.h.

#define crm_get_interval   crm_parse_interval_spec
Deprecated:
Use crm_parse_interval_spec() instead

Definition at line 27 of file util_compat.h.

#define crm_str_hash   g_str_hash_traditional
Deprecated:
Use g_str_hash() instead

Definition at line 85 of file util_compat.h.

#define safe_str_eq (   a,
 
)    crm_str_eq(a, b, FALSE)
Deprecated:
Use strcasecmp() instead

Definition at line 57 of file util_compat.h.

Function Documentation

void crm_build_path ( const char *  path_c,
mode_t  mode 
)
Deprecated:
Do not use Pacemaker libraries for generic I/O

Definition at line 623 of file io.c.

char* crm_itoa_stack ( int  an_int,
char *  buf,
size_t  len 
)
Deprecated:
Use snprintf() instead

Definition at line 1202 of file strings.c.

int crm_parse_int ( const char *  text,
const char *  default_text 
)
Deprecated:
Use strtoll() instead

Definition at line 1252 of file strings.c.

long long crm_parse_ll ( const char *  text,
const char *  default_text 
)
Deprecated:
Use strtoll() instead

Definition at line 1235 of file strings.c.

gboolean crm_str_eq ( const char *  a,
const char *  b,
gboolean  use_case 
)
Deprecated:
Use strcmp() or strcasecmp() instead

Definition at line 1182 of file strings.c.

GHashTable* crm_str_table_dup ( GHashTable *  old_table)
Deprecated:
Do not use Pacemaker for generic hash table manipulation

Definition at line 1229 of file strings.c.

gboolean crm_strcase_equal ( gconstpointer  a,
gconstpointer  b 
)
Deprecated:
Do not use Pacemaker for generic string comparison

Definition at line 1217 of file strings.c.

guint crm_strcase_hash ( gconstpointer  v)
Deprecated:
Do not use Pacemaker for generic string manipulation

Definition at line 1223 of file strings.c.

char* crm_strip_trailing_newline ( char *  str)
Deprecated:
Don't use Pacemaker for string manipulation

Definition at line 1277 of file strings.c.

guint g_str_hash_traditional ( gconstpointer  v)
Deprecated:
Use g_str_hash() instead

Definition at line 1211 of file strings.c.

char* pcmk_format_named_time ( const char *  name,
time_t  epoch_time 
)
Deprecated:
Use a standard printf()-style function instead

Definition at line 975 of file nvpair.c.

char* pcmk_format_nvpair ( const char *  name,
const char *  value,
const char *  units 
)
Deprecated:
Use a standard printf()-style function instead

Definition at line 968 of file nvpair.c.

int pcmk_numeric_strcasecmp ( const char *  s1,
const char *  s2 
)
Deprecated:
Don't use Pacemaker for string manipulation

Definition at line 1283 of file strings.c.

int pcmk_scan_nvpair ( const char *  input,
char **  name,
char **  value 
)
Deprecated:
Use sscanf() instead

Definition at line 962 of file nvpair.c.

gboolean safe_str_neq ( const char *  a,
const char *  b 
)
Deprecated:
Use strcmp() instead

Definition at line 1167 of file strings.c.