pacemaker  2.0.5-ba59be712
Scalable High-Availability cluster resource manager
services_private.h
Go to the documentation of this file.
1 /*
2  * Copyright 2010-2018 Red Hat, Inc.
3  *
4  * This source code is licensed under the GNU Lesser General Public License
5  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
6  */
7 
8 #ifndef SERVICES_PRIVATE__H
9 # define SERVICES_PRIVATE__H
10 
11 # include <glib.h>
12 # include "crm/services.h"
13 
14 #if SUPPORT_DBUS
15 # include <dbus/dbus.h>
16 #endif
17 
18 #define MAX_ARGC 255
20  char *exec;
21  char *args[MAX_ARGC];
22 
23  uid_t uid;
24  gid_t gid;
25 
26  guint repeat_timer;
27  void (*callback) (svc_action_t * op);
28  void (*fork_callback) (svc_action_t * op);
29 
30  int stderr_fd;
32 
33  int stdout_fd;
35 
36  int stdin_fd;
37 #if SUPPORT_DBUS
38  DBusPendingCall* pending;
39  unsigned timerid;
40 #endif
41 };
42 
43 G_GNUC_INTERNAL
44 GList *services_os_get_directory_list(const char *root, gboolean files, gboolean executable);
45 
46 G_GNUC_INTERNAL
48 
49 G_GNUC_INTERNAL
51 
52 G_GNUC_INTERNAL
53 GList *resources_os_list_ocf_agents(const char *provider);
54 
55 G_GNUC_INTERNAL
56 gboolean services__ocf_agent_exists(const char *provider, const char *agent);
57 
58 G_GNUC_INTERNAL
60 
61 G_GNUC_INTERNAL
62 gboolean recurring_action_timer(gpointer data);
63 
64 G_GNUC_INTERNAL
65 gboolean operation_finalize(svc_action_t * op);
66 
67 G_GNUC_INTERNAL
69 
70 G_GNUC_INTERNAL
72 
73 G_GNUC_INTERNAL
74 gboolean is_op_blocked(const char *rsc);
75 
76 #if SUPPORT_DBUS
77 G_GNUC_INTERNAL
78 void services_set_op_pending(svc_action_t *op, DBusPendingCall *pending);
79 #endif
80 
81 #endif /* SERVICES_PRIVATE__H */
Services API.
void(* callback)(svc_action_t *op)
mainloop_io_t * stderr_gsource
G_GNUC_INTERNAL gboolean services_os_action_execute(svc_action_t *op)
G_GNUC_INTERNAL GList * services_os_get_directory_list(const char *root, gboolean files, gboolean executable)
G_GNUC_INTERNAL gboolean operation_finalize(svc_action_t *op)
struct mainloop_io_s mainloop_io_t
Definition: mainloop.h:32
G_GNUC_INTERNAL gboolean cancel_recurring_action(svc_action_t *op)
Definition: services.c:524
G_GNUC_INTERNAL GList * resources_os_list_ocf_providers(void)
G_GNUC_INTERNAL gboolean recurring_action_timer(gpointer data)
#define MAX_ARGC
char * args[MAX_ARGC]
G_GNUC_INTERNAL GList * resources_os_list_ocf_agents(const char *provider)
G_GNUC_INTERNAL gboolean is_op_blocked(const char *rsc)
Definition: services.c:781
G_GNUC_INTERNAL gboolean services__ocf_agent_exists(const char *provider, const char *agent)
mainloop_io_t * stdout_gsource
char data[0]
Definition: internal.h:90
G_GNUC_INTERNAL void services_add_inflight_op(svc_action_t *op)
Definition: services.c:708
G_GNUC_INTERNAL void services_untrack_op(svc_action_t *op)
Definition: services.c:729
void(* fork_callback)(svc_action_t *op)