pacemaker  1.1.15-e174ec8
Scalable High-Availability cluster resource manager
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 Lesser 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 Lesser 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
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;
36 
37  int stdout_fd;
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 
52 
53 GList *resources_os_list_ocf_agents(const char *provider);
54 
56 
58 
59 gboolean recurring_action_timer(gpointer data);
60 gboolean operation_finalize(svc_action_t * op);
61 
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__ */
gboolean is_op_blocked(const char *rsc)
Definition: services.c:646
void(* callback)(svc_action_t *op)
void services_add_inflight_op(svc_action_t *op)
Definition: services.c:603
GList * services_os_get_directory_list(const char *root, gboolean files, gboolean executable)
mainloop_io_t * stderr_gsource
struct mainloop_io_s mainloop_io_t
Definition: mainloop.h:35
GList * resources_os_list_ocf_agents(const char *provider)
gboolean operation_finalize(svc_action_t *op)
gboolean recurring_action_timer(gpointer data)
gboolean cancel_recurring_action(svc_action_t *op)
Definition: services.c:459
#define MAX_ARGC
void handle_blocked_ops(void)
Definition: services.c:662
char * args[MAX_ARGC]
GList * resources_os_list_nagios_agents(void)
gboolean services_os_action_execute(svc_action_t *op, gboolean synchronous)
mainloop_io_t * stdout_gsource
char data[0]
Definition: internal.h:58
GList * resources_os_list_lsb_agents(void)
GList * resources_os_list_ocf_providers(void)