[Spice-devel] [PATCH spice-gtk 2/2] spice-session: Make some functions static

Frediano Ziglio fziglio at redhat.com
Thu Sep 27 06:12:02 UTC 2018


Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 src/spice-session-priv.h | 2 --
 src/spice-session.c      | 9 +++++----
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/spice-session-priv.h b/src/spice-session-priv.h
index d2a557b..0190c1f 100644
--- a/src/spice-session-priv.h
+++ b/src/spice-session-priv.h
@@ -86,8 +86,6 @@ void spice_session_set_name(SpiceSession *session, const gchar *name);
 gboolean spice_session_is_playback_active(SpiceSession *session);
 guint32 spice_session_get_playback_latency(SpiceSession *session);
 void spice_session_sync_playback_latency(SpiceSession *session);
-const gchar* spice_session_get_shared_dir(SpiceSession *session);
-void spice_session_set_shared_dir(SpiceSession *session, const gchar *dir);
 gboolean spice_session_get_audio_enabled(SpiceSession *session);
 gboolean spice_session_get_smartcard_enabled(SpiceSession *session);
 gboolean spice_session_get_usbredir_enabled(SpiceSession *session);
diff --git a/src/spice-session.c b/src/spice-session.c
index 8030eb6..7ea1c21 100644
--- a/src/spice-session.c
+++ b/src/spice-session.c
@@ -221,6 +221,9 @@ static const GEnumValue _spice_image_compress_values[] = {
 
 G_STATIC_ASSERT(G_N_ELEMENTS(_spice_image_compress_values) == SPICE_IMAGE_COMPRESSION_ENUM_END + 1);
 
+static const gchar* spice_session_get_shared_dir(SpiceSession *session);
+static void spice_session_set_shared_dir(SpiceSession *session, const gchar *dir);
+
 GType
 spice_image_compress_get_type (void)
 {
@@ -2574,8 +2577,7 @@ guint32 spice_session_get_playback_latency(SpiceSession *session)
     }
 }
 
-G_GNUC_INTERNAL
-const gchar* spice_session_get_shared_dir(SpiceSession *session)
+static const gchar* spice_session_get_shared_dir(SpiceSession *session)
 {
     g_return_val_if_fail(SPICE_IS_SESSION(session), NULL);
 
@@ -2584,8 +2586,7 @@ const gchar* spice_session_get_shared_dir(SpiceSession *session)
     return s->shared_dir;
 }
 
-G_GNUC_INTERNAL
-void spice_session_set_shared_dir(SpiceSession *session, const gchar *dir)
+static void spice_session_set_shared_dir(SpiceSession *session, const gchar *dir)
 {
     g_return_if_fail(SPICE_IS_SESSION(session));
 
-- 
2.17.1



More information about the Spice-devel mailing list