pacemaker  1.1.17-b36b869ca8
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 SERVICES_PRIVATE__H
20 # define SERVICES_PRIVATE__H
21 
22 # include <glib.h>
23 # include "crm/services.h"
24 
25 #if SUPPORT_DBUS
26 # include <dbus/dbus.h>
27 #endif
28 
29 #define MAX_ARGC 255
31  char *exec;
32  char *args[MAX_ARGC];
33 
34  guint repeat_timer;
35  void (*callback) (svc_action_t * op);
36 
37  int stderr_fd;
39 
40  int stdout_fd;
42 #if SUPPORT_DBUS
43  DBusPendingCall* pending;
44  unsigned timerid;
45 #endif
46 };
47 
48 G_GNUC_INTERNAL
49 GList *services_os_get_directory_list(const char *root, gboolean files, gboolean executable);
50 
51 G_GNUC_INTERNAL
53 
54 G_GNUC_INTERNAL
55 GList *resources_os_list_lsb_agents(void);
56 
57 G_GNUC_INTERNAL
59 
60 G_GNUC_INTERNAL
61 GList *resources_os_list_ocf_agents(const char *provider);
62 
63 G_GNUC_INTERNAL
65 
66 G_GNUC_INTERNAL
68 
69 G_GNUC_INTERNAL
70 gboolean recurring_action_timer(gpointer data);
71 
72 G_GNUC_INTERNAL
73 gboolean operation_finalize(svc_action_t * op);
74 
75 G_GNUC_INTERNAL
77 
78 G_GNUC_INTERNAL
80 
81 G_GNUC_INTERNAL
82 gboolean is_op_blocked(const char *rsc);
83 
84 #if SUPPORT_DBUS
85 G_GNUC_INTERNAL
86 void services_set_op_pending(svc_action_t *op, DBusPendingCall *pending);
87 #endif
88 
89 #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:35
G_GNUC_INTERNAL GList * resources_os_list_nagios_agents(void)
G_GNUC_INTERNAL gboolean cancel_recurring_action(svc_action_t *op)
Definition: services.c:495
G_GNUC_INTERNAL GList * resources_os_list_ocf_providers(void)
G_GNUC_INTERNAL gboolean recurring_action_timer(gpointer data)
G_GNUC_INTERNAL GList * resources_os_list_lsb_agents(void)
#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:736
mainloop_io_t * stdout_gsource
char data[0]
Definition: internal.h:58
G_GNUC_INTERNAL void services_add_inflight_op(svc_action_t *op)
Definition: services.c:675
G_GNUC_INTERNAL void services_untrack_op(svc_action_t *op)
Definition: services.c:696