[Spice-devel] [spice-gtk] Make spice_session_set_shared_dir() static

Marc-André Lureau mlureau at redhat.com
Fri Jan 23 05:28:25 PST 2015


ack

----- Original Message -----
> It's not used outside of spice-session.c.
> ---
>  gtk/spice-session-priv.h | 1 -
>  gtk/spice-session.c      | 5 +++--
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/gtk/spice-session-priv.h b/gtk/spice-session-priv.h
> index 46938ff..8a31033 100644
> --- a/gtk/spice-session-priv.h
> +++ b/gtk/spice-session-priv.h
> @@ -87,7 +87,6 @@ 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/gtk/spice-session.c b/gtk/spice-session.c
> index 7971f3c..169294d 100644
> --- a/gtk/spice-session.c
> +++ b/gtk/spice-session.c
> @@ -211,6 +211,7 @@ enum {
>  static guint signals[SPICE_SESSION_LAST_SIGNAL];
>  
>  static void spice_session_channel_destroy(SpiceSession *session,
>  SpiceChannel *channel);
> +static void spice_session_set_shared_dir(SpiceSession *session, const gchar
> *dir);
>  
>  static void update_proxy(SpiceSession *self, const gchar *str)
>  {
> @@ -2394,8 +2395,8 @@ 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));
>      g_return_if_fail(dir != NULL);
> --
> 2.1.0
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 


More information about the Spice-devel mailing list