| 832 *ops_new = *ops; |
832 *ops_new = *ops; |
| 833 |
833 |
| 834 return ops_new; |
834 return ops_new; |
| 835 } |
835 } |
| 836 |
836 |
| 837 static void |
|
| 838 purple_account_ui_ops_free(PurpleAccountUiOps *ops) |
|
| 839 { |
|
| 840 g_return_if_fail(ops != NULL); |
|
| 841 |
|
| 842 g_free(ops); |
|
| 843 } |
|
| 844 |
|
| 845 GType |
837 GType |
| 846 purple_account_ui_ops_get_type(void) |
838 purple_account_ui_ops_get_type(void) |
| 847 { |
839 { |
| 848 static GType type = 0; |
840 static GType type = 0; |
| 849 |
841 |
| 850 if (type == 0) { |
842 if (type == 0) { |
| 851 type = g_boxed_type_register_static("PurpleAccountUiOps", |
843 type = g_boxed_type_register_static("PurpleAccountUiOps", |
| 852 (GBoxedCopyFunc)purple_account_ui_ops_copy, |
844 (GBoxedCopyFunc)purple_account_ui_ops_copy, |
| 853 (GBoxedFreeFunc)purple_account_ui_ops_free); |
845 (GBoxedFreeFunc)g_free); |
| 854 } |
846 } |
| 855 |
847 |
| 856 return type; |
848 return type; |
| 857 } |
849 } |
| 858 |
850 |