Commit 4aa7bdac authored by Felipe Borges's avatar Felipe Borges 👣

frdp-display: Make frdp_display_close() part of the public API

parent 6427bb17
......@@ -189,6 +189,8 @@ frdp_display_open_host_cb (GObject *source_object,
g_signal_emit (self, signals[RDP_DISCONNECTED], 0);
g_debug ("Connection failed: %s", error->message);
frdp_display_close (self);
}
}
......@@ -365,6 +367,18 @@ frdp_display_is_open (FrdpDisplay *display)
return frdp_session_is_open (display->priv->session);
}
/**
* frdp_display_close:
* @display: (transfer none): the RDP display widget
*
* Request the closing of the RDP session.
*/
void
frdp_display_close (FrdpDisplay *display)
{
frdp_session_close (display->priv->session);
}
/**
* frdp_display_set_scaling:
* @display: (transfer none): the RDP display widget
......
......@@ -46,6 +46,8 @@ void frdp_display_open_host (FrdpDisplay *display,
gboolean frdp_display_is_open (FrdpDisplay *display);
void frdp_display_close (FrdpDisplay *display);
void frdp_display_set_scaling (FrdpDisplay *display,
gboolean scaling);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment