pacemaker  2.0.5-ba59be712
Scalable High-Availability cluster resource manager
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

◆ pcmk_pacemakerd_api_reply

Possible types of pacemakerd replies.

Enumerator
pcmk_pacemakerd_reply_unknown 
pcmk_pacemakerd_reply_ping 

Definition at line 39 of file ipc_pacemakerd.h.

◆ pcmk_pacemakerd_state

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

◆ pcmk_pacemakerd_api_daemon_state_enum2text()

const char* pcmk_pacemakerd_api_daemon_state_enum2text ( enum pcmk_pacemakerd_state  state)

Definition at line 55 of file ipc_pacemakerd.c.

◆ pcmk_pacemakerd_api_daemon_state_text2enum()

enum pcmk_pacemakerd_state pcmk_pacemakerd_api_daemon_state_text2enum ( const char *  state)

Definition at line 38 of file ipc_pacemakerd.c.

◆ pcmk_pacemakerd_api_ping()

int pcmk_pacemakerd_api_ping ( pcmk_ipc_api_t api,
const char *  ipc_name 
)

Definition at line 205 of file ipc_pacemakerd.c.