pacemaker
2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
include
crm
lrmd_events.h
Go to the documentation of this file.
1
/*
2
* Copyright 2012-2023 the Pacemaker project contributors
3
*
4
* The version control history for this file may have further details.
5
*
6
* This source code is licensed under the GNU Lesser General Public License
7
* version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8
*/
9
10
#ifndef PCMK__CRM_LRMD_EVENTS__H
11
# define PCMK__CRM_LRMD_EVENTS__H
12
13
#include <glib.h>
// guint
14
#include <
crm/common/results.h
>
// enum ocf_exitcode
15
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif
19
26
enum
lrmd_callback_event
{
27
lrmd_event_register
,
28
lrmd_event_unregister
,
29
lrmd_event_exec_complete
,
30
lrmd_event_disconnect
,
31
lrmd_event_connect
,
32
lrmd_event_poke
,
33
lrmd_event_new_client
,
34
};
35
36
typedef
struct
lrmd_event_data_s
{
38
enum
lrmd_callback_event
type
;
39
41
const
char
*
rsc_id
;
43
const
char
*
op_type
;
45
const
char
*
user_data
;
46
48
int
call_id
;
49
51
int
timeout
;
52
54
guint
interval_ms
;
55
57
int
start_delay
;
58
60
int
rsc_deleted
;
61
63
enum
ocf_exitcode
rc
;
64
66
int
op_status
;
67
69
const
char
*
output
;
70
72
unsigned
int
t_run
;
73
75
unsigned
int
t_rcchange
;
76
78
unsigned
int
exec_time
;
79
81
unsigned
int
queue_time
;
82
84
int
connection_rc
;
85
86
/* This is a GHashTable containing the
87
* parameters given to the operation */
88
void
*
params
;
89
93
const
char
*
remote_nodename
;
94
96
const
char
*
exit_reason
;
97
}
lrmd_event_data_t
;
98
99
lrmd_event_data_t
*
lrmd_new_event
(
const
char
*rsc_id,
const
char
*task,
100
guint interval_ms);
101
lrmd_event_data_t
*
lrmd_copy_event
(
lrmd_event_data_t
*event);
102
void
lrmd_free_event
(
lrmd_event_data_t
*event);
103
104
#ifdef __cplusplus
105
}
106
#endif
107
108
#endif // PCMK__CRM_LRMD_EVENTS__H
lrmd_event_data_s::call_id
int call_id
Definition:
lrmd_events.h:48
lrmd_event_unregister
Definition:
lrmd_events.h:28
ocf_exitcode
ocf_exitcode
Exit status codes for resource agents.
Definition:
results.h:169
lrmd_event_data_s::user_data
const char * user_data
Definition:
lrmd_events.h:45
lrmd_event_data_s::rsc_id
const char * rsc_id
Definition:
lrmd_events.h:41
lrmd_event_data_s::queue_time
unsigned int queue_time
Definition:
lrmd_events.h:81
lrmd_event_data_s::timeout
int timeout
Definition:
lrmd_events.h:51
lrmd_event_data_s::t_rcchange
unsigned int t_rcchange
Definition:
lrmd_events.h:75
lrmd_event_data_s::output
const char * output
Definition:
lrmd_events.h:69
lrmd_event_connect
Definition:
lrmd_events.h:31
lrmd_event_data_s::rc
enum ocf_exitcode rc
Definition:
lrmd_events.h:63
lrmd_event_new_client
Definition:
lrmd_events.h:33
lrmd_event_data_s::connection_rc
int connection_rc
Definition:
lrmd_events.h:84
lrmd_event_data_s::exec_time
unsigned int exec_time
Definition:
lrmd_events.h:78
lrmd_event_data_s::params
void * params
Definition:
lrmd_events.h:88
lrmd_event_data_s::exit_reason
const char * exit_reason
Definition:
lrmd_events.h:96
lrmd_copy_event
lrmd_event_data_t * lrmd_copy_event(lrmd_event_data_t *event)
Definition:
lrmd_client.c:207
lrmd_event_poke
Definition:
lrmd_events.h:32
lrmd_event_exec_complete
Definition:
lrmd_events.h:29
lrmd_event_data_s::rsc_deleted
int rsc_deleted
Definition:
lrmd_events.h:60
lrmd_event_data_s
Definition:
lrmd_events.h:36
lrmd_event_data_s::start_delay
int start_delay
Definition:
lrmd_events.h:57
lrmd_event_data_t
struct lrmd_event_data_s lrmd_event_data_t
results.h
Function and executable result codes.
lrmd_event_data_s::op_type
const char * op_type
Definition:
lrmd_events.h:43
lrmd_event_data_s::t_run
unsigned int t_run
Definition:
lrmd_events.h:72
lrmd_event_disconnect
Definition:
lrmd_events.h:30
lrmd_event_data_s::remote_nodename
const char * remote_nodename
Definition:
lrmd_events.h:93
lrmd_event_data_s::type
enum lrmd_callback_event type
Definition:
lrmd_events.h:38
lrmd_free_event
void lrmd_free_event(lrmd_event_data_t *event)
Free an executor event.
Definition:
lrmd_client.c:243
lrmd_event_data_s::op_status
int op_status
Definition:
lrmd_events.h:66
lrmd_event_register
Definition:
lrmd_events.h:27
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.
Definition:
lrmd_client.c:195
lrmd_callback_event
lrmd_callback_event
Definition:
lrmd_events.h:26
lrmd_event_data_s::interval_ms
guint interval_ms
Definition:
lrmd_events.h:54
Generated on Tue Dec 19 2023 17:32:56 for pacemaker by
1.8.14