1 /* 2 * Copyright 2004-2022 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_CRM_COMPAT__H 11 # define PCMK__CRM_CRM_COMPAT__H 12 13 #include <glib.h> 14 15 #ifdef __cplusplus 16 extern "C" { 17 #endif 18 19 /** 20 * \file 21 * \brief Deprecated Pacemaker utilities 22 * \ingroup core 23 * \deprecated Do not include this header directly. The utilities in this 24 * header, and the header itself, will be removed in a future 25 * release. 26 */ 27 28 //! \deprecated Use '\0' instead 29 #define EOS '\0' 30 31 //! \deprecated This defined constant will be removed in a future release 32 #define MAX_IPC_DELAY 120 33 34 //! \deprecated This defined constant will be removed in a future release 35 #define CRM_OP_LRM_QUERY "lrm_query" 36 37 //! \deprecated This defined constant will be removed in a future release 38 #define CRM_ATTR_RA_VERSION "#ra-version" 39 40 //!@{ 41 //! \deprecated This macro will be removed in a future release 42 43 # ifndef __GNUC__ 44 # define __builtin_expect(expr, result) (expr) 45 # endif 46 47 #define __likely(expr) __builtin_expect(expr, 1) 48 49 #define __unlikely(expr) __builtin_expect(expr, 0) 50 51 // This ends the doxygen deprecation comment 52 //!@} 53 54 //! \deprecated Use GList * instead 55 typedef GList *GListPtr; 56 57 #ifdef __cplusplus 58 } 59 #endif 60 61 #endif // PCMK__CRM_CRM_COMPAT__H