[Bug 34027] Salut should have a plugin API
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Feb 11 20:00:58 CET 2011
https://bugs.freedesktop.org/show_bug.cgi?id=34027
--- Comment #1 from Will Thompson <will.thompson at collabora.co.uk> 2011-02-11 11:00:57 PST ---
+GType
+salut_plugin_get_type (void)
+{
+ static GType type = 0;
+
+ if (type == 0) {
+ static const GTypeInfo info = {
+ sizeof (SalutPluginInterface),
+ NULL, /* base_init */
+ NULL, /* base_finalize */
+ NULL, /* class_init */
+ NULL, /* class_finalize */
+ NULL, /* class_data */
+ 0,
+ 0, /* n_preallocs */
+ NULL /* instance_init */
+ };
+
+ type = g_type_register_static (G_TYPE_INTERFACE, "SalutPlugin", &info, 0);
+ }
+
+ return type;
+}
This can be G_DEFINE_INTERFACE() since 2.24 I think.
(Reviewed up to “plugin-loader: add plugin loader from gabble”. This code is
all quite familiar.)
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the telepathy-bugs
mailing list