#include "flutter/shell/platform/linux/public/flutter_linux/fl_standard_method_codec.h"
#include <gmodule.h>
#include "flutter/shell/platform/linux/fl_standard_message_codec_private.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_standard_message_codec.h"
Go to the source code of this file.
Classes | |
struct | _FlStandardMethodCodec |
Functions | |
G_DEFINE_TYPE (FlStandardMethodCodec, fl_standard_method_codec, fl_method_codec_get_type()) static void fl_standard_method_codec_dispose(GObject *object) | |
static GBytes * | fl_standard_method_codec_encode_method_call (FlMethodCodec *codec, const gchar *name, FlValue *args, GError **error) |
static gboolean | fl_standard_method_codec_decode_method_call (FlMethodCodec *codec, GBytes *message, gchar **name, FlValue **args, GError **error) |
static GBytes * | fl_standard_method_codec_encode_success_envelope (FlMethodCodec *codec, FlValue *result, GError **error) |
static GBytes * | fl_standard_method_codec_encode_error_envelope (FlMethodCodec *codec, const gchar *code, const gchar *message, FlValue *details, GError **error) |
static FlMethodResponse * | fl_standard_method_codec_decode_response (FlMethodCodec *codec, GBytes *message, GError **error) |
static void | fl_standard_method_codec_class_init (FlStandardMethodCodecClass *klass) |
static void | fl_standard_method_codec_init (FlStandardMethodCodec *self) |
G_MODULE_EXPORT FlStandardMethodCodec * | fl_standard_method_codec_new () |
Variables | |
static constexpr guint8 | kEnvelopeTypeSuccess = 0 |
static constexpr guint8 | kEnvelopeTypeError = 1 |
|
static |
Definition at line 229 of file fl_standard_method_codec.cc.
References fl_standard_method_codec_decode_method_call(), fl_standard_method_codec_decode_response(), fl_standard_method_codec_encode_error_envelope(), fl_standard_method_codec_encode_method_call(), and fl_standard_method_codec_encode_success_envelope().
|
static |
Definition at line 60 of file fl_standard_method_codec.cc.
References args, error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, fl_standard_message_codec_read_value(), fl_value_get_string(), fl_value_get_type(), fl_value_ref(), FL_VALUE_TYPE_STRING, self, and TRUE.
Referenced by fl_standard_method_codec_class_init().
|
static |
Definition at line 150 of file fl_standard_method_codec.cc.
References error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, FL_MESSAGE_CODEC_ERROR_OUT_OF_DATA, fl_method_error_response_new(), fl_method_success_response_new(), fl_standard_message_codec_read_value(), fl_value_get_string(), fl_value_get_type(), FL_VALUE_TYPE_NULL, FL_VALUE_TYPE_STRING, kEnvelopeTypeError, kEnvelopeTypeSuccess, result, and self.
Referenced by fl_standard_method_codec_class_init().
|
static |
Definition at line 118 of file fl_standard_method_codec.cc.
References buffer, error, fl_standard_message_codec_write_value(), fl_value_new_string(), kEnvelopeTypeError, and self.
Referenced by fl_standard_method_codec_class_init().
|
static |
Definition at line 38 of file fl_standard_method_codec.cc.
References args, buffer, error, fl_standard_message_codec_write_value(), fl_value_new_string(), and self.
Referenced by fl_standard_method_codec_class_init().
|
static |
Definition at line 99 of file fl_standard_method_codec.cc.
References buffer, error, fl_standard_message_codec_write_value(), kEnvelopeTypeSuccess, result, and self.
Referenced by fl_standard_method_codec_class_init().
|
static |
Definition at line 244 of file fl_standard_method_codec.cc.
References fl_standard_message_codec_new().
G_MODULE_EXPORT FlStandardMethodCodec* fl_standard_method_codec_new | ( | ) |
Definition at line 248 of file fl_standard_method_codec.cc.
Referenced by cancel_channel(), cancel_exception_response_cb(), decode_error_method_call(), decode_error_response(), decode_method_call(), decode_response_with_error(), decode_response_with_success(), encode_error_envelope(), encode_method_call(), encode_success_envelope(), finish_method(), fl_keyboard_manager_new(), fl_mouse_cursor_plugin_new(), listen_channel(), listen_exception_response_cb(), method_call_error_response_cb(), method_call_not_implemented_response_cb(), method_call_success_response_cb(), resize_channel(), send_events_events_cb(), set_allow_channel_overflow(), TEST(), and test_method_codec_init().
G_DEFINE_TYPE | ( | FlStandardMethodCodec | , |
fl_standard_method_codec | , | ||
fl_method_codec_get_type() | |||
) |
|
staticconstexpr |
Definition at line 17 of file fl_standard_method_codec.cc.
Referenced by fl_standard_method_codec_decode_response(), and fl_standard_method_codec_encode_error_envelope().
|
staticconstexpr |
Definition at line 16 of file fl_standard_method_codec.cc.
Referenced by fl_standard_method_codec_decode_response(), and fl_standard_method_codec_encode_success_envelope().