Revision 3193 src/plugin.c

View differences:

plugin.c
299 299
void syl_plugin_signal_connect(const gchar *name, GCallback callback,
300 300
			       gpointer data)
301 301
{
302
	g_return_if_fail(plugin_obj != NULL);
303

  
302 304
	g_signal_connect(plugin_obj, name, callback, data);
303 305
}
304 306

  
305 307
void syl_plugin_signal_disconnect(gpointer func, gpointer data)
306 308
{
309
	g_return_if_fail(plugin_obj != NULL);
310

  
307 311
	g_signal_handlers_disconnect_by_func(plugin_obj, func, data);
308 312
}
309 313

  
......
311 315
{
312 316
	guint signal_id;
313 317

  
318
	g_return_if_fail(plugin_obj != NULL);
319

  
314 320
	if (g_signal_parse_name(name, G_TYPE_FROM_INSTANCE(plugin_obj), &signal_id, NULL, FALSE)) {
315 321
		 \
316 322
				va_list var_args;
......
345 351
	SylPluginLoadFunc load_func = NULL;
346 352
	gchar *file;
347 353

  
354
	g_return_val_if_fail(plugin_obj != NULL, -1);
348 355
	g_return_val_if_fail(name != NULL, -1);
349 356

  
350 357
	debug_print("syl_plugin_load: loading %s\n", name);
......
425 432
{
426 433
	GSList *cur;
427 434

  
435
	g_return_if_fail(plugin_obj != NULL);
436

  
428 437
	for (cur = module_list; cur != NULL; cur = cur->next) {
429 438
		GModule *module = (GModule *)cur->data;
430 439
		SylPluginUnloadFunc unload_func = NULL;

Also available in: Unified diff