forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfl_plugin_registry.cc
More file actions
21 lines (15 loc) · 818 Bytes
/
fl_plugin_registry.cc
File metadata and controls
21 lines (15 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/shell/platform/linux/public/flutter_linux/fl_plugin_registry.h"
#include <gmodule.h>
G_DEFINE_INTERFACE(FlPluginRegistry, fl_plugin_registry, G_TYPE_OBJECT)
void fl_plugin_registry_default_init(FlPluginRegistryInterface* self) {}
G_MODULE_EXPORT FlPluginRegistrar* fl_plugin_registry_get_registrar_for_plugin(
FlPluginRegistry* self,
const gchar* name) {
g_return_val_if_fail(FL_IS_PLUGIN_REGISTRY(self), nullptr);
g_return_val_if_fail(name != nullptr, nullptr);
return FL_PLUGIN_REGISTRY_GET_IFACE(self)->get_registrar_for_plugin(self,
name);
}