Flutter Engine
fl_standard_message_codec.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_STANDARD_MESSAGE_CODEC_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_STANDARD_MESSAGE_CODEC_H_
7 
8 #if !defined(__FLUTTER_LINUX_INSIDE__) && !defined(FLUTTER_LINUX_COMPILATION)
9 #error "Only <flutter_linux/flutter_linux.h> can be included directly."
10 #endif
11 
12 #include "fl_message_codec.h"
13 
14 G_BEGIN_DECLS
15 
16 G_DECLARE_FINAL_TYPE(FlStandardMessageCodec,
17  fl_standard_message_codec,
18  FL,
19  STANDARD_CODEC,
20  FlMessageCodec)
21 
22 /**
23  * FlStandardMessageCodec:
24  *
25  * #FlStandardMessageCodec is an #FlMessageCodec that implements the Flutter
26  * standard message encoding. This codec encodes and decodes #FlValue of type
27  * #FL_VALUE_TYPE_NULL, #FL_VALUE_TYPE_BOOL, #FL_VALUE_TYPE_INT,
28  * #FL_VALUE_TYPE_FLOAT, #FL_VALUE_TYPE_STRING, #FL_VALUE_TYPE_UINT8_LIST,
29  * #FL_VALUE_TYPE_INT32_LIST, #FL_VALUE_TYPE_INT64_LIST,
30  * #FL_VALUE_TYPE_FLOAT_LIST, #FL_VALUE_TYPE_LIST, and #FL_VALUE_TYPE_MAP.
31  *
32  * #FlStandardMessageCodec matches the StandardCodec class in the Flutter
33  * services library.
34  */
35 
36 /*
37  * fl_standard_message_codec_new:
38  *
39  * Creates an #FlStandardMessageCodec.
40  *
41  * Returns: a new #FlStandardMessageCodec.
42  */
43 FlStandardMessageCodec* fl_standard_message_codec_new();
44 
45 G_END_DECLS
46 
47 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_STANDARD_MESSAGE_CODEC_H_
G_MODULE_EXPORT FlStandardMessageCodec * fl_standard_message_codec_new()
G_BEGIN_DECLS FL
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlStandardMessageCodec, fl_standard_message_codec, FL, STANDARD_CODEC, FlMessageCodec) FlStandardMessageCodec *fl_standard_message_codec_new()