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
native.c File Reference
#include <crm_internal.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, long options, 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, long options)
 
int pe__common_output_text (pcmk__output_t *out, pe_resource_t *rsc, const char *name, pe_node_t *node, long options)
 
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, long options, gboolean print_all)
 
gboolean pe__native_is_filtered (pe_resource_t *rsc, GList *only_rsc, gboolean check_parent)
 

Macro Definition Documentation

#define PROVIDER_SEP   ":"

Definition at line 25 of file native.c.

#define VARIANT_NATIVE   1

Definition at line 19 of file native.c.

Function Documentation

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 763 of file native.c.

gboolean native_active ( pe_resource_t rsc,
gboolean  all 
)

Definition at line 347 of file native.c.

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

Definition at line 89 of file native.c.

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

Definition at line 267 of file native.c.

void native_free ( pe_resource_t rsc)

Definition at line 1022 of file native.c.

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

Definition at line 1052 of file native.c.

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 323 of file native.c.

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

Definition at line 878 of file native.c.

enum rsc_role_e native_resource_state ( const pe_resource_t rsc,
gboolean  current 
)

Definition at line 1029 of file native.c.

gboolean native_unpack ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 197 of file native.c.

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

Definition at line 544 of file native.c.

int pe__common_output_html ( pcmk__output_t out,
pe_resource_t rsc,
const char *  name,
pe_node_t node,
long  options 
)

Definition at line 676 of file native.c.

int pe__common_output_text ( pcmk__output_t out,
pe_resource_t rsc,
const char *  name,
pe_node_t node,
long  options 
)

Definition at line 732 of file native.c.

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

Definition at line 1339 of file native.c.

int pe__resource_html ( pcmk__output_t out,
va_list  args 
)

Definition at line 975 of file native.c.

int pe__resource_text ( pcmk__output_t out,
va_list  args 
)

Definition at line 999 of file native.c.

int pe__resource_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 900 of file native.c.

int pe__rscs_brief_output ( pcmk__output_t out,
GList *  rsc_list,
long  options,
gboolean  print_all 
)

Definition at line 1262 of file native.c.

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

Definition at line 1183 of file native.c.