#include "flutter/shell/platform/linux/public/flutter_linux/fl_json_method_codec.h"
#include <gmodule.h>
#include "flutter/shell/platform/linux/public/flutter_linux/fl_json_message_codec.h"
Go to the source code of this file.
Classes | |
struct | _FlJsonMethodCodec |
Functions | |
G_DEFINE_TYPE (FlJsonMethodCodec, fl_json_method_codec, fl_method_codec_get_type()) static void fl_json_method_codec_dispose(GObject *object) | |
static GBytes * | fl_json_method_codec_encode_method_call (FlMethodCodec *codec, const gchar *name, FlValue *args, GError **error) |
static gboolean | fl_json_method_codec_decode_method_call (FlMethodCodec *codec, GBytes *message, gchar **name, FlValue **args, GError **error) |
static GBytes * | fl_json_method_codec_encode_success_envelope (FlMethodCodec *codec, FlValue *result, GError **error) |
static GBytes * | fl_json_method_codec_encode_error_envelope (FlMethodCodec *codec, const gchar *code, const gchar *error_message, FlValue *details, GError **error) |
static FlMethodResponse * | fl_json_method_codec_decode_response (FlMethodCodec *codec, GBytes *message, GError **error) |
static void | fl_json_method_codec_class_init (FlJsonMethodCodecClass *klass) |
static void | fl_json_method_codec_init (FlJsonMethodCodec *self) |
G_MODULE_EXPORT FlJsonMethodCodec * | fl_json_method_codec_new () |
Variables | |
static constexpr char | kMethodKey [] = "method" |
static constexpr char | kArgsKey [] = "args" |
|
static |
|
static |
Definition at line 50 of file fl_json_method_codec.cc.
References args, error, fl_message_codec_decode_message(), FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, fl_value_get_string(), fl_value_get_type(), fl_value_lookup_string(), fl_value_ref(), FL_VALUE_TYPE_MAP, FL_VALUE_TYPE_STRING, kArgsKey, kMethodKey, TRUE, and value.
Referenced by fl_json_method_codec_class_init().
|
static |
Definition at line 127 of file fl_json_method_codec.cc.
References args, error, fl_message_codec_decode_message(), FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, fl_method_error_response_new(), fl_method_success_response_new(), fl_value_get_length(), fl_value_get_list_value(), fl_value_get_string(), fl_value_get_type(), FL_VALUE_TYPE_LIST, FL_VALUE_TYPE_NULL, FL_VALUE_TYPE_STRING, length, and value.
Referenced by fl_json_method_codec_class_init().
|
static |
Definition at line 106 of file fl_json_method_codec.cc.
References error, fl_message_codec_encode_message(), fl_value_append_take(), fl_value_new_list(), fl_value_new_null(), fl_value_new_string(), and fl_value_ref().
Referenced by fl_json_method_codec_class_init().
|
static |
Definition at line 33 of file fl_json_method_codec.cc.
References args, error, fl_message_codec_encode_message(), fl_value_new_map(), fl_value_new_null(), fl_value_new_string(), fl_value_ref(), fl_value_set_take(), kArgsKey, and kMethodKey.
Referenced by fl_json_method_codec_class_init().
|
static |
Definition at line 91 of file fl_json_method_codec.cc.
References error, fl_message_codec_encode_message(), fl_value_append_take(), fl_value_new_list(), fl_value_new_null(), fl_value_ref(), and result.
Referenced by fl_json_method_codec_class_init().
|
static |
Definition at line 201 of file fl_json_method_codec.cc.
References fl_json_message_codec_new().
G_MODULE_EXPORT FlJsonMethodCodec* fl_json_method_codec_new | ( | ) |
Definition at line 205 of file fl_json_method_codec.cc.
Referenced by 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(), fl_platform_handler_new(), fl_test_application_activate(), fl_text_input_handler_new(), MethodCallMatcher::MatchAndExplain(), MATCHER_P(), and TEST().
G_DEFINE_TYPE | ( | FlJsonMethodCodec | , |
fl_json_method_codec | , | ||
fl_method_codec_get_type() | |||
) |
Definition at line 20 of file fl_json_method_codec.cc.
|
staticconstexpr |
Definition at line 12 of file fl_json_method_codec.cc.
Referenced by fl_json_method_codec_decode_method_call(), and fl_json_method_codec_encode_method_call().
|
staticconstexpr |
Definition at line 11 of file fl_json_method_codec.cc.
Referenced by fl_json_method_codec_decode_method_call(), and fl_json_method_codec_encode_method_call().