Commit f3a803d7 authored by Felipe Borges's avatar Felipe Borges 👣

frdp-display: Emit "rdp-needs-authentication" when needed

So clients can provide credentials.
parent 87a64ee9
......@@ -39,6 +39,7 @@ enum
{
RDP_CONNECTED,
RDP_DISCONNECTED,
RDP_NEEDS_AUTHENTICATION,
LAST_SIGNAL
};
......@@ -309,6 +310,12 @@ frdp_display_class_init (FrdpDisplayClass *klass)
G_SIGNAL_RUN_LAST,
0, NULL, NULL, NULL,
G_TYPE_NONE, 0);
signals[RDP_NEEDS_AUTHENTICATION] = g_signal_new ("rdp-needs-authentication",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
0, NULL, NULL, NULL,
G_TYPE_NONE, 0);
}
static void
......@@ -447,5 +454,7 @@ frdp_display_authenticate (FrdpDisplay *self,
{
FrdpDisplayClass *klass = FRDP_DISPLAY_DISPLAY_GET_CLASS (self);
g_signal_emit (self, signals[RDP_NEEDS_AUTHENTICATION], 0);
return klass->authenticate (self, username, password, domain);
}
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