summaryrefslogtreecommitdiff
path: root/include/module/ModuleRegistry.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/module/ModuleRegistry.hpp')
-rwxr-xr-xinclude/module/ModuleRegistry.hpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/module/ModuleRegistry.hpp b/include/module/ModuleRegistry.hpp
index d8ee90c..d98c9ba 100755
--- a/include/module/ModuleRegistry.hpp
+++ b/include/module/ModuleRegistry.hpp
@@ -11,13 +11,13 @@ struct ModuleRegistry;
template< typename Interface>
struct ModuleRegistry< Interface > {
std::string name;
- void (*initModule)( );
+ void (*initModule)( void *user_data );
void (*destroyModule)( );
Interface *(*create)( );
void (*destroy)( Interface *obj );
ModuleRegistry( std::string _name,
- void (*_initModule)( ),
+ void (*_initModule)( void *user_data ),
void (*_destroyModule)( ),
Interface *(*_create)( ),
void (*_destroy)( Interface *obj ) )
@@ -31,13 +31,13 @@ struct ModuleRegistry< Interface > {
template< typename Interface, typename P1 >
struct ModuleRegistry< Interface, TYPELIST_1( P1 ) > {
std::string name;
- void (*initModule)( );
+ void (*initModule)( void *user_data );
void (*destroyModule)( );
Interface *(*create)( P1 );
void (*destroy)( Interface *obj );
ModuleRegistry( std::string _name,
- void (*_initModule)( ),
+ void (*_initModule)( void *user_data ),
void (*_destroyModule)( ),
Interface *(*_create)( P1 ),
void (*_destroy)( Interface *obj ) )
@@ -51,13 +51,13 @@ struct ModuleRegistry< Interface, TYPELIST_1( P1 ) > {
template< typename Interface, typename P1, typename P2 >
struct ModuleRegistry< Interface, TYPELIST_2( P1, P2 ) > {
std::string name;
- void (*initModule)( );
+ void (*initModule)( void *user_data );
void (*destroyModule)( );
Interface *(*create)( P1, P2 );
void (*destroy)( Interface *obj );
ModuleRegistry( std::string _name,
- void (*_initModule)( ),
+ void (*_initModule)( void *user_data ),
void (*_destroyModule)( ),
Interface *(*_create)( P1, P2 ),
void (*_destroy)( Interface *obj ) )
@@ -71,13 +71,13 @@ struct ModuleRegistry< Interface, TYPELIST_2( P1, P2 ) > {
template< typename Interface, typename P1, typename P2, typename P3 >
struct ModuleRegistry< Interface, TYPELIST_3( P1, P2, P3 ) > {
std::string name;
- void (*initModule)( );
+ void (*initModule)( void *user_data );
void (*destroyModule)( );
Interface *(*create)( P1, P2, P3 );
void (*destroy)( Interface *obj );
ModuleRegistry( std::string _name,
- void (*_initModule)( ),
+ void (*_initModule)( void *user_data ),
void (*_destroyModule)( ),
Interface *(*_create)( P1, P2, P3 ),
void (*_destroy)( Interface *obj ) )
@@ -91,13 +91,13 @@ struct ModuleRegistry< Interface, TYPELIST_3( P1, P2, P3 ) > {
template< typename Interface, typename P1, typename P2, typename P3, typename P4 >
struct ModuleRegistry< Interface, TYPELIST_4( P1, P2, P3, P4 ) > {
std::string name;
- void (*initModule)( );
+ void (*initModule)( void *user_data );
void (*destroyModule)( );
Interface *(*create)( P1, P2, P3, P4 );
void (*destroy)( Interface *obj );
ModuleRegistry( std::string _name,
- void (*_initModule)( ),
+ void (*_initModule)( void *user_data ),
void (*_destroyModule)( ),
Interface *(*_create)( P1, P2, P3, P4 ),
void (*_destroy)( Interface *obj ) )