[Spice-devel] [spice-gtk 13/13] session: add spice_session_get_proxy_uri()
Christophe Fergeau
cfergeau at redhat.com
Tue Feb 11 09:49:44 PST 2014
On Mon, Feb 03, 2014 at 07:02:44PM +0100, Marc-André Lureau wrote:
> From: Marc-André Lureau <marcandre.lureau at redhat.com>
>
> Learn to return the currently configured proxy, to allow
> client to tweak parameters, such as username and password.
> ---
> doc/reference/spice-gtk-sections.txt | 1 +
> gtk/map-file | 1 +
> gtk/spice-glib-sym-file | 1 +
> gtk/spice-session.c | 14 ++++++++++++++
> gtk/spice-session.h | 1 +
> 5 files changed, 18 insertions(+)
>
> diff --git a/doc/reference/spice-gtk-sections.txt b/doc/reference/spice-gtk-sections.txt
> index 9f0cf67..08b1b4e 100644
> --- a/doc/reference/spice-gtk-sections.txt
> +++ b/doc/reference/spice-gtk-sections.txt
> @@ -28,6 +28,7 @@ spice_session_disconnect
> spice_session_get_channels
> spice_session_get_read_only
> spice_session_has_channel_type
> +spice_session_get_proxy_uri
> <SUBSECTION>
> SpiceSessionMigration
> SpiceSessionVerify
> diff --git a/gtk/map-file b/gtk/map-file
> index d9e596b..f98680c 100644
> --- a/gtk/map-file
> +++ b/gtk/map-file
> @@ -90,6 +90,7 @@ spice_session_migration_get_type;
> spice_session_new;
> spice_session_open_fd;
> spice_session_verify_get_type;
> +spice_session_get_proxy_uri;
> spice_set_session_option;
> spice_smartcard_channel_get_type;
> spice_smartcard_manager_get;
> diff --git a/gtk/spice-glib-sym-file b/gtk/spice-glib-sym-file
> index b90736b..2aa17cb 100644
> --- a/gtk/spice-glib-sym-file
> +++ b/gtk/spice-glib-sym-file
> @@ -105,3 +105,4 @@ spice_uri_set_port
> spice_uri_set_scheme
> spice_uri_set_user
> spice_uri_to_string
> +spice_session_get_proxy_uri
> diff --git a/gtk/spice-session.c b/gtk/spice-session.c
> index 96f73f5..a29c4c5 100644
> --- a/gtk/spice-session.c
> +++ b/gtk/spice-session.c
> @@ -2190,3 +2190,17 @@ guint32 spice_session_get_playback_latency(SpiceSession *session)
> return 0;
> }
> }
> +
> +/**
> + * spice_session_get_proxy_uri:
> + * @session: a #SpiceSession
> + *
> + * Returns: (transfer none): the session proxy #SpiceURI or %NULL.
> + * Since: 0.23
0.24
ACK
> + **/
> +SpiceURI *spice_session_get_proxy_uri(SpiceSession *session)
> +{
> + SpiceSessionPrivate *s = SPICE_SESSION_GET_PRIVATE(session);
> +
> + return s->proxy;
> +}
> diff --git a/gtk/spice-session.h b/gtk/spice-session.h
> index 4ea645e..665c609 100644
> --- a/gtk/spice-session.h
> +++ b/gtk/spice-session.h
> @@ -93,6 +93,7 @@ void spice_session_disconnect(SpiceSession *session);
> GList *spice_session_get_channels(SpiceSession *session);
> gboolean spice_session_has_channel_type(SpiceSession *session, gint type);
> gboolean spice_session_get_read_only(SpiceSession *session);
> +SpiceURI *spice_session_get_proxy_uri(SpiceSession *session);
>
> G_END_DECLS
>
> --
> 1.8.4.2
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20140211/74864f2f/attachment-0001.pgp>
More information about the Spice-devel
mailing list