Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
fl_string_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_PUBLIC_FLUTTER_LINUX_FL_STRING_CODEC_H_
6#define FLUTTER_SHELL_PLATFORM_LINUX_PUBLIC_FLUTTER_LINUX_FL_STRING_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 <gmodule.h>
13
14#include "fl_message_codec.h"
15
16G_BEGIN_DECLS
17
18G_MODULE_EXPORT
20 fl_string_codec,
21 FL,
22 STRING_CODEC,
23 FlMessageCodec)
24
25/**
26 * FlStringCodec:
27 *
28 * #FlStringCodec is an #FlMessageCodec that implements the Flutter string
29 * message encoding. This only encodes and decodes #FlValue of type
30 * #FL_VALUE_TYPE_STRING, other types #FlValues will generate an error during
31 * encoding.
32 *
33 * #FlStringCodec matches the StringCodec class in the Flutter services library.
34 */
35
36/**
37 * fl_string_codec_new:
38 *
39 * Creates an #FlStringCodec.
40 *
41 * Returns: a new #FlStringCodec.
42 */
43FlStringCodec* fl_string_codec_new();
44
45G_END_DECLS
46
47#endif // FLUTTER_SHELL_PLATFORM_LINUX_PUBLIC_FLUTTER_LINUX_FL_STRING_CODEC_H_
G_MODULE_EXPORT FlStringCodec * fl_string_codec_new()
G_BEGIN_DECLS G_MODULE_EXPORT G_DECLARE_FINAL_TYPE(FlStringCodec, fl_string_codec, FL, STRING_CODEC, FlMessageCodec) FlStringCodec *fl_string_codec_new()