1 /* 2 * Copyright 2004-2023 the Pacemaker project contributors 3 * 4 * The version control history for this file may have further details. 5 * 6 * This source code is licensed under the GNU Lesser General Public License 7 * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY. 8 */ 9 10 #ifndef PCMK__CRM_CLUSTER_COMPAT__H 11 # define PCMK__CRM_CLUSTER_COMPAT__H 12 13 #include <libxml/tree.h> // xmlNode 14 #include <crm/cluster.h> // crm_node_t 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 /** 21 * \file 22 * \brief Deprecated Pacemaker cluster API 23 * \ingroup cluster 24 * \deprecated Do not include this header directly. The cluster APIs in this 25 * header, and the header itself, will be removed in a future 26 * release. 27 */ 28 29 // \deprecated Use stonith_api_kick() from libstonithd instead 30 int crm_terminate_member(int nodeid, const char *uname, void *unused); 31 32 // \deprecated Use stonith_api_kick() from libstonithd instead 33 int crm_terminate_member_no_mainloop(int nodeid, const char *uname, 34 int *connection); 35 36 // \deprecated Use crm_xml_add(xml, attr, crm_peer_uuid(node)) instead 37 void set_uuid(xmlNode *xml, const char *attr, crm_node_t *node); 38 39 #ifdef __cplusplus 40 } 41 #endif 42 43 #endif // PCMK_CLUSTER_COMPAT__H