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_PENGINE_PE_TYPES_COMPAT__H
11 # define PCMK__CRM_PENGINE_PE_TYPES_COMPAT__H
12
13 #include <crm/common/scheduler.h>
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 /**
20 * \file
21 * \brief Deprecated Pacemaker scheduler API
22 * \ingroup pengine
23 * \deprecated Do not include this header directly. The scheduler 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 Do not use
30 #define pe_rsc_managed (1ULL << 1)
31
32 // NOTE: sbd (as of at least 1.5.2) uses this
33 //! \deprecated Do not use
34 #define pe_flag_have_quorum (1ULL << 0)
35
36 // NOTE: sbd (as of at least 1.5.2) uses this
37 //! \deprecated Do not use
38 #define pe_flag_have_stonith_resource (1ULL << 5)
39
40 // NOTE: sbd (as of at least 1.5.2) uses this
41 //! \deprecated Use pcmk_node_t instead
42 typedef struct pcmk__scored_node node_t;
43
44 // NOTE: sbd (as of at least 1.5.2) uses this
45 //! \deprecated use pcmk_resource_t instead
46 typedef struct pcmk__resource resource_t;
47
48 // NOTE: sbd (as of at least 1.5.2) uses this
49 //! \deprecated Use pcmk_scheduler_t instead
50 typedef struct pcmk__scheduler pe_working_set_t;
51
52 #ifdef __cplusplus
53 }
54 #endif
55
56 #endif // PCMK__CRM_PENGINE_PE_TYPES_COMPAT__H