~timchen119/ubuntu/trusty/gnome-bluetooth/lp1035431

« back to all changes in this revision

Viewing changes to lib/bluetooth-plugin-manager.c

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2011-02-27 15:45:22 UTC
  • mfrom: (1.3.2 upstream)
  • mto: (2.2.3 experimental) (1.5.1)
  • mto: This revision was merged to the branch mainline in revision 53.
  • Revision ID: james.westby@ubuntu.com-20110227154522-dnnoqasv5v3mv42a
Tags: upstream-2.91.5
ImportĀ upstreamĀ versionĀ 2.91.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 *
22
22
 */
23
23
 
 
24
/**
 
25
 * SECTION:bluetooth-plugin-manager
 
26
 * @short_description: Bluetooth plug-in manager
 
27
 * @stability: Stable
 
28
 * @include: bluetooth-plugin-manager.h
 
29
 *
 
30
 * The plugin manager is used to extend set up wizards, or preferences.
 
31
 **/
 
32
 
 
33
 
24
34
#ifdef HAVE_CONFIG_H
25
35
#include <config.h>
26
36
#endif
83
93
        }
84
94
}
85
95
 
 
96
/**
 
97
 * bluetooth_plugin_manager_init:
 
98
 *
 
99
 * Initialise the plugin manager for Bluetooth plugins.
 
100
 *
 
101
 * Return value: %TRUE if the initialisation succedeed, %FALSE otherwise.
 
102
 **/
86
103
gboolean
87
104
bluetooth_plugin_manager_init (void)
88
105
{
96
113
        return g_list_length (plugin_list) != 0;
97
114
}
98
115
 
 
116
/**
 
117
 * bluetooth_plugin_manager_cleanup:
 
118
 *
 
119
 * Free all the resources used by the Bluetooth plugins.
 
120
 **/
99
121
void
100
122
bluetooth_plugin_manager_cleanup (void)
101
123
{
113
135
        plugin_list = NULL;
114
136
}
115
137
 
 
138
/**
 
139
 * bluetooth_plugin_manager_get_widgets:
 
140
 * @bdaddr: a Bluetooth address representing a device
 
141
 * @uuids: an array of UUIDs supported by the device.
 
142
 *
 
143
 * Returns a list of widgets suitable for configuring the device
 
144
 * represented by @address, for the services listed in @uuids.
 
145
 *
 
146
 * Return value: a #GList of #GtkWidget, or %NULL is none.
 
147
 **/
116
148
GList *
117
149
bluetooth_plugin_manager_get_widgets (const char *bdaddr,
118
150
                                      const char **uuids)
132
164
        return ret;
133
165
}
134
166
 
 
167
/**
 
168
 * bluetooth_plugin_manager_device_deleted:
 
169
 * @bdaddr: a Bluetooth address representing a device
 
170
 *
 
171
 * Removes all existing configuration for the device, as
 
172
 * supported by the plug-ins.
 
173
 **/
135
174
void
136
175
bluetooth_plugin_manager_device_deleted (const char *bdaddr)
137
176
{