#include "flutter/shell/platform/linux/public/flutter_linux/fl_standard_method_codec.h"
#include <gmodule.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 |
Enumerations | |
enum | { kPropMessageCodec = 1, kPropLast } |
Functions | |
G_DEFINE_TYPE (FlStandardMethodCodec, fl_standard_method_codec, fl_method_codec_get_type()) static void fl_standard_method_codec_set_property(GObject *object | |
switch (prop_id) | |
static void | fl_standard_method_codec_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) |
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 () |
G_MODULE_EXPORT FlStandardMethodCodec * | fl_standard_method_codec_new_with_message_codec (FlStandardMessageCodec *message_codec) |
Variables | |
static constexpr guint8 | kEnvelopeTypeSuccess = 0 |
static constexpr guint8 | kEnvelopeTypeError = 1 |
guint | prop_id |
guint const GValue * | value |
guint const GValue GParamSpec * | pspec |
anonymous enum |
|
static |
Definition at line 263 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_dispose(), fl_standard_method_codec_encode_error_envelope(), fl_standard_method_codec_encode_method_call(), fl_standard_method_codec_encode_success_envelope(), fl_standard_method_codec_get_property(), and kPropMessageCodec.
|
static |
Definition at line 94 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, and TRUE.
Referenced by fl_standard_method_codec_class_init().
|
static |
Definition at line 184 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 type.
Referenced by fl_standard_method_codec_class_init().
|
static |
Definition at line 63 of file fl_standard_method_codec.cc.
Referenced by fl_standard_method_codec_class_init().
|
static |
Definition at line 152 of file fl_standard_method_codec.cc.
References buffer, error, fl_standard_message_codec_write_value(), fl_value_new_string(), g_byte_array_append(), kEnvelopeTypeError, and type.
Referenced by fl_standard_method_codec_class_init().
|
static |
Definition at line 72 of file fl_standard_method_codec.cc.
References args, buffer, error, fl_standard_message_codec_write_value(), and fl_value_new_string().
Referenced by fl_standard_method_codec_class_init().
|
static |
Definition at line 133 of file fl_standard_method_codec.cc.
References buffer, error, fl_standard_message_codec_write_value(), g_byte_array_append(), kEnvelopeTypeSuccess, result, and type.
Referenced by fl_standard_method_codec_class_init().
|
static |
Definition at line 47 of file fl_standard_method_codec.cc.
References kPropMessageCodec, prop_id, pspec, and value.
Referenced by fl_standard_method_codec_class_init().
|
static |
Definition at line 289 of file fl_standard_method_codec.cc.
G_MODULE_EXPORT FlStandardMethodCodec* fl_standard_method_codec_new | ( | ) |
Definition at line 291 of file fl_standard_method_codec.cc.
References fl_standard_message_codec_new(), and fl_standard_method_codec_new_with_message_codec().
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_handler_new(), fl_mouse_cursor_handler_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_warns_on_channel_overflow(), TEST(), and test_method_codec_init().
G_MODULE_EXPORT FlStandardMethodCodec* fl_standard_method_codec_new_with_message_codec | ( | FlStandardMessageCodec * | message_codec | ) |
fl_standard_method_codec_new: @message_codec: A #FlMessageCodec.
Creates an #FlStandardMethodCodec with a custom message codec.
Returns: a new #FlStandardMethodCodec.
Definition at line 298 of file fl_standard_method_codec.cc.
Referenced by fl_standard_method_codec_new(), and TEST().
G_DEFINE_TYPE | ( | FlStandardMethodCodec | , |
fl_standard_method_codec | , | ||
fl_method_codec_get_type() | |||
) |
switch | ( | prop_id | ) |
Definition at line 36 of file fl_standard_method_codec.cc.
References kPropMessageCodec, prop_id, pspec, and value.
|
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_error_envelope().
|
staticconstexpr |
Definition at line 15 of file fl_standard_method_codec.cc.
Referenced by fl_standard_method_codec_decode_response(), and fl_standard_method_codec_encode_success_envelope().
guint prop_id |
Definition at line 31 of file fl_standard_method_codec.cc.
Referenced by fl_accessible_node_set_property(), fl_engine_set_property(), fl_gnome_settings_set_property(), fl_standard_method_codec_get_property(), and switch().
guint const GValue GParamSpec* pspec |
Definition at line 33 of file fl_standard_method_codec.cc.
Referenced by fl_accessible_node_set_property(), fl_engine_set_property(), fl_gnome_settings_set_property(), fl_standard_method_codec_get_property(), fl_view_notify(), and switch().
guint const GValue* value |
Definition at line 32 of file fl_standard_method_codec.cc.
Referenced by fl_standard_method_codec_get_property(), and switch().