From 8d46eb012778534d8beb5d1742e20ff9e2c300c2 Mon Sep 17 00:00:00 2001
From: Christine Caulfield <ccaulfie@redhat.com>
Date: Mon, 18 Dec 2023 09:25:56 +0000
Subject: [PATCH] Fix up the library .versions files

I've only added missing symbols and removed old ones. The actual
library version numbers might need assessing too.

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 lib/libcfg.versions        | 12 +++++++-----
 lib/libcmap.versions       | 38 ++++++++++++++++++++++++++++++++++++++
 lib/libcpg.versions        |  8 ++++++++
 lib/libquorum.versions     |  8 ++++++--
 lib/libsam.versions        |  7 ++++++-
 lib/libvotequorum.versions |  4 ++++
 6 files changed, 69 insertions(+), 8 deletions(-)

diff --git a/lib/libcfg.versions b/lib/libcfg.versions
index 18d18f70..7f89f239 100644
--- a/lib/libcfg.versions
+++ b/lib/libcfg.versions
@@ -6,13 +6,15 @@ COROSYNC_CFG_0.82 {
 		corosync_cfg_fd_get;
 		corosync_cfg_dispatch;
 		corosync_cfg_finalize;
-		corosync_cfg_administrative_state_get;
-		corosync_cfg_administrative_state_set;
-		corosync_cfg_track;
-		corosync_cfg_track_stop;
 		corosync_cfg_ring_status_get;
 		corosync_cfg_node_status_get;
-		corosync_cfg_ring_reenable;
+		corosync_cfg_kill_node;
+		corosync_cfg_try_shutdown;
+		corosync_cfg_replyto_shutdown;
+		corosync_cfg_get_node_addrs;
+		corosync_cfg_local_get;
+		corosync_cfg_reload_config;
+		corosync_cfg_reopen_log_files;
 		corosync_cfg_trackstart;
 		corosync_cfg_trackstop;
 };
diff --git a/lib/libcmap.versions b/lib/libcmap.versions
index 59c8778c..7460dd30 100644
--- a/lib/libcmap.versions
+++ b/lib/libcmap.versions
@@ -3,4 +3,42 @@
 COROSYNC_CMAP_1.0 {
 	global:
 		cmap_initialize;
+		cmap_initialize_map;
+		cmap_finalize;
+		cmap_fd_get;
+		cmap_dispatch;
+		cmap_context_get;
+		cmap_context_set;
+		cmap_set;
+		cmap_set_int8;
+		cmap_set_uint8;
+		cmap_set_int16;
+		cmap_set_uint16;
+		cmap_set_int32;
+		cmap_set_uint32;
+		cmap_set_int64;
+		cmap_set_uint64;
+		cmap_set_float;
+		cmap_set_double;
+		cmap_set_string;
+		cmap_delete;
+		cmap_get;
+		cmap_get_int8;
+		cmap_get_uint8;
+		cmap_get_int16;
+		cmap_get_uint16;
+		cmap_get_int32;
+		cmap_get_uint32;
+		cmap_get_int64;
+		cmap_get_uint64;
+		cmap_get_float;
+		cmap_get_double;
+		cmap_get_string;
+		cmap_inc;
+		cmap_dec;
+		cmap_iter_init;
+		cmap_iter_next;
+		cmap_iter_finalize;
+		cmap_track_add;
+		cmap_track_delete;
 };
diff --git a/lib/libcpg.versions b/lib/libcpg.versions
index 93eeb529..ba4d16d6 100644
--- a/lib/libcpg.versions
+++ b/lib/libcpg.versions
@@ -3,15 +3,23 @@
 COROSYNC_CPG_1.0 {
 	global:
 		cpg_initialize;
+		cpg_model_initialize;
 		cpg_finalize;
 		cpg_fd_get;
+		cpg_max_atomic_msgsize_get;
 		cpg_dispatch;
 		cpg_join;
 		cpg_leave;
 		cpg_mcast_joined;
 		cpg_membership_get;
+		cpg_local_get;
+		cpg_flow_control_state_get;
 		cpg_context_get;
 		cpg_context_set;
 		cpg_zcb_alloc;
 		cpg_zcb_free;
+		cpg_zcb_mcast_joined;
+		cpg_iteration_initialize;
+		cpg_iteration_next;
+		cpg_iteration_finalize;
 };
diff --git a/lib/libquorum.versions b/lib/libquorum.versions
index b1f0a883..b4fc21cd 100644
--- a/lib/libquorum.versions
+++ b/lib/libquorum.versions
@@ -3,9 +3,13 @@
 COROSYNC_QUORUM_1.0 {
 	global:
 		quorum_initialize;
+		quorum_model_initialize;
 		quorum_finalize;
+		quorum_fd_get;
 		quorum_getquorate;
-		quorum_initialize;
-		quorum_finalize;
 		quorum_dispatch;
+		quorum_trackstart;
+		quorum_trackstop;
+		quorum_context_get;
+		quorum_context_set;
 };
diff --git a/lib/libsam.versions b/lib/libsam.versions
index 48fba2cc..3881bb72 100644
--- a/lib/libsam.versions
+++ b/lib/libsam.versions
@@ -2,11 +2,16 @@
 
 COROSYNC_SAM_1.0 {
 	global:
-		sam_initialized;
+		sam_initialize;
 		sam_finalize;
 		sam_start;
 		sam_stop;
 		sam_register;
 		sam_hc_send;
 		sam_hc_callback_register;
+		sam_warn_signal_set;
+		sam_data_getsize;
+		sam_data_restore;
+		sam_data_store;
+		sam_mark_failed;
 };
diff --git a/lib/libvotequorum.versions b/lib/libvotequorum.versions
index 7a37030c..00783fc0 100644
--- a/lib/libvotequorum.versions
+++ b/lib/libvotequorum.versions
@@ -4,12 +4,16 @@ COROSYNC_VOTEQUORUM_1.0 {
 	global:
 		votequorum_initialize;
 		votequorum_finalize;
+		votequorum_dispatch;
+		votequorum_fd_get;
 		votequorum_getinfo;
 		votequorum_setexpected;
 		votequorum_setvotes;
 		votequorum_qdevice_register;
 		votequorum_qdevice_unregister;
 		votequorum_qdevice_poll;
+		votequorum_qdevice_update;
+		votequorum_qdevice_master_wins;
 		votequorum_trackstart;
 		votequorum_trackstop;
 		votequorum_context_get;
-- 
2.25.1

