pacemaker  2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
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 
34 };
35 
36 typedef struct lrmd_event_data_s {
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 
58 
61 
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 
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;
98 
99 lrmd_event_data_t *lrmd_new_event(const char *rsc_id, const char *task,
100  guint interval_ms);
103 
104 #ifdef __cplusplus
105 }
106 #endif
107 
108 #endif // PCMK__CRM_LRMD_EVENTS__H
ocf_exitcode
Exit status codes for resource agents.
Definition: results.h:169
const char * user_data
Definition: lrmd_events.h:45
const char * rsc_id
Definition: lrmd_events.h:41
unsigned int queue_time
Definition: lrmd_events.h:81
unsigned int t_rcchange
Definition: lrmd_events.h:75
const char * output
Definition: lrmd_events.h:69
enum ocf_exitcode rc
Definition: lrmd_events.h:63
unsigned int exec_time
Definition: lrmd_events.h:78
const char * exit_reason
Definition: lrmd_events.h:96
lrmd_event_data_t * lrmd_copy_event(lrmd_event_data_t *event)
Definition: lrmd_client.c:207
struct lrmd_event_data_s lrmd_event_data_t
Function and executable result codes.
const char * op_type
Definition: lrmd_events.h:43
unsigned int t_run
Definition: lrmd_events.h:72
const char * remote_nodename
Definition: lrmd_events.h:93
enum lrmd_callback_event type
Definition: lrmd_events.h:38
void lrmd_free_event(lrmd_event_data_t *event)
Free an executor event.
Definition: lrmd_client.c:243
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
Definition: lrmd_events.h:26