[libdmapsharing] Make more functions static
- From: W. Michael Petullo <wmpetullo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdmapsharing] Make more functions static
- Date: Tue, 31 Dec 2019 02:36:11 +0000 (UTC)
commit 9ae04e25cf792f2f7b4d3bd537bc778d7b05eabf
Author: W. Michael Petullo <mike flyn org>
Date: Mon Dec 30 21:36:11 2019 -0500
Make more functions static
libdmapsharing/test-dmap-av-record.c | 8 ++++----
libdmapsharing/test-dmap-container-record.c | 30 ++++++++++++++---------------
2 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/libdmapsharing/test-dmap-av-record.c b/libdmapsharing/test-dmap-av-record.c
index 51a75a6..7d27f00 100644
--- a/libdmapsharing/test-dmap-av-record.c
+++ b/libdmapsharing/test-dmap-av-record.c
@@ -244,7 +244,7 @@ test_dmap_av_record_get_property (GObject *object,
}
}
-gboolean test_dmap_av_record_itunes_compat (DmapAvRecord *record)
+static gboolean _itunes_compat (DmapAvRecord *record)
{
const gchar *format = TEST_DMAP_AV_RECORD (record)->priv->format;
@@ -255,7 +255,7 @@ gboolean test_dmap_av_record_itunes_compat (DmapAvRecord *record)
}
}
-GInputStream *test_dmap_av_record_read (DmapAvRecord *record, GError **error)
+static GInputStream *_read (DmapAvRecord *record, GError **error)
{
GFile *file;
GInputStream *stream;
@@ -324,8 +324,8 @@ _dmap_av_record_iface_init (gpointer iface)
g_assert (G_TYPE_FROM_INTERFACE (dmap_av_record) == DMAP_TYPE_AV_RECORD);
- dmap_av_record->itunes_compat = test_dmap_av_record_itunes_compat;
- dmap_av_record->read = test_dmap_av_record_read;
+ dmap_av_record->itunes_compat = _itunes_compat;
+ dmap_av_record->read = _read;
}
static void
diff --git a/libdmapsharing/test-dmap-container-record.c b/libdmapsharing/test-dmap-container-record.c
index 46f4211..1c1e259 100644
--- a/libdmapsharing/test-dmap-container-record.c
+++ b/libdmapsharing/test-dmap-container-record.c
@@ -60,28 +60,28 @@ test_dmap_container_record_get_property (GObject *object,
}
-guint
-test_dmap_container_record_get_id (G_GNUC_UNUSED DmapContainerRecord *record)
+static guint
+_get_id (G_GNUC_UNUSED DmapContainerRecord *record)
{
return 2;
}
-void
-test_dmap_container_record_add_entry (G_GNUC_UNUSED DmapContainerRecord *container_record,
- G_GNUC_UNUSED DmapRecord *record,
- G_GNUC_UNUSED gint id,
- G_GNUC_UNUSED GError **error)
+static void
+_add_entry (G_GNUC_UNUSED DmapContainerRecord *container_record,
+ G_GNUC_UNUSED DmapRecord *record,
+ G_GNUC_UNUSED gint id,
+ G_GNUC_UNUSED GError **error)
{
}
-guint64
-test_dmap_container_record_get_entry_count (G_GNUC_UNUSED DmapContainerRecord *record)
+static guint64
+_get_entry_count (G_GNUC_UNUSED DmapContainerRecord *record)
{
return 1;
}
-DmapDb *
-test_dmap_container_record_get_entries (G_GNUC_UNUSED DmapContainerRecord *record)
+static DmapDb *
+_get_entries (G_GNUC_UNUSED DmapContainerRecord *record)
{
return g_object_ref (_entries);
}
@@ -110,10 +110,10 @@ _dmap_container_record_iface_init (gpointer iface)
g_assert (G_TYPE_FROM_INTERFACE (dmap_container_record) == DMAP_TYPE_CONTAINER_RECORD);
- dmap_container_record->get_id = test_dmap_container_record_get_id;
- dmap_container_record->add_entry = test_dmap_container_record_add_entry;
- dmap_container_record->get_entry_count = test_dmap_container_record_get_entry_count;
- dmap_container_record->get_entries = test_dmap_container_record_get_entries;
+ dmap_container_record->get_id = _get_id;
+ dmap_container_record->add_entry = _add_entry;
+ dmap_container_record->get_entry_count = _get_entry_count;
+ dmap_container_record->get_entries = _get_entries;
}
G_DEFINE_TYPE_WITH_CODE (TestDmapContainerRecord, test_dmap_container_record, G_TYPE_OBJECT,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]