-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathplugin_bridge.hpp
More file actions
38 lines (31 loc) · 1.02 KB
/
plugin_bridge.hpp
File metadata and controls
38 lines (31 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* This program and the accompanying materials are made available under the terms of the
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v20.html
*
* SPDX-License-Identifier: EPL-2.0
*
* Copyright Contributors to the Zowe Project.
*
*/
#ifndef PLUGIN_BRIDGE_HPP
#define PLUGIN_BRIDGE_HPP
#include "../extend/plugin.hpp"
#include "../parser.hpp"
// Forward declarations
class CommandDispatcher;
namespace plugin
{
/**
* @brief Register all plugin commands to the middleware dispatcher
*
* This function takes a PluginManager that has already loaded plugins,
* and registers all their commands to the middleware CommandDispatcher
* as RPC methods using dot notation (e.g., "sample.hello").
*
* @param pm The PluginManager containing loaded plugins
* @param dispatcher The CommandDispatcher to register commands to
*/
void register_commands_with_server(plugin::PluginManager &pm, CommandDispatcher &dispatcher);
} // namespace plugin
#endif