NUGU SDK Linux  1.7.6
nugu_plugin.h File Reference
#include <nugu.h>
+ Include dependency graph for nugu_plugin.h:

Go to the source code of this file.

Classes

struct  nugu_plugin_desc
 Plugin description. More...
 

Macros

#define NUGU_PLUGIN_DEFINE(p_name, p_prio, p_ver, p_load, p_unload, p_init)
 Macros to easily define plugins. More...
 
#define NUGU_PLUGIN_PRIORITY_DEFAULT   100
 A value representing default priority.
 
#define NUGU_PLUGIN_PRIORITY_HIGH   10
 A value representing high priority.
 
#define NUGU_PLUGIN_PRIORITY_LOW   900
 A value representing low priority.
 
#define NUGU_PLUGIN_SYMBOL   "nugu_plugin_define_desc"
 Default symbol name for dlsym()
 

Typedefs

typedef struct _plugin NuguPlugin
 Plugin object.
 

Functions

NUGU_API int nugu_plugin_add (NuguPlugin *p)
 Add the plugin to managed list. More...
 
NUGU_API void nugu_plugin_deinitialize (void)
 De-initialize plugin.
 
NUGU_API NuguPluginnugu_plugin_find (const char *name)
 Find a plugin by name in the managed list. More...
 
NUGU_API void nugu_plugin_free (NuguPlugin *p)
 Destroy the plugin. More...
 
NUGU_API void * nugu_plugin_get_data (NuguPlugin *p)
 Get private data from plugin. More...
 
NUGU_API const struct nugu_plugin_descnugu_plugin_get_description (NuguPlugin *p)
 Get the plugin description. More...
 
NUGU_API void * nugu_plugin_get_symbol (NuguPlugin *p, const char *symbol_name)
 Get dlsym result from plugin. More...
 
NUGU_API int nugu_plugin_initialize (void)
 Initialize plugin. More...
 
NUGU_API int nugu_plugin_load_builtin (void)
 Load all built-in plugins. More...
 
NUGU_API int nugu_plugin_load_directory (const char *dirpath)
 Load all plugin files from directory. More...
 
NUGU_API NuguPluginnugu_plugin_new (struct nugu_plugin_desc *desc)
 Create new plugin object. More...
 
NUGU_API NuguPluginnugu_plugin_new_from_file (const char *filepath)
 Create new plugin object from file. More...
 
NUGU_API int nugu_plugin_remove (NuguPlugin *p)
 Remove the plugin to managed list. More...
 
NUGU_API int nugu_plugin_set_data (NuguPlugin *p, void *data)
 Set private data to plugin. More...