From e35d04a7420883bc6eee818045a8c52b9420021c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Sat, 18 Jan 2025 15:11:43 +0100 Subject: [PATCH] clapper-app: Fix internal functions visibility We have to export functions that are used from UI files, otherwise they are not accessible. For this reason add a special internal visibility header. --- src/bin/clapper-app/clapper-app-list-item-utils.h | 8 ++++++++ src/bin/clapper-app/meson.build | 14 ++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/src/bin/clapper-app/clapper-app-list-item-utils.h b/src/bin/clapper-app/clapper-app-list-item-utils.h index 57aa111e..052723d1 100644 --- a/src/bin/clapper-app/clapper-app-list-item-utils.h +++ b/src/bin/clapper-app/clapper-app-list-item-utils.h @@ -21,18 +21,26 @@ #include #include +#include "clapper-app-internal-visibility.h" + G_BEGIN_DECLS +CLAPPER_APP_INTERNAL_API gchar * clapper_app_list_item_make_stream_group_title (GtkListItem *list_item, ClapperStream *stream); +CLAPPER_APP_INTERNAL_API gchar * clapper_app_list_item_make_resolution (GtkListItem *list_item, gint width, gint height); +CLAPPER_APP_INTERNAL_API gchar * clapper_app_list_item_make_bitrate (GtkListItem *list_item, guint value); +CLAPPER_APP_INTERNAL_API gchar * clapper_app_list_item_convert_int (GtkListItem *list_item, gint value); +CLAPPER_APP_INTERNAL_API gchar * clapper_app_list_item_convert_uint (GtkListItem *list_item, guint value); +CLAPPER_APP_INTERNAL_API gchar * clapper_app_list_item_convert_double (GtkListItem *list_item, gdouble value); G_END_DECLS diff --git a/src/bin/clapper-app/meson.build b/src/bin/clapper-app/meson.build index 83f3946c..220b66c0 100644 --- a/src/bin/clapper-app/meson.build +++ b/src/bin/clapper-app/meson.build @@ -53,6 +53,19 @@ configure_file( configuration: config_h, ) +visibility_conf = configuration_data() + +visibility_conf.set( + 'CLAPPER_API', + 'CLAPPER_APP_INTERNAL', +) + +configure_file( + input: '../../lib/shared/clapper-api-visibility.h.in', + output: 'clapper-app-internal-visibility.h', + configuration: visibility_conf, +) + clapperapp_sources = [ 'clapper-app-about-window.c', 'clapper-app-application.c', @@ -77,6 +90,7 @@ clapperapp_sources = [ ] clapperapp_c_args = [ '-DG_LOG_DOMAIN="ClapperApp"', + '-DCLAPPER_APP_INTERNAL_COMPILATION', '-DGST_USE_UNSTABLE_API', ]