|
Flutter Linux Embedder
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_SHELL_PLATFORM_LINUX_PUBLIC_FLUTTER_LINUX_FL_BINARY_MESSENGER_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_PUBLIC_FLUTTER_LINUX_FL_BINARY_MESSENGER_H_
8 #if !defined(__FLUTTER_LINUX_INSIDE__) && !defined(FLUTTER_LINUX_COMPILATION)
9 #error "Only <flutter_linux/flutter_linux.h> can be included directly."
15 #include <glib-object.h>
27 #define FL_BINARY_MESSENGER_ERROR fl_binary_messenger_codec_error_quark()
68 FlBinaryMessenger* messenger,
71 FlBinaryMessengerResponseHandle* response_handle,
78 FlBinaryMessenger* messenger,
82 GDestroyNotify destroy_notify);
85 FlBinaryMessengerResponseHandle* response_handle,
92 GCancellable* cancellable,
96 GBytes* (*send_on_channel_finish)(FlBinaryMessenger* messenger,
101 const gchar* channel,
105 const gchar* channel,
146 FlBinaryMessenger* messenger,
147 const gchar* channel,
150 GDestroyNotify destroy_notify);
166 FlBinaryMessenger* messenger,
167 FlBinaryMessengerResponseHandle* response_handle,
184 const gchar* channel,
186 GCancellable* cancellable,
214 const gchar* channel,
228 FlBinaryMessenger* messenger,
229 const gchar* channel,
234 #endif // FLUTTER_SHELL_PLATFORM_LINUX_PUBLIC_FLUTTER_LINUX_FL_BINARY_MESSENGER_H_
G_DECLARE_DERIVABLE_TYPE(FlAccessibleNode, fl_accessible_node, FL, ACCESSIBLE_NODE, AtkObject)
static gboolean send_response(FlBinaryMessenger *messenger, FlBinaryMessengerResponseHandle *response_handle_, GBytes *response, GError **error)
GTypeInterface parent_iface
GBytes * fl_binary_messenger_send_on_channel_finish(FlBinaryMessenger *messenger, GAsyncResult *result, GError **error)
void fl_binary_messenger_set_warns_on_channel_overflow(FlBinaryMessenger *messenger, const gchar *channel, bool warns)
static void shutdown(FlBinaryMessenger *messenger)
FlKeyEvent uint64_t FlKeyResponderAsyncCallback gpointer user_data
GObjectClass parent_class
gboolean fl_binary_messenger_send_response(FlBinaryMessenger *messenger, FlBinaryMessengerResponseHandle *response_handle, GBytes *response, GError **error)
static void send_on_channel(FlBinaryMessenger *messenger, const gchar *channel, GBytes *message, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
void fl_binary_messenger_send_on_channel(FlBinaryMessenger *messenger, const gchar *channel, GBytes *message, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
static void resize_channel(FlBinaryMessenger *messenger, const gchar *channel, int64_t new_size)
void fl_binary_messenger_set_message_handler_on_channel(FlBinaryMessenger *messenger, const gchar *channel, FlBinaryMessengerMessageHandler handler, gpointer user_data, GDestroyNotify destroy_notify)
G_MODULE_EXPORT GObject typedef void(* FlBinaryMessengerMessageHandler)(FlBinaryMessenger *messenger, const gchar *channel, GBytes *message, FlBinaryMessengerResponseHandle *response_handle, gpointer user_data)
G_MODULE_EXPORT GQuark fl_binary_messenger_codec_error_quark(void) G_GNUC_CONST
@ FL_BINARY_MESSENGER_ERROR_ALREADY_RESPONDED
const uint8_t uint32_t uint32_t GError ** error
G_MODULE_EXPORT fl_binary_messenger_response_handle
G_MODULE_EXPORT BINARY_MESSENGER_RESPONSE_HANDLE
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
static void set_message_handler_on_channel(FlBinaryMessenger *messenger, const gchar *channel, FlBinaryMessengerMessageHandler handler, gpointer user_data, GDestroyNotify destroy_notify)
static void set_warns_on_channel_overflow(FlBinaryMessenger *messenger, const gchar *channel, bool warns)
G_MODULE_EXPORT G_DECLARE_INTERFACE(FlBinaryMessenger, fl_binary_messenger, FL, BINARY_MESSENGER, GObject) G_MODULE_EXPORT G_DECLARE_DERIVABLE_TYPE(FlBinaryMessengerResponseHandle
void fl_binary_messenger_resize_channel(FlBinaryMessenger *messenger, const gchar *channel, int64_t new_size)