root/lib/cluster/crmcluster_private.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * Copyright 2020-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__CRMCLUSTER_PRIVATE__H
  11 #  define PCMK__CRMCLUSTER_PRIVATE__H
  12 
  13 /* This header is for the sole use of libcrmcluster, so that functions can be
  14  * declared with G_GNUC_INTERNAL for efficiency.
  15  */
  16 
  17 #include <stdint.h>                // uint32_t, uint64_t
  18 
  19 #include <glib.h>                  // G_GNUC_INTERNAL, gboolean
  20 #include <libxml/tree.h>           // xmlNode
  21 
  22 #if SUPPORT_COROSYNC
  23 #include <corosync/cpg.h>          // cpg_handle_t
  24 #endif  // SUPPORT_COROSYNC
  25 
  26 #include <crm/cluster.h>           // crm_node_t
  27 
  28 G_GNUC_INTERNAL
  29 bool pcmk__corosync_is_active(void);
  30 
  31 G_GNUC_INTERNAL
  32 bool pcmk__corosync_has_nodelist(void);
  33 
  34 G_GNUC_INTERNAL
  35 char *pcmk__corosync_uuid(const crm_node_t *peer);
  36 
  37 G_GNUC_INTERNAL
  38 char *pcmk__corosync_name(uint64_t /*cmap_handle_t */ cmap_handle,
  39                           uint32_t nodeid);
  40 
  41 G_GNUC_INTERNAL
  42 int pcmk__corosync_connect(pcmk_cluster_t *cluster);
  43 
  44 G_GNUC_INTERNAL
  45 void pcmk__corosync_disconnect(pcmk_cluster_t *cluster);
  46 
  47 G_GNUC_INTERNAL
  48 bool pcmk__corosync_is_peer_active(const crm_node_t *node);
  49 
  50 G_GNUC_INTERNAL
  51 int pcmk__cpg_connect(pcmk_cluster_t *cluster);
  52 
  53 G_GNUC_INTERNAL
  54 void pcmk__cpg_disconnect(pcmk_cluster_t *cluster);
  55 
  56 G_GNUC_INTERNAL
  57 uint32_t pcmk__cpg_local_nodeid(cpg_handle_t handle);
  58 
  59 G_GNUC_INTERNAL
  60 bool pcmk__cpg_send_xml(const xmlNode *msg, const crm_node_t *node,
  61                         enum crm_ais_msg_types dest);
  62 
  63 #endif  // PCMK__CRMCLUSTER_PRIVATE__H

/* [previous][next][first][last][top][bottom][index][help] */