| 575 void |
575 void |
| 576 gaim_signals_init() |
576 gaim_signals_init() |
| 577 { |
577 { |
| 578 g_return_if_fail(instance_table == NULL); |
578 g_return_if_fail(instance_table == NULL); |
| 579 |
579 |
| 580 gaim_debug_register_category("signals"); |
|
| 581 |
|
| 582 instance_table = |
580 instance_table = |
| 583 g_hash_table_new_full(g_direct_hash, g_direct_equal, |
581 g_hash_table_new_full(g_direct_hash, g_direct_equal, |
| 584 NULL, (GDestroyNotify)destroy_instance_data); |
582 NULL, (GDestroyNotify)destroy_instance_data); |
| 585 } |
583 } |
| 586 |
584 |
| 589 { |
587 { |
| 590 g_return_if_fail(instance_table != NULL); |
588 g_return_if_fail(instance_table != NULL); |
| 591 |
589 |
| 592 g_hash_table_destroy(instance_table); |
590 g_hash_table_destroy(instance_table); |
| 593 instance_table = NULL; |
591 instance_table = NULL; |
| 594 |
|
| 595 gaim_debug_unregister_category("signals"); |
|
| 596 } |
592 } |
| 597 |
593 |
| 598 /************************************************************************** |
594 /************************************************************************** |
| 599 * Marshallers |
595 * Marshallers |
| 600 **************************************************************************/ |
596 **************************************************************************/ |