Mercurial > pidgin
comparison src/plugin.c @ 13310:10c26505d6db
[gaim-migrate @ 15676]
Warn about prpls with preferences.
committer: Tailor Script <tailor@pidgin.im>
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Tue, 21 Feb 2006 19:55:55 +0000 |
| parents | 58b8e87ad657 |
| children | 33dc57ccbd83 |
comparison
equal
deleted
inserted
replaced
| 13309:128324dcc821 | 13310:10c26505d6db |
|---|---|
| 446 GAIM_MAJOR_VERSION, GAIM_MINOR_VERSION); | 446 GAIM_MAJOR_VERSION, GAIM_MINOR_VERSION); |
| 447 plugin->unloadable = TRUE; | 447 plugin->unloadable = TRUE; |
| 448 return plugin; | 448 return plugin; |
| 449 } | 449 } |
| 450 | 450 |
| 451 /* If plugin is a PRPL, make sure it implements the required functions */ | 451 if (plugin->info->type == GAIM_PLUGIN_PROTOCOL) |
| 452 if ((plugin->info->type == GAIM_PLUGIN_PROTOCOL) && ( | 452 { |
| 453 (GAIM_PLUGIN_PROTOCOL_INFO(plugin)->list_icon == NULL) || | 453 /* If plugin is a PRPL, make sure it implements the required functions */ |
| 454 (GAIM_PLUGIN_PROTOCOL_INFO(plugin)->login == NULL) || | 454 if ((GAIM_PLUGIN_PROTOCOL_INFO(plugin)->list_icon == NULL) || |
| 455 (GAIM_PLUGIN_PROTOCOL_INFO(plugin)->close == NULL))) | 455 (GAIM_PLUGIN_PROTOCOL_INFO(plugin)->login == NULL) || |
| 456 { | 456 (GAIM_PLUGIN_PROTOCOL_INFO(plugin)->close == NULL)) |
| 457 plugin->error = g_strdup(_("Plugin does not implement all required functions")); | 457 { |
| 458 gaim_debug_error("plugins", "%s is unloadable: Plugin does not implement all required functions\n", | 458 plugin->error = g_strdup(_("Plugin does not implement all required functions")); |
| 459 plugin->path); | 459 gaim_debug_error("plugins", "%s is unloadable: Plugin does not implement all required functions\n", |
| 460 plugin->unloadable = TRUE; | 460 plugin->path); |
| 461 return plugin; | 461 plugin->unloadable = TRUE; |
| 462 return plugin; | |
| 463 } | |
| 464 | |
| 465 /* For debugging, let's warn about prpl prefs. */ | |
| 466 if (plugin->info->prefs_info != NULL) | |
| 467 { | |
| 468 gaim_debug_error("plugins", "%s has a prefs_info, but is a prpl. This is no longer supported.\n", | |
| 469 plugin->path); | |
| 470 } | |
| 462 } | 471 } |
| 463 | 472 |
| 464 return plugin; | 473 return plugin; |
| 465 #else | 474 #else |
| 466 return NULL; | 475 return NULL; |
