pacemaker
1.1.14-70404b0
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 (C) 2010 - 2011, Red Hat, Inc.
3
*
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public
6
* License as published by the Free Software Foundation; either
7
* version 2.1 of the License, or (at your option) any later version.
8
*
9
* This software is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public
15
* License along with this library; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*/
18
19
#ifndef __MH_SERVICES_PRIVATE_H__
20
# define __MH_SERVICES_PRIVATE_H__
21
22
#if SUPPORT_DBUS
23
# include <dbus/dbus.h>
24
#endif
25
26
#define MAX_ARGC 255
27
struct
svc_action_private_s
{
28
char
*
exec
;
29
char
*
args
[
MAX_ARGC
];
30
31
guint
repeat_timer
;
32
void (*
callback
) (
svc_action_t
* op);
33
34
int
stderr_fd
;
35
mainloop_io_t
*
stderr_gsource
;
36
37
int
stdout_fd
;
38
mainloop_io_t
*
stdout_gsource
;
39
#if SUPPORT_DBUS
40
DBusPendingCall* pending;
41
unsigned
timerid;
42
#endif
43
};
44
45
GList *
services_os_get_directory_list
(
const
char
*root, gboolean files, gboolean executable);
46
47
gboolean
services_os_action_execute
(
svc_action_t
* op, gboolean synchronous);
48
49
GList *
resources_os_list_lsb_agents
(
void
);
50
51
GList *
resources_os_list_ocf_providers
(
void
);
52
53
GList *
resources_os_list_ocf_agents
(
const
char
*provider);
54
55
GList *
resources_os_list_nagios_agents
(
void
);
56
57
gboolean
cancel_recurring_action
(
svc_action_t
* op);
58
59
gboolean
recurring_action_timer
(gpointer
data
);
60
gboolean
operation_finalize
(
svc_action_t
* op);
61
62
void
services_add_inflight_op
(
svc_action_t
*op);
63
64
void
handle_blocked_ops
(
void
);
65
66
gboolean
is_op_blocked
(
const
char
*rsc);
67
68
#if SUPPORT_DBUS
69
void
services_set_op_pending(
svc_action_t
*op, DBusPendingCall *pending);
70
#endif
71
72
#endif
/* __MH_SERVICES_PRIVATE_H__ */
is_op_blocked
gboolean is_op_blocked(const char *rsc)
Definition:
services.c:646
services_add_inflight_op
void services_add_inflight_op(svc_action_t *op)
Definition:
services.c:603
services_os_get_directory_list
GList * services_os_get_directory_list(const char *root, gboolean files, gboolean executable)
Definition:
services_linux.c:714
svc_action_private_s::stderr_gsource
mainloop_io_t * stderr_gsource
Definition:
services_private.h:35
mainloop_io_t
struct mainloop_io_s mainloop_io_t
Definition:
mainloop.h:35
svc_action_private_s::repeat_timer
guint repeat_timer
Definition:
services_private.h:31
resources_os_list_ocf_agents
GList * resources_os_list_ocf_agents(const char *provider)
Definition:
services_linux.c:781
operation_finalize
gboolean operation_finalize(svc_action_t *op)
Definition:
services_linux.c:241
recurring_action_timer
gboolean recurring_action_timer(gpointer data)
Definition:
services_linux.c:222
svc_action_s
Definition:
services.h:151
svc_action_private_s::callback
void(* callback)(svc_action_t *op)
Definition:
services_private.h:32
cancel_recurring_action
gboolean cancel_recurring_action(svc_action_t *op)
Definition:
services.c:459
MAX_ARGC
#define MAX_ARGC
Definition:
services_private.h:26
handle_blocked_ops
void handle_blocked_ops(void)
Definition:
services.c:662
svc_action_private_s::args
char * args[MAX_ARGC]
Definition:
services_private.h:29
svc_action_private_s::exec
char * exec
Definition:
services_private.h:28
resources_os_list_nagios_agents
GList * resources_os_list_nagios_agents(void)
svc_action_private_s::stderr_fd
int stderr_fd
Definition:
services_private.h:34
svc_action_private_s
Definition:
services_private.h:27
services_os_action_execute
gboolean services_os_action_execute(svc_action_t *op, gboolean synchronous)
Definition:
services_linux.c:595
svc_action_private_s::stdout_gsource
mainloop_io_t * stdout_gsource
Definition:
services_private.h:38
data
char data[0]
Definition:
internal.h:58
resources_os_list_lsb_agents
GList * resources_os_list_lsb_agents(void)
Definition:
services_linux.c:769
svc_action_private_s::stdout_fd
int stdout_fd
Definition:
services_private.h:37
resources_os_list_ocf_providers
GList * resources_os_list_ocf_providers(void)
Definition:
services_linux.c:775
Generated on Tue Jan 10 2017 11:23:55 for pacemaker by
1.8.6