pacemaker
2.1.0-7c3f660
Scalable High-Availability cluster resource manager
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
lib
services
services_private.h
Go to the documentation of this file.
1
/*
2
* Copyright 2010-2011 Red Hat, Inc.
3
* Later changes copyright 2012-2021 the Pacemaker project contributors
4
*
5
* The version control history for this file may have further details.
6
*
7
* This source code is licensed under the GNU Lesser General Public License
8
* version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
9
*/
10
11
#ifndef SERVICES_PRIVATE__H
12
# define SERVICES_PRIVATE__H
13
14
# include <glib.h>
15
# include "
crm/services.h
"
16
17
#if SUPPORT_DBUS
18
# include <dbus/dbus.h>
19
#endif
20
21
#define MAX_ARGC 255
22
struct
svc_action_private_s
{
23
char
*
exec
;
24
char
*
args
[
MAX_ARGC
];
25
26
uid_t
uid
;
27
gid_t
gid
;
28
29
guint
repeat_timer
;
30
void (*
callback
) (
svc_action_t
* op);
31
void (*
fork_callback
) (
svc_action_t
* op);
32
33
int
stderr_fd
;
34
mainloop_io_t
*
stderr_gsource
;
35
36
int
stdout_fd
;
37
mainloop_io_t
*
stdout_gsource
;
38
39
int
stdin_fd
;
40
#if SUPPORT_DBUS
41
DBusPendingCall* pending;
42
unsigned
timerid;
43
#endif
44
};
45
46
G_GNUC_INTERNAL
47
GList *
services_os_get_directory_list
(
const
char
*root, gboolean files, gboolean executable);
48
49
G_GNUC_INTERNAL
50
gboolean
services_os_action_execute
(
svc_action_t
* op);
51
52
G_GNUC_INTERNAL
53
GList *
resources_os_list_ocf_providers
(
void
);
54
55
G_GNUC_INTERNAL
56
GList *
resources_os_list_ocf_agents
(
const
char
*provider);
57
58
G_GNUC_INTERNAL
59
gboolean
services__ocf_agent_exists
(
const
char
*provider,
const
char
*agent);
60
61
G_GNUC_INTERNAL
62
gboolean
cancel_recurring_action
(
svc_action_t
* op);
63
64
G_GNUC_INTERNAL
65
gboolean
recurring_action_timer
(gpointer
data
);
66
67
G_GNUC_INTERNAL
68
gboolean
operation_finalize
(
svc_action_t
* op);
69
70
G_GNUC_INTERNAL
71
void
services__handle_exec_error
(
svc_action_t
* op,
int
error);
72
73
G_GNUC_INTERNAL
74
void
services_add_inflight_op
(
svc_action_t
*op);
75
76
G_GNUC_INTERNAL
77
void
services_untrack_op
(
svc_action_t
*op);
78
79
G_GNUC_INTERNAL
80
gboolean
is_op_blocked
(
const
char
*rsc);
81
82
#if SUPPORT_DBUS
83
G_GNUC_INTERNAL
84
void
services_set_op_pending(
svc_action_t
*op, DBusPendingCall *pending);
85
#endif
86
87
#endif
/* SERVICES_PRIVATE__H */
services.h
Services API.
data
char data[0]
Definition:
cpg.c:55
services__ocf_agent_exists
gboolean services__ocf_agent_exists(const char *provider, const char *agent)
Definition:
services_linux.c:1220
svc_action_private_s::stderr_gsource
mainloop_io_t * stderr_gsource
Definition:
services_private.h:34
resources_os_list_ocf_agents
GList * resources_os_list_ocf_agents(const char *provider)
Definition:
services_linux.c:1196
resources_os_list_ocf_providers
GList * resources_os_list_ocf_providers(void)
Definition:
services_linux.c:1190
recurring_action_timer
gboolean recurring_action_timer(gpointer data)
Definition:
services_linux.c:476
mainloop_io_t
struct mainloop_io_s mainloop_io_t
Definition:
mainloop.h:32
svc_action_private_s::fork_callback
void(* fork_callback)(svc_action_t *op)
Definition:
services_private.h:31
services_os_get_directory_list
GList * services_os_get_directory_list(const char *root, gboolean files, gboolean executable)
Definition:
services_linux.c:1136
svc_action_private_s::repeat_timer
guint repeat_timer
Definition:
services_private.h:29
services_os_action_execute
gboolean services_os_action_execute(svc_action_t *op)
Definition:
services_linux.c:880
svc_action_private_s::stdin_fd
int stdin_fd
Definition:
services_private.h:39
is_op_blocked
gboolean is_op_blocked(const char *rsc)
Definition:
services.c:822
cancel_recurring_action
gboolean cancel_recurring_action(svc_action_t *op)
Definition:
services.c:565
operation_finalize
gboolean operation_finalize(svc_action_t *op)
Definition:
services_linux.c:495
svc_action_private_s::uid
uid_t uid
Definition:
services_private.h:26
svc_action_private_s::gid
gid_t gid
Definition:
services_private.h:27
svc_action_s
Definition:
services.h:119
svc_action_private_s::callback
void(* callback)(svc_action_t *op)
Definition:
services_private.h:30
MAX_ARGC
#define MAX_ARGC
Definition:
services_private.h:21
svc_action_private_s::args
char * args[MAX_ARGC]
Definition:
services_private.h:24
services_add_inflight_op
void services_add_inflight_op(svc_action_t *op)
Definition:
services.c:749
services_untrack_op
void services_untrack_op(svc_action_t *op)
Definition:
services.c:770
svc_action_private_s::exec
char * exec
Definition:
services_private.h:23
svc_action_private_s::stderr_fd
int stderr_fd
Definition:
services_private.h:33
svc_action_private_s
Definition:
services_private.h:22
services__handle_exec_error
void services__handle_exec_error(svc_action_t *op, int error)
Definition:
services_linux.c:635
svc_action_private_s::stdout_gsource
mainloop_io_t * stdout_gsource
Definition:
services_private.h:37
svc_action_private_s::stdout_fd
int stdout_fd
Definition:
services_private.h:36
Generated on Tue Jun 8 2021 12:27:47 for pacemaker by
1.8.5