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_win32.c File Reference

handle_plugin_win32.c File Reference

Include dependency graph for handle_plugin_win32.c:

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

This file implements to loading/de-loading of libRASCH plugins for Windows. (For Linux-implementation see handle_ra_plugin_linux.c)

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

Definition in file handle_plugin_win32.c.


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 257 of file handle_plugin_win32.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 152 of file handle_plugin_win32.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 243 of file handle_plugin_win32.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 39 of file handle_plugin_win32.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:53 2005 for libRASCH by  doxygen 1.4.2