root/lib/cluster/crmcluster_private.h

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

INCLUDED FROM


   1 /*
   2  * Copyright 2020 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 #include <crm/cluster.h>           // cluster_type_e, crm_node_t
  23 
  24 G_GNUC_INTERNAL
  25 enum cluster_type_e pcmk__corosync_detect(void);
  26 
  27 G_GNUC_INTERNAL
  28 bool pcmk__corosync_has_nodelist(void);
  29 
  30 G_GNUC_INTERNAL
  31 char *pcmk__corosync_uuid(crm_node_t *peer);
  32 
  33 G_GNUC_INTERNAL
  34 char *pcmk__corosync_name(uint64_t /*cmap_handle_t */ cmap_handle,
  35                           uint32_t nodeid);
  36 
  37 G_GNUC_INTERNAL
  38 gboolean pcmk__corosync_connect(crm_cluster_t *cluster);
  39 
  40 G_GNUC_INTERNAL
  41 void pcmk__corosync_disconnect(crm_cluster_t *cluster);
  42 
  43 G_GNUC_INTERNAL
  44 gboolean pcmk__cpg_send_xml(xmlNode *msg, crm_node_t *node,
  45                             enum crm_ais_msg_types dest);
  46 
  47 #endif  // PCMK__CRMCLUSTER_PRIVATE__H

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