1 /* 2 * Copyright 2004-2024 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 <crm/cluster.h> // pcmk_cluster_t, enum pcmk_cluster_layer 14 15 #ifdef __cplusplus 16 extern "C" { 17 #endif 18 19 /** 20 * \file 21 * \brief Deprecated Pacemaker cluster API 22 * \ingroup cluster 23 * \deprecated Do not include this header directly. The cluster APIs in this 24 * header, and the header itself, will be removed in a future 25 * release. 26 */ 27 28 // NOTE: sbd (as of at least 1.5.2) uses this 29 //! \deprecated Use \c pcmk_cluster_t instead 30 typedef struct pcmk__cluster crm_cluster_t; 31 32 // NOTE: sbd (as of at least 1.5.2) uses this 33 //! \deprecated Use \c pcmk_cluster_connect() instead 34 gboolean crm_cluster_connect(pcmk_cluster_t *cluster); 35 36 // NOTE: sbd (as of at least 1.5.2) uses this enum 37 //!@{ 38 //! \deprecated Use <tt>enum pcmk_cluster_layer</tt> instead 39 enum cluster_type_e { 40 // NOTE: sbd (as of at least 1.5.2) uses this value 41 pcmk_cluster_unknown = pcmk_cluster_layer_unknown, 42 43 pcmk_cluster_invalid = pcmk_cluster_layer_invalid, 44 45 // NOTE: sbd (as of at least 1.5.2) uses this value 46 pcmk_cluster_corosync = pcmk_cluster_layer_corosync, 47 }; 48 //!@} 49 50 // NOTE: sbd (as of at least 1.5.2) uses this 51 //! \deprecated Use \c pcmk_cluster_layer_text() instead 52 const char *name_for_cluster_type(enum cluster_type_e type); 53 54 // NOTE: sbd (as of at least 1.5.2) uses this 55 //! \deprecated Use \c pcmk_get_cluster_layer() instead 56 enum cluster_type_e get_cluster_type(void); 57 58 // NOTE: sbd (as of at least 1.5.2) uses this 59 //! \deprecated Do not use 60 void crm_peer_init(void); 61 62 #ifdef __cplusplus 63 } 64 #endif 65 66 #endif // PCMK_CLUSTER_COMPAT__H