pacemaker  3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
lrmd_events.h
Go to the documentation of this file.
1 /*
2  * Copyright 2012-2024 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 <sys/types.h> // time_t
14 
15 #include <glib.h> // guint
16 #include <crm/common/results.h> // enum ocf_exitcode
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
36 };
37 
38 typedef struct lrmd_event_data_s {
41 
43  const char *rsc_id;
45  const char *op_type;
47  const char *user_data;
48 
50  int call_id;
51 
53  int timeout;
54 
56  guint interval_ms;
57 
60 
63 
66 
68  int op_status;
69 
71  const char *output;
72 
74  time_t t_run;
75 
77  time_t t_rcchange;
78 
80  unsigned int exec_time;
81 
83  unsigned int queue_time;
84 
87 
88  /* This is a GHashTable containing the
89  * parameters given to the operation */
90  void *params;
91 
95  const char *remote_nodename;
96 
98  const char *exit_reason;
100 
101 lrmd_event_data_t *lrmd_new_event(const char *rsc_id, const char *task,
102  guint interval_ms);
105 
106 #ifdef __cplusplus
107 }
108 #endif
109 
110 #endif // PCMK__CRM_LRMD_EVENTS__H
ocf_exitcode
Exit status codes for resource agents.
Definition: results.h:173
const char * user_data
Definition: lrmd_events.h:47
const char * rsc_id
Definition: lrmd_events.h:43
unsigned int queue_time
Definition: lrmd_events.h:83
const char * output
Definition: lrmd_events.h:71
enum ocf_exitcode rc
Definition: lrmd_events.h:65
unsigned int exec_time
Definition: lrmd_events.h:80
const char * exit_reason
Definition: lrmd_events.h:98
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:45
const char * remote_nodename
Definition: lrmd_events.h:95
enum lrmd_callback_event type
Definition: lrmd_events.h:40
void lrmd_free_event(lrmd_event_data_t *event)
Free an executor event.
Definition: lrmd_client.c:246
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:28