-static smx_context_t
- smx_ctx_ruby_create_context(xbt_main_func_t code,int argc,char** argv,
- void_f_pvoid_t cleanup_func,void* cleanup_arg)
-{
-
- smx_ctx_ruby_t context = xbt_new0(s_smx_ctx_ruby_t,1);
-
- /*if the user provided a function for the process , then use it
- Otherwise it's the context for maestro */
- if( code )
- {
- context->cleanup_func = cleanup_func;
- context->cleanup_arg = cleanup_arg;
- context->process = (VALUE)code;
-
- #ifdef MY_DEBUG
- printf("smx_ctx_ruby_create_context...Done\n");
- #endif
-
- }
- return (smx_context_t) context;
-
-}
-
-static void smx_ctx_ruby_free(smx_context_t context)
+static smx_context_t
+smx_ctx_ruby_create_context(xbt_main_func_t code, int argc, char **argv,
+ void_pfn_smxprocess_t cleanup_func, void *data)