-/* Copyright (c) 2007, 2009-2014. The SimGrid Team.
+/* Copyright (c) 2007, 2009-2015. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
static void parse_process(sg_platf_process_cbarg_t process)
{
- sg_host_t host = SIMIX_host_get_by_name(process->host);
+ sg_host_t host = sg_host_by_name(process->host);
if (!host)
THROWF(arg_error, 0, "Host '%s' unknown", process->host);
parse_code = SIMIX_get_registered_function(process->function);
XBT_DEBUG("Starting Process %s(%s) right now", process->argv[0], sg_host_name(host));
if (simix_global->create_process_function)
- simix_global->create_process_function(&process_created,
+ process_created = simix_global->create_process_function(
(char*)(process->argv)[0],
parse_code,
NULL,
current_property_set,
auto_restart, NULL);
else
- simcall_process_create(&process_created, (char*)(process->argv)[0], parse_code, NULL, sg_host_name(host), kill_time, process->argc,
+ process_created = simcall_process_create((char*)(process->argv)[0], parse_code, NULL, sg_host_name(host), kill_time, process->argc,
(char**)process->argv, current_property_set,auto_restart);
/* verify if process has been created (won't be the case if the host is currently dead, but that's fine) */
{
s_sg_platf_process_cbarg_t process = SG_PLATF_PROCESS_INITIALIZER;
- sg_host_t host = SIMIX_host_get_by_name(process_host);
+ sg_host_t host = sg_host_by_name(process_host);
if (!host)
THROWF(arg_error, 0, "Host '%s' unknown", process_host);
process.host = sg_host_name(host);