Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions shell/platform/linux/fl_method_call.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ G_MODULE_EXPORT FlValue* fl_method_call_get_args(FlMethodCall* self) {
return self->args;
}

gboolean fl_method_call_respond(FlMethodCall* self,
FlMethodResponse* response,
GError** error) {
G_MODULE_EXPORT gboolean fl_method_call_respond(FlMethodCall* self,
FlMethodResponse* response,
GError** error) {
g_return_val_if_fail(FL_IS_METHOD_CALL(self), FALSE);
g_return_val_if_fail(FL_IS_METHOD_RESPONSE(response), FALSE);
return fl_method_channel_respond(self->channel, self->response_handle,
Expand Down
3 changes: 3 additions & 0 deletions shell/platform/linux/fl_method_response.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ struct _FlMethodNotImplementedResponse {
FlMethodResponse parent_instance;
};

// Added here to stop the compiler from optimising this function away.
G_MODULE_EXPORT GType fl_method_response_get_type();

G_DEFINE_TYPE(FlMethodResponse, fl_method_response, G_TYPE_OBJECT)
G_DEFINE_TYPE(FlMethodSuccessResponse,
fl_method_success_response,
Expand Down
3 changes: 3 additions & 0 deletions shell/platform/linux/fl_plugin_registrar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ struct _FlPluginRegistrar {
FlBinaryMessenger* messenger;
};

// Added here to stop the compiler from optimising this function away.
G_MODULE_EXPORT GType fl_plugin_registrar_get_type();

G_DEFINE_TYPE(FlPluginRegistrar, fl_plugin_registrar, G_TYPE_OBJECT)

static void view_weak_notify_cb(gpointer user_data, GObject* object) {
Expand Down