Flutter Engine
The Flutter Engine
fl_plugin_registry.cc
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#include "flutter/shell/platform/linux/public/flutter_linux/fl_plugin_registry.h"
6
7#include <gmodule.h>
8
9G_DEFINE_INTERFACE(FlPluginRegistry, fl_plugin_registry, G_TYPE_OBJECT)
10
11void fl_plugin_registry_default_init(FlPluginRegistryInterface* self) {}
12
13G_MODULE_EXPORT FlPluginRegistrar* fl_plugin_registry_get_registrar_for_plugin(
14 FlPluginRegistry* self,
15 const gchar* name) {
16 g_return_val_if_fail(FL_IS_PLUGIN_REGISTRY(self), nullptr);
17 g_return_val_if_fail(name != nullptr, nullptr);
18
19 return FL_PLUGIN_REGISTRY_GET_IFACE(self)->get_registrar_for_plugin(self,
20 name);
21}
G_DEFINE_INTERFACE(FlKeyboardViewDelegate, fl_keyboard_view_delegate, G_TYPE_OBJECT) static void fl_keyboard_view_delegate_default_init(FlKeyboardViewDelegateInterface *iface)
G_MODULE_EXPORT FlPluginRegistrar * fl_plugin_registry_get_registrar_for_plugin(FlPluginRegistry *self, const gchar *name)
void fl_plugin_registry_default_init(FlPluginRegistryInterface *self)
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32