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

IPC commands for Pacemakerd. More...

#include <sys/types.h>
#include <crm/common/ipc.h>
Include dependency graph for ipc_pacemakerd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pcmk_pacemakerd_api_reply_t
 

Enumerations

enum  pcmk_pacemakerd_state {
  pcmk_pacemakerd_state_invalid = -1, pcmk_pacemakerd_state_init = 0, pcmk_pacemakerd_state_starting_daemons, pcmk_pacemakerd_state_wait_for_ping,
  pcmk_pacemakerd_state_running, pcmk_pacemakerd_state_shutting_down, pcmk_pacemakerd_state_shutdown_complete, pcmk_pacemakerd_state_max = pcmk_pacemakerd_state_shutdown_complete
}
 
enum  pcmk_pacemakerd_api_reply { pcmk_pacemakerd_reply_unknown, pcmk_pacemakerd_reply_ping }
 Possible types of pacemakerd replies. More...
 

Functions

int pcmk_pacemakerd_api_ping (pcmk_ipc_api_t *api, const char *ipc_name)
 
enum pcmk_pacemakerd_state pcmk_pacemakerd_api_daemon_state_text2enum (const char *state)
 
const char * pcmk_pacemakerd_api_daemon_state_enum2text (enum pcmk_pacemakerd_state state)
 

Detailed Description

IPC commands for Pacemakerd.

Definition in file ipc_pacemakerd.h.

Enumeration Type Documentation

Possible types of pacemakerd replies.

Enumerator
pcmk_pacemakerd_reply_unknown 
pcmk_pacemakerd_reply_ping 

Definition at line 39 of file ipc_pacemakerd.h.

Enumerator
pcmk_pacemakerd_state_invalid 
pcmk_pacemakerd_state_init 
pcmk_pacemakerd_state_starting_daemons 
pcmk_pacemakerd_state_wait_for_ping 
pcmk_pacemakerd_state_running 
pcmk_pacemakerd_state_shutting_down 
pcmk_pacemakerd_state_shutdown_complete 
pcmk_pacemakerd_state_max 

Definition at line 27 of file ipc_pacemakerd.h.

Function Documentation

const char* pcmk_pacemakerd_api_daemon_state_enum2text ( enum pcmk_pacemakerd_state  state)

Definition at line 55 of file ipc_pacemakerd.c.

enum pcmk_pacemakerd_state pcmk_pacemakerd_api_daemon_state_text2enum ( const char *  state)

Definition at line 38 of file ipc_pacemakerd.c.

int pcmk_pacemakerd_api_ping ( pcmk_ipc_api_t api,
const char *  ipc_name 
)

Definition at line 205 of file ipc_pacemakerd.c.