| 36713:8959b4ffee99 | 36714:ec178f7d66da |
|---|---|
| 3539 iface->normalize = purple_normalize_nocase; | 3539 iface->normalize = purple_normalize_nocase; |
| 3540 iface->remove_group = novell_remove_group; | 3540 iface->remove_group = novell_remove_group; |
| 3541 iface->get_max_message_size = novell_get_max_message_size; | 3541 iface->get_max_message_size = novell_get_max_message_size; |
| 3542 } | 3542 } |
| 3543 | 3543 |
| 3544 PURPLE_DEFINE_TYPE_EXTENDED( | |
| 3545 NovellProtocol, novell_protocol, PURPLE_TYPE_PROTOCOL, 0, | |
| 3546 PURPLE_IMPLEMENT_INTERFACE_STATIC(PURPLE_TYPE_PROTOCOL_INTERFACE, | |
| 3547 novell_protocol_interface_init) | |
| 3548 ); | |
| 3549 | |
| 3544 static PurplePluginInfo * | 3550 static PurplePluginInfo * |
| 3545 plugin_query(GError **error) | 3551 plugin_query(GError **error) |
| 3546 { | 3552 { |
| 3547 return purple_plugin_info_new( | 3553 return purple_plugin_info_new( |
| 3548 "id", "protocol-novell", | 3554 "id", "protocol-novell", |
| 3560 } | 3566 } |
| 3561 | 3567 |
| 3562 static gboolean | 3568 static gboolean |
| 3563 plugin_load(PurplePlugin *plugin, GError **error) | 3569 plugin_load(PurplePlugin *plugin, GError **error) |
| 3564 { | 3570 { |
| 3571 novell_protocol_register_type(plugin); | |
| 3572 | |
| 3565 my_protocol = purple_protocols_add(NOVELL_TYPE_PROTOCOL, error); | 3573 my_protocol = purple_protocols_add(NOVELL_TYPE_PROTOCOL, error); |
| 3566 if (!my_protocol) | 3574 if (!my_protocol) |
| 3567 return FALSE; | 3575 return FALSE; |
| 3568 | 3576 |
| 3569 return TRUE; | 3577 return TRUE; |
| 3576 return FALSE; | 3584 return FALSE; |
| 3577 | 3585 |
| 3578 return TRUE; | 3586 return TRUE; |
| 3579 } | 3587 } |
| 3580 | 3588 |
| 3581 static PurplePlugin *my_plugin; | 3589 PURPLE_PLUGIN_INIT(novell, plugin_query, plugin_load, plugin_unload); |
| 3582 PURPLE_PROTOCOL_DEFINE(my_plugin, NovellProtocol, novell_protocol); | |
| 3583 PURPLE_PLUGIN_INIT_VAL(my_plugin, novell, plugin_query, plugin_load, | |
| 3584 plugin_unload); |