Flutter Engine
fl_standard_method_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_METHOD_CODEC_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_STANDARD_METHOD_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_method_codec.h"
13 
14 G_BEGIN_DECLS
15 
16 G_DECLARE_FINAL_TYPE(FlStandardMethodCodec,
17  fl_standard_method_codec,
18  FL,
19  STANDARD_METHOD_CODEC,
20  FlMethodCodec)
21 
22 /**
23  * FlStandardMethodCodec:
24  *
25  * #FlStandardMethodCodec is an #FlMethodCodec that implements method calls
26  * using the Flutter standard message encoding. It should be used with a
27  * #FlMethodChannel.
28  *
29  * #FlStandardMethodCodec matches the StandardMethodCodec class in the Flutter
30  * services library.
31  */
32 
33 /**
34  * fl_standard_method_codec_new:
35  *
36  * Creates an #FlStandardMethodCodec.
37  *
38  * Returns: a new #FlStandardMethodCodec.
39  */
40 FlStandardMethodCodec* fl_standard_method_codec_new();
41 
42 G_END_DECLS
43 
44 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_STANDARD_METHOD_CODEC_H_
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlStandardMethodCodec, fl_standard_method_codec, FL, STANDARD_METHOD_CODEC, FlMethodCodec) FlStandardMethodCodec *fl_standard_method_codec_new()
G_MODULE_EXPORT FlStandardMethodCodec * fl_standard_method_codec_new()
G_BEGIN_DECLS FL