pacemaker  2.0.2-debe490
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
attrd.h
Go to the documentation of this file.
1 /*
2  * Copyright 2004-2018 the Pacemaker project contributors
3  *
4  * The version control history for this file may have further details.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This software is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 #ifndef CRM_ATTRD__H
21 # define CRM_ATTRD__H
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 # include <crm/common/ipc.h>
28 
29 /* attribute options for clients to use with these functions */
30 #define attrd_opt_none 0x000
31 #define attrd_opt_remote 0x001
32 #define attrd_opt_private 0x002
33 
34 const char *attrd_get_target(const char *name);
35 
36 int attrd_update_delegate(crm_ipc_t * ipc, char command, const char *host,
37  const char *name, const char *value, const char *section,
38  const char *set, const char *dampen, const char *user_name, int options);
39 int attrd_clear_delegate(crm_ipc_t *ipc, const char *host, const char *resource,
40  const char *operation, const char *interval_spec,
41  const char *user_name, int options);
42 
43 #ifdef __cplusplus
44 }
45 #endif
46 
47 #endif
AIS_Host host
Definition: internal.h:86
const char * attrd_get_target(const char *name)
Definition: attrd_client.c:273
struct crm_ipc_s crm_ipc_t
Definition: ipc.h:58
int attrd_update_delegate(crm_ipc_t *ipc, char command, const char *host, const char *name, const char *value, const char *section, const char *set, const char *dampen, const char *user_name, int options)
Send a request to pacemaker-attrd.
Definition: attrd_client.c:135
int attrd_clear_delegate(crm_ipc_t *ipc, const char *host, const char *resource, const char *operation, const char *interval_spec, const char *user_name, int options)
Send a request to pacemaker-attrd to clear resource failure.
Definition: attrd_client.c:238
Wrappers for and extensions to libqb IPC.