Top |
Service-side TLS interfacesService-side TLS interfaces — GInterfaces to implement Chan.T.ServerTLSConnection |
GInterface ├── TpSvcAuthenticationTLSCertificate ╰── TpSvcChannelTypeServerTLSConnection1
Channel.Type.ServerTLSConnection can be handled by clients to check servers' TLS certificates interactively. The actual certificates are represented by a separate TLSCertificate object.
void (*tp_svc_authentication_tls_certificate_accept_impl) (TpSvcAuthenticationTLSCertificate *self
,GDBusMethodInvocation *invocation
);
The signature of an implementation of the D-Bus method Accept on interface im.telepathy.v1.Authentication.TLSCertificate.
void
tp_svc_authentication_tls_certificate_return_from_accept
(GDBusMethodInvocation *invocation
);
Return successfully by calling g_dbus_method_invocation_return_value()
.
void tp_svc_authentication_tls_certificate_implement_accept (TpSvcAuthenticationTLSCertificateClass *klass
,tp_svc_authentication_tls_certificate_accept_impl impl
);
Register an implementation for the Accept method in the vtable of an implementation of this interface. To be called from the interface init function.
void
tp_svc_authentication_tls_certificate_emit_accepted
(gpointer instance
);
Type-safe wrapper around g_signal_emit to emit the Accepted signal on interface im.telepathy.v1.Authentication.TLSCertificate.
void (*tp_svc_authentication_tls_certificate_reject_impl) (TpSvcAuthenticationTLSCertificate *self
,const GPtrArray *in_Rejections
,GDBusMethodInvocation *invocation
);
The signature of an implementation of the D-Bus method Reject on interface im.telepathy.v1.Authentication.TLSCertificate.
void
tp_svc_authentication_tls_certificate_return_from_reject
(GDBusMethodInvocation *invocation
);
Return successfully by calling g_dbus_method_invocation_return_value()
.
void tp_svc_authentication_tls_certificate_implement_reject (TpSvcAuthenticationTLSCertificateClass *klass
,tp_svc_authentication_tls_certificate_reject_impl impl
);
Register an implementation for the Reject method in the vtable of an implementation of this interface. To be called from the interface init function.
typedef struct _TpSvcChannelTypeServerTLSConnection1 TpSvcChannelTypeServerTLSConnection1;
Dummy typedef representing any implementation of this interface.
typedef struct _TpSvcChannelTypeServerTLSConnection1Class TpSvcChannelTypeServerTLSConnection1Class;
The class of TpSvcChannelTypeServerTLSConnection1.
This interface has no D-Bus methods, so an
implementation can typically pass NULL
to
G_IMPLEMENT_INTERFACE()
as the interface
initialization function.
typedef struct _TpSvcAuthenticationTLSCertificate TpSvcAuthenticationTLSCertificate;
Dummy typedef representing any implementation of this interface.
typedef struct _TpSvcAuthenticationTLSCertificateClass TpSvcAuthenticationTLSCertificateClass;
The class of TpSvcAuthenticationTLSCertificate.
In a full implementation of this interface (i.e. all
methods implemented), the interface initialization
function used in G_IMPLEMENT_INTERFACE()
would
typically look like this:
static void implement_authentication_tls_certificate (gpointer klass, gpointer unused G_GNUC_UNUSED) { #define IMPLEMENT(x) tp_svc_authentication_tls_certificate_implement_##x (\ klass, my_object_##x) IMPLEMENT (accept); IMPLEMENT (reject); #undef IMPLEMENT }
“accepted”
signalvoid user_function (TpSvcAuthenticationTLSCertificate *self, gpointer user_data)
The Accepted D-Bus signal is emitted whenever this GObject signal is.
Flags: Has Details
“rejected”
signalvoid user_function (TpSvcAuthenticationTLSCertificate *self, gpointer user_data)
The Rejected D-Bus signal is emitted whenever this GObject signal is.
self |
an object |
|
arg_Rejections |
const GPtrArray * (FIXME, generate documentation) |
|
user_data |
user data set when the signal handler was connected. |
Flags: Has Details