diff options
Diffstat (limited to 'tests/modules/testmod4/TestMod4.cpp')
-rwxr-xr-x | tests/modules/testmod4/TestMod4.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/modules/testmod4/TestMod4.cpp b/tests/modules/testmod4/TestMod4.cpp index cd0578e..de8b1b6 100755 --- a/tests/modules/testmod4/TestMod4.cpp +++ b/tests/modules/testmod4/TestMod4.cpp @@ -1,10 +1,12 @@ #include "TestMod4.hpp" #include "Common.hpp" +#include "UserData.hpp" #include <iostream> #include <vector> #include <string> +#include <sstream> using namespace std; @@ -21,9 +23,15 @@ void Derived::hello( ) Common::instance( ).print( "hello world from module" ); } -static void initModule( ) +static void initModule( void *user_data ) { - Common::instance( ).print( "Module 4 initModule called" ); + UserData *data = (UserData *)user_data; + ostringstream ss; + + ss << "Module 4 initModule called with user data: " + << data->version << " " << data->text; + + Common::instance( ).print( ss.str( ) ); } static void destroyModule( ) |