bg_plugin_handle_t Struct Reference
[Plugin registry]

Handle of a loaded plugin. More...

#include <pluginregistry.h>


Data Fields

void * dll_handle
 dll_handle (don't touch)
pthread_mutex_t mutex
 dll_handle (don't touch, use bg_plugin_lock and bg_plugin_unlock)
int refcount
 Reference counter (don't touch, use bg_plugin_ref and bg_plugin_unref).
bg_plugin_registry_tplugin_reg
 The plugin registry, from which the plugin was loaded.
bg_plugin_common_tplugin
 Common structure, cast this to the derived type (e.g. bg_input_plugin_t).
const bg_plugin_info_tinfo
 Info about this plugin.
void * priv
 Private handle, passed as the first argument to most plugin functions.
char * location
 Applications can save the argument of an open call here.


Detailed Description

Handle of a loaded plugin.

When you load a plugin, the shared module will be loaded. Then, the create method of the plugin is called. The pointer obtained from the create method is stored in the priv member of the returned handle.


Field Documentation

void* bg_plugin_handle_t::dll_handle

dll_handle (don't touch)

pthread_mutex_t bg_plugin_handle_t::mutex

dll_handle (don't touch, use bg_plugin_lock and bg_plugin_unlock)

int bg_plugin_handle_t::refcount

Reference counter (don't touch, use bg_plugin_ref and bg_plugin_unref).

bg_plugin_registry_t* bg_plugin_handle_t::plugin_reg

The plugin registry, from which the plugin was loaded.

bg_plugin_common_t* bg_plugin_handle_t::plugin

Common structure, cast this to the derived type (e.g. bg_input_plugin_t).

const bg_plugin_info_t* bg_plugin_handle_t::info

Info about this plugin.

void* bg_plugin_handle_t::priv

Private handle, passed as the first argument to most plugin functions.

char* bg_plugin_handle_t::location

Applications can save the argument of an open call here.


The documentation for this struct was generated from the following file:
Generated on Wed Jan 9 19:32:52 2008 for gmerlin by  doxygen 1.5.3