5#include "flutter/shell/platform/linux/public/flutter_linux/fl_method_codec.h"
6#include "flutter/shell/platform/linux/fl_method_codec_private.h"
20 g_return_val_if_fail(FL_IS_METHOD_CODEC(
self),
nullptr);
21 g_return_val_if_fail(
name !=
nullptr,
nullptr);
32 g_return_val_if_fail(FL_IS_METHOD_CODEC(
self),
FALSE);
34 g_return_val_if_fail(
name !=
nullptr,
FALSE);
35 g_return_val_if_fail(
args !=
nullptr,
FALSE);
37 return FL_METHOD_CODEC_GET_CLASS(
self)->decode_method_call(
self,
message,
44 g_return_val_if_fail(FL_IS_METHOD_CODEC(
self),
nullptr);
46 return FL_METHOD_CODEC_GET_CLASS(
self)->encode_success_envelope(
self,
result,
55 g_return_val_if_fail(FL_IS_METHOD_CODEC(
self),
nullptr);
56 g_return_val_if_fail(
code !=
nullptr,
nullptr);
58 return FL_METHOD_CODEC_GET_CLASS(
self)->encode_error_envelope(
65 g_return_val_if_fail(FL_IS_METHOD_CODEC(
self),
nullptr);
66 g_return_val_if_fail(
message !=
nullptr,
nullptr);
68 if (g_bytes_get_size(
message) == 0) {
G_DEFINE_TYPE(FlBasicMessageChannelResponseHandle, fl_basic_message_channel_response_handle, G_TYPE_OBJECT) static void fl_basic_message_channel_response_handle_dispose(GObject *object)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
FlMethodResponse * fl_method_codec_decode_response(FlMethodCodec *self, GBytes *message, GError **error)
static void fl_method_codec_init(FlMethodCodec *self)
static void fl_method_codec_class_init(FlMethodCodecClass *klass)
gboolean fl_method_codec_decode_method_call(FlMethodCodec *self, GBytes *message, gchar **name, FlValue **args, GError **error)
GBytes * fl_method_codec_encode_success_envelope(FlMethodCodec *self, FlValue *result, GError **error)
GBytes * fl_method_codec_encode_method_call(FlMethodCodec *self, const gchar *name, FlValue *args, GError **error)
GBytes * fl_method_codec_encode_error_envelope(FlMethodCodec *self, const gchar *code, const gchar *message, FlValue *details, GError **error)
G_MODULE_EXPORT FlMethodNotImplementedResponse * fl_method_not_implemented_response_new()
const uint8_t uint32_t uint32_t GError ** error
typedefG_BEGIN_DECLS struct _FlValue FlValue
DEF_SWITCHES_START aot vmservice shared library name