| 1 |
/* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 |
/* |
| 3 |
* Copyright (c) 2020 SUSE LLC |
| 4 |
* |
| 5 |
* libmultipath ABI (libmpathutil part) |
| 6 |
* |
| 7 |
* libmultipath doesn't have a stable ABI in the usual sense. In particular, |
| 8 |
* the library does not attempt to ship different versions of the same symbol |
| 9 |
* for backward compatibility. |
| 10 |
* |
| 11 |
* The ABI versioning only serves to avoid linking with a non-matching ABI, to |
| 12 |
* cut down the set of exported symbols, and to describe it. |
| 13 |
* The version string is LIBMULTIPATH_$MAJOR.$MINOR.$REL. |
| 14 |
* |
| 15 |
* Policy: |
| 16 |
* |
| 17 |
* * Bump $MAJOR for incompatible changes, like: |
| 18 |
* - symbols removed |
| 19 |
* - parameter list or return values changed for existing functions |
| 20 |
* - externally visible data structures changed in incompatible ways |
| 21 |
* (like offsets of previously existing struct members) |
| 22 |
* In this case, the new version doesn't inherit the previous versions, |
| 23 |
* because the new library doesn't provide the full previous ABI anymore. |
| 24 |
* All predecessors are merged into the new version. |
| 25 |
* |
| 26 |
* * Bump $MINOR for compatible changes, like adding symbols. |
| 27 |
* The new version inherits the previous ones. |
| 28 |
* |
| 29 |
* * Bump $REL to describe deviations from upstream, e.g. in |
| 30 |
* multipath-tools packages shipped by distributions. |
| 31 |
* The new version inherits the previous ones. |
| 32 |
*/ |
| 33 |
|
| 34 |
/* |
| 35 |
* Symbols exported by both libmpathutil and libmultipath |
| 36 |
* libmpathutil exports just dummy symbols, intended to be overridden |
| 37 |
* by those in libmultipath. |
| 38 |
* CAUTION - the version in libmpathutil.version and libmultipath.version |
| 39 |
* must be THE SAME, otherwise the overriding will fail! |
| 40 |
*/ |
| 41 |
LIBMPATHCOMMON_1.0.0 { |
| 42 |
get_multipath_config; |
| 43 |
put_multipath_config; |
| 44 |
}; |
| 45 |
|
| 46 |
LIBMPATHUTIL_5.0 { |
| 47 |
global: |
| 48 |
alloc_bitfield; |
| 49 |
alloc_strvec; |
| 50 |
append_strbuf_str; |
| 51 |
append_strbuf_str__; |
| 52 |
append_strbuf_quoted; |
| 53 |
basenamecpy; |
| 54 |
cleanup_bitfield; |
| 55 |
cleanup_charp; |
| 56 |
cleanup_fclose; |
| 57 |
cleanup_fd_ptr; |
| 58 |
cleanup_free_ptr; |
| 59 |
cleanup_mutex; |
| 60 |
cleanup_ucharp; |
| 61 |
cleanup_udev_device; |
| 62 |
cleanup_vector; |
| 63 |
cleanup_vector_free; |
| 64 |
convert_dev; |
| 65 |
dlog; |
| 66 |
filepresent; |
| 67 |
fill_strbuf; |
| 68 |
find_keyword; |
| 69 |
find_slot; |
| 70 |
free_keywords; |
| 71 |
free_scandir_result; |
| 72 |
free_strvec; |
| 73 |
get_linux_version_code; |
| 74 |
get_monotonic_time; |
| 75 |
get_strbuf_buf__; |
| 76 |
get_next_string; |
| 77 |
get_strbuf_len; |
| 78 |
get_strbuf_str; |
| 79 |
get_word; |
| 80 |
install_keyword__; |
| 81 |
install_sublevel; |
| 82 |
install_sublevel_end; |
| 83 |
is_quote; |
| 84 |
keyword_alloc; |
| 85 |
log_bitfield_overflow__; |
| 86 |
libmp_basename; |
| 87 |
libmp_strlcat; |
| 88 |
libmp_strlcpy; |
| 89 |
libmp_verbosity; |
| 90 |
log_safe; |
| 91 |
log_thread_reset; |
| 92 |
log_thread_start; |
| 93 |
log_thread_stop; |
| 94 |
logsink; |
| 95 |
msort; |
| 96 |
|
| 97 |
mt_udev_ref; |
| 98 |
mt_udev_unref; |
| 99 |
mt_udev_new; |
| 100 |
|
| 101 |
mt_udev_list_entry_get_next; |
| 102 |
mt_udev_list_entry_get_by_name; |
| 103 |
mt_udev_list_entry_get_name; |
| 104 |
mt_udev_list_entry_get_value; |
| 105 |
|
| 106 |
mt_udev_device_ref; |
| 107 |
mt_udev_device_unref; |
| 108 |
|
| 109 |
mt_udev_device_new_from_syspath; |
| 110 |
mt_udev_device_new_from_devnum; |
| 111 |
mt_udev_device_new_from_subsystem_sysname; |
| 112 |
mt_udev_device_new_from_device_id; |
| 113 |
mt_udev_device_new_from_environment; |
| 114 |
|
| 115 |
mt_udev_device_get_udev; |
| 116 |
mt_udev_device_get_parent; |
| 117 |
mt_udev_device_get_parent_with_subsystem_devtype; |
| 118 |
mt_udev_device_get_devpath; |
| 119 |
mt_udev_device_get_subsystem; |
| 120 |
mt_udev_device_get_devtype; |
| 121 |
mt_udev_device_get_syspath; |
| 122 |
mt_udev_device_get_sysname; |
| 123 |
mt_udev_device_get_devnum; |
| 124 |
mt_udev_device_get_is_initialized; |
| 125 |
mt_udev_device_get_property_value; |
| 126 |
mt_udev_device_get_seqnum; |
| 127 |
mt_udev_device_set_sysattr_value; |
| 128 |
mt_udev_device_get_sysattr_value; |
| 129 |
mt_udev_device_get_driver; |
| 130 |
mt_udev_device_get_devnode; |
| 131 |
|
| 132 |
mt_udev_device_get_properties_list_entry; |
| 133 |
|
| 134 |
mt_udev_monitor_new_from_netlink; |
| 135 |
mt_udev_monitor_enable_receiving; |
| 136 |
mt_udev_monitor_get_fd; |
| 137 |
mt_udev_monitor_receive_device; |
| 138 |
mt_udev_monitor_filter_add_match_subsystem_devtype; |
| 139 |
mt_udev_monitor_ref; |
| 140 |
mt_udev_monitor_unref; |
| 141 |
mt_udev_monitor_set_receive_buffer_size; |
| 142 |
|
| 143 |
mt_udev_enumerate_new; |
| 144 |
mt_udev_enumerate_ref; |
| 145 |
mt_udev_enumerate_unref; |
| 146 |
mt_udev_enumerate_add_match_subsystem; |
| 147 |
mt_udev_enumerate_scan_devices; |
| 148 |
mt_udev_enumerate_get_list_entry; |
| 149 |
mt_udev_enumerate_add_nomatch_subsystem; |
| 150 |
mt_udev_enumerate_add_match_sysattr; |
| 151 |
mt_udev_enumerate_add_nomatch_sysattr; |
| 152 |
mt_udev_enumerate_add_match_property; |
| 153 |
mt_udev_enumerate_add_match_tag; |
| 154 |
mt_udev_enumerate_add_match_parent; |
| 155 |
mt_udev_enumerate_add_match_is_initialized; |
| 156 |
mt_udev_enumerate_add_syspath; |
| 157 |
|
| 158 |
normalize_timespec; |
| 159 |
parse_devt; |
| 160 |
print_strbuf; |
| 161 |
process_file; |
| 162 |
pthread_cond_init_mono; |
| 163 |
recv_packet; |
| 164 |
reset_strbuf; |
| 165 |
safe_write; |
| 166 |
send_packet; |
| 167 |
set_max_fds; |
| 168 |
set_value; |
| 169 |
setup_thread_attr; |
| 170 |
strchop; |
| 171 |
should_exit; |
| 172 |
snprint_keyword; |
| 173 |
steal_strbuf_str; |
| 174 |
timespeccmp; |
| 175 |
timespecsub; |
| 176 |
truncate_strbuf; |
| 177 |
validate_config_strvec; |
| 178 |
ux_socket_listen; |
| 179 |
vector_alloc; |
| 180 |
vector_alloc_slot; |
| 181 |
vector_del_slot; |
| 182 |
vector_find_or_add_slot; |
| 183 |
vector_free; |
| 184 |
vector_insert_slot; |
| 185 |
vector_move_up; |
| 186 |
vector_reset; |
| 187 |
vector_set_slot; |
| 188 |
vector_sort; |
| 189 |
local: |
| 190 |
*; |
| 191 |
}; |