--- a/libpurple/protocols/facebook/api.c Sun Mar 13 21:59:39 2022 -0500 +++ b/libpurple/protocols/facebook/api.c Sun Mar 13 22:01:25 2022 -0500 @@ -3299,6 +3299,9 @@ } } +G_DEFINE_BOXED_TYPE(FbApiEvent, fb_api_event, fb_api_event_dup, + fb_api_event_free) + FbApiMessage * fb_api_message_dup(const FbApiMessage *msg) { @@ -3335,6 +3338,9 @@ } } +G_DEFINE_BOXED_TYPE(FbApiMessage, fb_api_message, fb_api_message_dup, + fb_api_message_free) + FbApiPresence * fb_api_presence_dup(const FbApiPresence *presence) { @@ -3356,6 +3362,9 @@ } } +G_DEFINE_BOXED_TYPE(FbApiPresence, fb_api_presence, fb_api_presence_dup, + fb_api_presence_free) + FbApiThread * fb_api_thread_dup(const FbApiThread *thrd) { @@ -3395,6 +3404,9 @@ } } +G_DEFINE_BOXED_TYPE(FbApiThread, fb_api_thread, fb_api_thread_dup, + fb_api_thread_free) + FbApiTyping * fb_api_typing_dup(const FbApiTyping *typg) { @@ -3416,6 +3428,9 @@ } } +G_DEFINE_BOXED_TYPE(FbApiTyping, fb_api_typing, fb_api_typing_dup, + fb_api_typing_free) + FbApiUser * fb_api_user_dup(const FbApiUser *user) { @@ -3457,3 +3472,5 @@ g_free(user); } } + +G_DEFINE_BOXED_TYPE(FbApiUser, fb_api_user, fb_api_user_dup, fb_api_user_free)