From 0b083c33e12efad9b19f85215b0d1a10315f5c31 Mon Sep 17 00:00:00 2001
From: dagargo <dagargo@gmail.com>
Date: Sun, 15 Jun 2025 22:26:39 +0200
Subject: Fix declarations of fs_get_exts

With more strict typing, compilation was failing. This is due to the `-std=gnu23`
being used by default.

This is a continuation of the previous commit as headers were not fixed.
---
 src/connectors/common.h | 6 ++++--
 src/sample.c            | 3 ---
 src/sample.h            | 6 +++++-
 3 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/connectors/common.h b/src/connectors/common.h
index e4c50ef..30bf58a 100644
--- a/src/connectors/common.h
+++ b/src/connectors/common.h
@@ -32,9 +32,11 @@ struct common_simple_read_dir_data
   guint32 last;
 };
 
-const gchar **common_sysex_get_extensions ();
+const gchar **common_sysex_get_extensions (struct backend *backend,
+					   const struct fs_operations *ops);
 
-const gchar **common_get_all_extensions ();
+const gchar **common_get_all_extensions (struct backend *backend,
+					 const struct fs_operations *ops);
 
 gchar *common_slot_get_upload_path (struct backend *backend,
 				    const struct fs_operations *ops,
diff --git a/src/sample.c b/src/sample.c
index b216227..486b706 100644
--- a/src/sample.c
+++ b/src/sample.c
@@ -76,9 +76,6 @@ static const guint8 JUNK_CHUNK_DATA[] = {
   0, 0, 0, 0
 };
 
-struct backend;
-struct fs_operations;
-
 static sf_count_t
 get_filelen_byte_array_io (void *user_data)
 {
diff --git a/src/sample.h b/src/sample.h
index 8e72da7..45cdd76 100644
--- a/src/sample.h
+++ b/src/sample.h
@@ -34,6 +34,9 @@
 
 #define SAMPLE_GET_FILE_FORMAT(sample_info, sample_format) (((sample_info)->format & SF_FORMAT_TYPEMASK) | sample_format)
 
+struct backend;
+struct fs_operations;
+
 typedef void (*sample_load_cb) (struct job_control * control,
 				gdouble progress, gpointer data);
 
@@ -67,7 +70,8 @@ gint sample_load_from_file_full (const gchar * path, struct idata *sample,
 gint sample_load_sample_info (const gchar * path,
 			      struct sample_info *sample_info);
 
-const gchar **sample_get_sample_extensions ();
+const gchar **sample_get_sample_extensions (struct backend *backend,
+					    const struct fs_operations *ops);
 
 void sample_check_and_fix_loop_points (struct sample_info *sample_info);
 
-- 
2.30.2

