#include "flutter/shell/platform/linux/public/flutter_linux/fl_method_codec.h"
#include "flutter/shell/platform/linux/fl_method_codec_private.h"
#include <gmodule.h>
Go to the source code of this file.
Functions | |
static void | fl_method_codec_class_init (FlMethodCodecClass *klass) |
static void | fl_method_codec_init (FlMethodCodec *self) |
GBytes * | fl_method_codec_encode_method_call (FlMethodCodec *self, const gchar *name, FlValue *args, GError **error) |
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_error_envelope (FlMethodCodec *self, const gchar *code, const gchar *message, FlValue *details, GError **error) |
FlMethodResponse * | fl_method_codec_decode_response (FlMethodCodec *self, GBytes *message, GError **error) |
|
static |
Definition at line 12 of file fl_method_codec.cc.
gboolean fl_method_codec_decode_method_call | ( | FlMethodCodec * | self, |
GBytes * | message, | ||
gchar ** | name, | ||
FlValue ** | args, | ||
GError ** | error | ||
) |
Definition at line 27 of file fl_method_codec.cc.
Referenced by decode_error_method_call(), decode_method_call(), MethodCallMatcher::MatchAndExplain(), message_cb(), TEST(), and test_method_codec_decode_method_call().
FlMethodResponse* fl_method_codec_decode_response | ( | FlMethodCodec * | self, |
GBytes * | message, | ||
GError ** | error | ||
) |
Definition at line 62 of file fl_method_codec.cc.
References error, and fl_method_not_implemented_response_new().
Referenced by cancel_exception_response_cb(), decode_error_response(), decode_response_with_error(), decode_response_with_success(), finish_method(), fl_method_channel_invoke_method_finish(), listen_exception_response_cb(), MATCHER_P(), method_call_error_response_cb(), method_call_not_implemented_response_cb(), method_call_success_response_cb(), send_events_events_cb(), TEST(), and test_method_codec_decode_response().
GBytes* fl_method_codec_encode_error_envelope | ( | FlMethodCodec * | self, |
const gchar * | code, | ||
const gchar * | message, | ||
FlValue * | details, | ||
GError ** | error | ||
) |
Definition at line 50 of file fl_method_codec.cc.
References error.
Referenced by encode_error_envelope(), fl_event_channel_send_error(), fl_method_channel_respond(), message_cb(), and TEST().
GBytes* fl_method_codec_encode_method_call | ( | FlMethodCodec * | self, |
const gchar * | name, | ||
FlValue * | args, | ||
GError ** | error | ||
) |
Definition at line 16 of file fl_method_codec.cc.
Referenced by encode_method_call(), fl_method_channel_invoke_method(), fl_test_application_activate(), resize_channel(), set_warns_on_channel_overflow(), TEST(), and test_method_codec_encode_method_call().
GBytes* fl_method_codec_encode_success_envelope | ( | FlMethodCodec * | codec, |
FlValue * | result, | ||
GError ** | error | ||
) |
fl_method_codec_encode_success_envelope: @codec: an #FlMethodCodec.
Encodes a successful response to a method call.
Returns: (transfer full): a binary encoding of this response or NULL if not able to encode.
Definition at line 41 of file fl_method_codec.cc.
Referenced by encode_success_envelope(), fl_event_channel_send(), fl_method_channel_respond(), message_cb(), and TEST().
|
static |
Definition at line 14 of file fl_method_codec.cc.