pacemaker  2.1.4-dc6eb4362
Scalable High-Availability cluster resource manager
Macros | Functions
native.c File Reference
#include <crm_internal.h>
#include <stdint.h>
#include <crm/common/output.h>
#include <crm/pengine/rules.h>
#include <crm/pengine/status.h>
#include <crm/pengine/complex.h>
#include <crm/pengine/internal.h>
#include <crm/msg_xml.h>
#include <pe_status_private.h>
#include "./variant.h"
Include dependency graph for native.c:

Go to the source code of this file.

Macros

#define VARIANT_NATIVE   1
 
#define PROVIDER_SEP   ":"
 

Functions

void native_add_running (pe_resource_t *rsc, pe_node_t *node, pe_working_set_t *data_set, gboolean failed)
 
gboolean native_unpack (pe_resource_t *rsc, pe_working_set_t *data_set)
 
pe_resource_tnative_find_rsc (pe_resource_t *rsc, const char *id, const pe_node_t *on_node, int flags)
 
char * native_parameter (pe_resource_t *rsc, pe_node_t *node, gboolean create, const char *name, pe_working_set_t *data_set)
 
gboolean native_active (pe_resource_t *rsc, gboolean all)
 
gchar * pcmk__native_output_string (pe_resource_t *rsc, const char *name, pe_node_t *node, uint32_t show_opts, const char *target_role, bool show_nodes)
 
int pe__common_output_html (pcmk__output_t *out, pe_resource_t *rsc, const char *name, pe_node_t *node, uint32_t show_opts)
 
int pe__common_output_text (pcmk__output_t *out, pe_resource_t *rsc, const char *name, pe_node_t *node, uint32_t show_opts)
 
void common_print (pe_resource_t *rsc, const char *pre_text, const char *name, pe_node_t *node, long options, void *print_data)
 
void native_print (pe_resource_t *rsc, const char *pre_text, long options, void *print_data)
 
int pe__resource_xml (pcmk__output_t *out, va_list args)
 
int pe__resource_html (pcmk__output_t *out, va_list args)
 
int pe__resource_text (pcmk__output_t *out, va_list args)
 
void native_free (pe_resource_t *rsc)
 
enum rsc_role_e native_resource_state (const pe_resource_t *rsc, gboolean current)
 
pe_node_tnative_location (const pe_resource_t *rsc, GList **list, int current)
 
void print_rscs_brief (GList *rsc_list, const char *pre_text, long options, void *print_data, gboolean print_all)
 
int pe__rscs_brief_output (pcmk__output_t *out, GList *rsc_list, uint32_t show_opts)
 
gboolean pe__native_is_filtered (pe_resource_t *rsc, GList *only_rsc, gboolean check_parent)
 

Macro Definition Documentation

◆ PROVIDER_SEP

#define PROVIDER_SEP   ":"

Definition at line 28 of file native.c.

◆ VARIANT_NATIVE

#define VARIANT_NATIVE   1

Definition at line 22 of file native.c.

Function Documentation

◆ common_print()

void common_print ( pe_resource_t rsc,
const char *  pre_text,
const char *  name,
pe_node_t node,
long  options,
void *  print_data 
)

Definition at line 773 of file native.c.

◆ native_active()

gboolean native_active ( pe_resource_t rsc,
gboolean  all 
)

Definition at line 346 of file native.c.

◆ native_add_running()

void native_add_running ( pe_resource_t rsc,
pe_node_t node,
pe_working_set_t data_set,
gboolean  failed 
)

Definition at line 92 of file native.c.

◆ native_find_rsc()

pe_resource_t* native_find_rsc ( pe_resource_t rsc,
const char *  id,
const pe_node_t on_node,
int  flags 
)

Definition at line 270 of file native.c.

◆ native_free()

void native_free ( pe_resource_t rsc)

Definition at line 1028 of file native.c.

◆ native_location()

pe_node_t* native_location ( const pe_resource_t rsc,
GList **  list,
int  current 
)

Definition at line 1058 of file native.c.

◆ native_parameter()

char* native_parameter ( pe_resource_t rsc,
pe_node_t node,
gboolean  create,
const char *  name,
pe_working_set_t data_set 
)

Definition at line 324 of file native.c.

◆ native_print()

void native_print ( pe_resource_t rsc,
const char *  pre_text,
long  options,
void *  print_data 
)

Definition at line 888 of file native.c.

◆ native_resource_state()

enum rsc_role_e native_resource_state ( const pe_resource_t rsc,
gboolean  current 
)

Definition at line 1035 of file native.c.

◆ native_unpack()

gboolean native_unpack ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 200 of file native.c.

◆ pcmk__native_output_string()

gchar* pcmk__native_output_string ( pe_resource_t rsc,
const char *  name,
pe_node_t node,
uint32_t  show_opts,
const char *  target_role,
bool  show_nodes 
)

Definition at line 543 of file native.c.

◆ pe__common_output_html()

int pe__common_output_html ( pcmk__output_t out,
pe_resource_t rsc,
const char *  name,
pe_node_t node,
uint32_t  show_opts 
)

Definition at line 686 of file native.c.

◆ pe__common_output_text()

int pe__common_output_text ( pcmk__output_t out,
pe_resource_t rsc,
const char *  name,
pe_node_t node,
uint32_t  show_opts 
)

Definition at line 742 of file native.c.

◆ pe__native_is_filtered()

gboolean pe__native_is_filtered ( pe_resource_t rsc,
GList *  only_rsc,
gboolean  check_parent 
)

Definition at line 1362 of file native.c.

◆ pe__resource_html()

int pe__resource_html ( pcmk__output_t out,
va_list  args 
)

Definition at line 981 of file native.c.

◆ pe__resource_text()

int pe__resource_text ( pcmk__output_t out,
va_list  args 
)

Definition at line 1005 of file native.c.

◆ pe__resource_xml()

int pe__resource_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 910 of file native.c.

◆ pe__rscs_brief_output()

int pe__rscs_brief_output ( pcmk__output_t out,
GList *  rsc_list,
uint32_t  show_opts 
)

Definition at line 1269 of file native.c.

◆ print_rscs_brief()

void print_rscs_brief ( GList *  rsc_list,
const char *  pre_text,
long  options,
void *  print_data,
gboolean  print_all 
)

Definition at line 1190 of file native.c.