TUM-Logo

libRASCH

 

Home
 

General

About libRASCH/News
Design
Screen shots
Sample programs (with source code)
License
 

Download

libRASCH
Tools
 

Documentation

User
Developer
 

Resources

Mailing list
Supported Formats
Plugins
Status
Links
 
Contact
About this site
 
Last updated
Tue Mar 27 23:03:52 2007
libRASCH: handle_plugin.h File Reference

handle_plugin.h File Reference

Include dependency graph for handle_plugin.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int read_plugins (struct librasch *ra)
 load plguins
plugin_structdload_plugin (char *file)
 do dynamic loading
int is_plugin_ok (struct plugin_struct *p)
 checks if plugin is ok
void close_plugins (struct plugin_struct *p)
 close a plugin


Detailed Description

The header file contains the prototypes for the functions which loads and unloads the plugins.

Author:
Raphael Schneider (rasch@med1.med.tum.de)

Definition in file handle_plugin.h.


Function Documentation

void close_plugins struct plugin_struct p  ) 
 

Parameters:
<p> pointer to a plugin struct
The function calls the closing functions of a plugin (so plugin can free allocated memory) and unloads the plugin.

Definition at line 220 of file handle_plugin_linux.c.

References plugin_struct::dl, FINI_PLUGIN_FUNC, plugin_struct::info, plugin_struct::next, plugin_infos::opt, ra_free_mem, and plugin_infos::res.

struct plugin_struct* dload_plugin char *  file  ) 
 

Parameters:
<file> filename of a plugin
Load a plugin and call 'load_ra_plugin' function in the loaded plugin.

Definition at line 142 of file handle_plugin_linux.c.

References is_plugin_ok(), LOAD_PLUGIN_FUNC, local_to_utf8_inplace(), MAX_PATH_RA, RA_HANDLE_PLUGIN, and ra_print_debug_infos.

int is_plugin_ok struct plugin_struct p  ) 
 

Parameters:
<p> pointer to a pluign struct
The function checks if a plugin is ok. (Nothing special yet.)

Definition at line 205 of file handle_plugin_linux.c.

int read_plugins struct librasch ra  ) 
 

Parameters:
<ra> pointer to general libRASCH struct
The function loads all plugins found in the plugin-dir (given by the libRASCH configuration). If a plugin loads successfully, the init-function of the plugin is called.

Definition at line 43 of file handle_plugin_linux.c.

References librasch::config, plugin_struct::dl, dload_plugin(), plugin_struct::info, INIT_PLUGIN_FUNC, MAX_PATH_RA, plugin_infos::name, plugin_struct::next, librasch::pl_head, config_info::plugin_dir, plugin_struct::prev, plugin_struct::ra, ra_print_debug_infos, and utf8_to_local().


Generated on Fri May 27 11:32:49 2005 for libRASCH by  doxygen 1.4.2