| 735 * Protocols API |
735 * Protocols API |
| 736 **************************************************************************/ |
736 **************************************************************************/ |
| 737 PurpleProtocol * |
737 PurpleProtocol * |
| 738 purple_protocols_find(const char *id) |
738 purple_protocols_find(const char *id) |
| 739 { |
739 { |
| 740 g_return_if_fail(protocols != NULL && id != NULL); |
740 g_return_val_if_fail(protocols != NULL && id != NULL, NULL); |
| 741 |
741 |
| 742 return g_hash_table_lookup(protocols, id); |
742 return g_hash_table_lookup(protocols, id); |
| 743 } |
743 } |
| 744 |
744 |
| 745 PurpleProtocol * |
745 PurpleProtocol * |