| Flutter Windows Embedder |

flutter_plugin_registrar.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_COMMON_PUBLIC_FLUTTER_PLUGIN_REGISTRAR_H_
6 #define FLUTTER_SHELL_PLATFORM_COMMON_PUBLIC_FLUTTER_PLUGIN_REGISTRAR_H_
7
8 #include <stddef.h>
9 #include <stdint.h>
10
11 #include "flutter_export.h"
12 #include "flutter_messenger.h"
13 #include "flutter_texture_registrar.h"
14
15 #if defined(__cplusplus)
16 extern "C" {
17 #endif // defined(__cplusplus)
18
19 // Opaque reference to a plugin registrar.
20 typedef struct FlutterDesktopPluginRegistrar* FlutterDesktopPluginRegistrarRef;
21
22 // Function pointer type for registrar destruction callback.
23 typedef void (*FlutterDesktopOnPluginRegistrarDestroyed)(
24 FlutterDesktopPluginRegistrarRef);
25
26 // Returns the engine messenger associated with this registrar.
27 FLUTTER_EXPORT FlutterDesktopMessengerRef
28 FlutterDesktopPluginRegistrarGetMessenger(
29 FlutterDesktopPluginRegistrarRef registrar);
30
31 // Returns the texture registrar associated with this registrar.
32 FLUTTER_EXPORT FlutterDesktopTextureRegistrarRef
33 FlutterDesktopRegistrarGetTextureRegistrar(
34 FlutterDesktopPluginRegistrarRef registrar);
35
36 // Registers a callback to be called when the plugin registrar is destroyed.
37 FLUTTER_EXPORT void FlutterDesktopPluginRegistrarSetDestructionHandler(
38 FlutterDesktopPluginRegistrarRef registrar,
39 FlutterDesktopOnPluginRegistrarDestroyed callback);
40
41 #if defined(__cplusplus)
42 } // extern "C"
43 #endif
44
45 #endif // FLUTTER_SHELL_PLATFORM_COMMON_PUBLIC_FLUTTER_PLUGIN_REGISTRAR_H_
flutter_export.h
FLUTTER_EXPORT
#define FLUTTER_EXPORT
Definition: flutter_export.h:23
flutter_messenger.h
FlutterDesktopMessengerRef
struct FlutterDesktopMessenger * FlutterDesktopMessengerRef
Definition: flutter_messenger.h:19
FlutterDesktopRegistrarGetTextureRegistrar
FLUTTER_EXPORT FlutterDesktopTextureRegistrarRef FlutterDesktopRegistrarGetTextureRegistrar(FlutterDesktopPluginRegistrarRef registrar)
Definition: flutter_windows.cc:429
FlutterDesktopPluginRegistrarRef
struct FlutterDesktopPluginRegistrar * FlutterDesktopPluginRegistrarRef
Definition: flutter_plugin_registrar.h:20
FlutterDesktopOnPluginRegistrarDestroyed
void(* FlutterDesktopOnPluginRegistrarDestroyed)(FlutterDesktopPluginRegistrarRef)
Definition: flutter_plugin_registrar.h:23
FlutterDesktopPluginRegistrarSetDestructionHandler
FLUTTER_EXPORT void FlutterDesktopPluginRegistrarSetDestructionHandler(FlutterDesktopPluginRegistrarRef registrar, FlutterDesktopOnPluginRegistrarDestroyed callback)
Definition: flutter_windows.cc:349
FlutterDesktopPluginRegistrarGetMessenger
FLUTTER_EXPORT FlutterDesktopMessengerRef FlutterDesktopPluginRegistrarGetMessenger(FlutterDesktopPluginRegistrarRef registrar)
Definition: flutter_windows.cc:344
flutter_texture_registrar.h
FlutterDesktopTextureRegistrarRef
struct FlutterDesktopTextureRegistrar * FlutterDesktopTextureRegistrarRef
Definition: flutter_texture_registrar.h:19
callback
FlutterDesktopBinaryReply callback
Definition: flutter_windows_view_unittests.cc:52
FlutterDesktopPluginRegistrar
Definition: window_state.h:23