pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
Data Structures | Typedefs | Enumerations | Functions
lrmd_events.h File Reference

Resource agent executor events. More...

#include <glib.h>
#include <crm/common/results.h>
Include dependency graph for lrmd_events.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  lrmd_event_data_s
 

Typedefs

typedef struct lrmd_event_data_s lrmd_event_data_t
 

Enumerations

enum  lrmd_callback_event {
  lrmd_event_register, lrmd_event_unregister, lrmd_event_exec_complete, lrmd_event_disconnect,
  lrmd_event_connect, lrmd_event_poke, lrmd_event_new_client
}
 

Functions

lrmd_event_data_tlrmd_new_event (const char *rsc_id, const char *task, guint interval_ms)
 Create a new lrmd_event_data_t object. More...
 
lrmd_event_data_tlrmd_copy_event (lrmd_event_data_t *event)
 
void lrmd_free_event (lrmd_event_data_t *event)
 Free an executor event. More...
 

Detailed Description

Resource agent executor events.

Definition in file lrmd_events.h.

Typedef Documentation

◆ lrmd_event_data_t

Enumeration Type Documentation

◆ lrmd_callback_event

Enumerator
lrmd_event_register 
lrmd_event_unregister 
lrmd_event_exec_complete 
lrmd_event_disconnect 
lrmd_event_connect 
lrmd_event_poke 
lrmd_event_new_client 

Definition at line 26 of file lrmd_events.h.

Function Documentation

◆ lrmd_copy_event()

lrmd_event_data_t* lrmd_copy_event ( lrmd_event_data_t event)

Definition at line 213 of file lrmd_client.c.

◆ lrmd_free_event()

void lrmd_free_event ( lrmd_event_data_t event)

Free an executor event.

Parameters
[in,out]Executorevent object to free

Definition at line 252 of file lrmd_client.c.

◆ lrmd_new_event()

lrmd_event_data_t* lrmd_new_event ( const char *  rsc_id,
const char *  task,
guint  interval_ms 
)

Create a new lrmd_event_data_t object.

Parameters
[in]rsc_idID of resource involved in event
[in]taskAction name
[in]interval_msAction interval
Returns
Newly allocated and initialized lrmd_event_data_t
Note
This functions asserts on memory errors, so the return value is guaranteed to be non-NULL. The caller is responsible for freeing the result with lrmd_free_event().

Definition at line 201 of file lrmd_client.c.