From 0153efbf9c4cd1d2b3bd3b1829187fb6d60c06d1 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 7 Sep 2017 11:24:49 +1000 Subject: [PATCH] Remove now superfluous libratbag.sym We don't ship a library anymore, so dealing with library symbols isn't necessary. Signed-off-by: Peter Hutterer --- meson.build | 5 --- src/libratbag.sym | 98 ------------------------------------------ test/symbols-leak-test | 22 ---------- 3 files changed, 125 deletions(-) delete mode 100644 src/libratbag.sym delete mode 100755 test/symbols-leak-test diff --git a/meson.build b/meson.build index f8777b2a..159393cb 100644 --- a/meson.build +++ b/meson.build @@ -409,11 +409,6 @@ if enable_tests install : false) endif -test_symbols_leak = find_program('test/symbols-leak-test') -test('symbols-leak-test', - test_symbols_leak, - args : [ meson.current_source_dir() ]) - #### ratbagd #### src_ratbagd = [ 'src/shared-macro.h', diff --git a/src/libratbag.sym b/src/libratbag.sym deleted file mode 100644 index 6020a2a5..00000000 --- a/src/libratbag.sym +++ /dev/null @@ -1,98 +0,0 @@ -/* in alphabetical order! */ - -LIBRATBAG_0.5.0 { -global: - ratbag_create_context; - ratbag_button_disable; - ratbag_button_get_action_type; - ratbag_button_get_type; - ratbag_button_get_button; - ratbag_button_get_key; - ratbag_button_get_macro; - ratbag_button_get_special; - ratbag_button_get_user_data; - ratbag_button_has_action_type; - ratbag_button_macro_get_event_key; - ratbag_button_macro_get_event_timeout; - ratbag_button_macro_get_event_type; - ratbag_button_macro_get_name; - ratbag_button_macro_get_num_events; - ratbag_button_macro_new; - ratbag_button_macro_ref; - ratbag_button_macro_set_event; - ratbag_button_macro_unref; - ratbag_button_ref; - ratbag_button_set_button; - ratbag_button_set_key; - ratbag_button_set_macro; - ratbag_button_set_special; - ratbag_button_set_user_data; - ratbag_button_unref; - ratbag_device_commit; - ratbag_device_get_name; - ratbag_device_get_num_buttons; - ratbag_device_get_num_profiles; - ratbag_device_get_profile; - ratbag_device_get_svg_name; - ratbag_device_get_user_data; - ratbag_device_has_capability; - ratbag_device_new_from_udev_device; - ratbag_device_new_test_device; - ratbag_device_ref; - ratbag_device_set_user_data; - ratbag_device_unref; - ratbag_get_user_data; - ratbag_log_get_priority; - ratbag_log_set_handler; - ratbag_log_set_priority; - ratbag_profile_get_led; - ratbag_led_get_mode; - ratbag_led_get_type; - ratbag_led_get_color; - ratbag_led_get_effect_rate; - ratbag_led_get_brightness; - ratbag_led_ref; - ratbag_led_set_mode; - ratbag_led_set_color; - ratbag_led_set_effect_rate; - ratbag_led_set_brightness; - ratbag_led_unref; - ratbag_device_get_num_leds; - ratbag_profile_get_button; - ratbag_profile_get_name; - ratbag_profile_get_num_resolutions; - ratbag_profile_get_resolution; - ratbag_profile_get_user_data; - ratbag_profile_has_capability; - ratbag_profile_is_active; - ratbag_profile_is_enabled; - ratbag_profile_ref; - ratbag_profile_set_user_data; - ratbag_profile_set_active; - ratbag_profile_set_enabled; - ratbag_profile_set_name; - ratbag_profile_unref; - ratbag_resolution_get_dpi; - ratbag_resolution_get_dpi_maximum; - ratbag_resolution_get_dpi_minimum; - ratbag_resolution_get_dpi_x; - ratbag_resolution_get_dpi_y; - ratbag_resolution_get_report_rate; - ratbag_resolution_get_user_data; - ratbag_resolution_has_capability; - ratbag_resolution_is_active; - ratbag_resolution_is_default; - ratbag_resolution_ref; - ratbag_resolution_set_active; - ratbag_resolution_set_default; - ratbag_resolution_set_dpi; - ratbag_resolution_set_dpi_xy; - ratbag_resolution_set_report_rate; - ratbag_resolution_set_user_data; - ratbag_resolution_unref; - ratbag_ref; - ratbag_set_user_data; - ratbag_unref; -local: - *; -}; diff --git a/test/symbols-leak-test b/test/symbols-leak-test deleted file mode 100755 index f7628e58..00000000 --- a/test/symbols-leak-test +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -### simple check for exported symbols - -TOP_SRCDIR="$1" - -if [ -z "$TOP_SRCDIR" ]; then - echo "usage: $0 path/to/top_srcdir" - exit 1 -fi - -# make bash exit if any command will exit with non-0 return value -set -e - -# make sure the paths are alright -diff -a -u \ - <(cat "$TOP_SRCDIR"/src/libratbag.sym | \ - grep '^\s\+ratbag_.*' | \ - sed -e 's/^\s\+\(.*\);/\1/' | sort) \ - <(cat "$TOP_SRCDIR"/src/*.c | \ - grep LIBRATBAG_EXPORT -A 1 | grep '^ratbag_.*' | \ - sed -e 's/(.*//' | sort)