Ocean
interaction/javascript/Plugin.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
6  */
7 
8 #ifndef META_OCEAN_INTERACTION_JS_PLUGIN_H
9 #define META_OCEAN_INTERACTION_JS_PLUGIN_H
10 
12 
13 #if defined(OCEAN_RUNTIME_SHARED)
14 
15 /**
16  * Tries to load the plugin and initializes all internal 3rd party libraries.
17  * Make sure that the plugin will be loaded only once!
18  * @return True, if succeeded
19  * @see pluginUnload(), pluginVersion().
20  * @ingroup interactionjs
21  */
22 extern "C" OCEAN_INTERACTION_JS_EXPORT bool pluginLoad();
23 
24 /**
25  * Tries to unload the plugin and all internal resources of 3rd party libraries.
26  * Make sure that all resources of this plugin has been released before!
27  * @return True, if succeeded
28  * @see pluginLoad().
29  * @ingroup interactionjs
30  */
31 extern "C" OCEAN_INTERACTION_JS_EXPORT bool pluginUnload();
32 
33 /**
34  * Returns informations about the used 3rd party libraries.
35  * @return Name and version of the 3rd party libraries
36  * @ingroup interactionjs
37  */
38 extern "C" OCEAN_INTERACTION_JS_EXPORT const char* pluginVersion();
39 
40 #endif // #if defined(OCEAN_RUNTIME_SHARED)
41 
42 #endif // META_OCEAN_INTERACTION_JS_PLUGIN_H
OCEAN_INTERACTION_JS_EXPORT bool pluginLoad()
Tries to load the plugin and initializes all internal 3rd party libraries.
OCEAN_INTERACTION_JS_EXPORT const char * pluginVersion()
Returns informations about the used 3rd party libraries.
OCEAN_INTERACTION_JS_EXPORT bool pluginUnload()
Tries to unload the plugin and all internal resources of 3rd party libraries.