comparison libpurple/media/backend-iface.c @ 29542:af08588c06f5

Add the conference-type property to the media backend interface.
author maiku@pidgin.im
date Thu, 22 Oct 2009 22:58:48 +0000
parents 0ae9306de1f6
children c9845a081a3a
comparison
equal deleted inserted replaced
29541:d1955da88264 29542:af08588c06f5
39 39
40 static guint purple_media_backend_signals[LAST_SIGNAL] = {0}; 40 static guint purple_media_backend_signals[LAST_SIGNAL] = {0};
41 41
42 enum { 42 enum {
43 PROP_0, 43 PROP_0,
44 PROP_CONFERENCE_TYPE,
44 PROP_MEDIA, 45 PROP_MEDIA,
45 }; 46 };
46 47
47 static void 48 static void
48 purple_media_backend_base_init(gpointer iface) 49 purple_media_backend_base_init(gpointer iface)
50 static gboolean is_initialized = FALSE; 51 static gboolean is_initialized = FALSE;
51 52
52 if (is_initialized) 53 if (is_initialized)
53 return; 54 return;
54 55
56 g_object_class_install_property(iface, PROP_CONFERENCE_TYPE,
57 g_param_spec_object("conference-type",
58 "Conference Type",
59 "The type of conference that this backend "
60 "has been created to provide.",
61 G_TYPE_STRING,
62 G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
55 g_object_class_install_property(iface, PROP_MEDIA, 63 g_object_class_install_property(iface, PROP_MEDIA,
56 g_param_spec_object("media", 64 g_param_spec_object("media",
57 "Purple Media", 65 "Purple Media",
58 "The media object that this backend is bound to.", 66 "The media object that this backend is bound to.",
59 PURPLE_TYPE_MEDIA, 67 PURPLE_TYPE_MEDIA,