161 {
162 g_autoptr(GMainLoop) loop = g_main_loop_new(nullptr, 0);
163
166
167
169 g_autoptr(FlBasicMessageChannel) messages_channel =
171 FL_MESSAGE_CODEC(codec));
173 nullptr, nullptr);
174
175
176 g_autoptr(FlBasicMessageChannel) responses_channel =
178 FL_MESSAGE_CODEC(codec));
180 loop, nullptr);
181
182
183 g_autoptr(FlBasicMessageChannel) control_channel =
185 FL_MESSAGE_CODEC(codec));
188 nullptr);
189
190
191 g_main_loop_run(loop);
192}
G_MODULE_EXPORT FlBasicMessageChannel * fl_basic_message_channel_new(FlBinaryMessenger *messenger, const gchar *name, FlMessageCodec *codec)
G_MODULE_EXPORT void fl_basic_message_channel_set_message_handler(FlBasicMessageChannel *self, FlBasicMessageChannelMessageHandler handler, gpointer user_data, GDestroyNotify destroy_notify)
G_MODULE_EXPORT void fl_basic_message_channel_send(FlBasicMessageChannel *self, FlValue *message, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
static void message_cb(FlBasicMessageChannel *channel, FlValue *message, FlBasicMessageChannelResponseHandle *response_handle, gpointer user_data)
static void response_cb(FlBasicMessageChannel *channel, FlValue *message, FlBasicMessageChannelResponseHandle *response_handle, gpointer user_data)
FlBinaryMessenger * fl_binary_messenger_new(FlEngine *engine)
static FlEngine * make_mock_engine()
G_MODULE_EXPORT FlStandardMessageCodec * fl_standard_message_codec_new()