X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9f3d937b490d869f1f6e5baa007a65a0ad30205b..f1eff61a53a6a41c1c9b233d7eecf9149ca0f5b4:/src/surf/surf_model.c diff --git a/src/surf/surf_model.c b/src/surf/surf_model.c index 02104c2aaf..77134100b1 100644 --- a/src/surf/surf_model.c +++ b/src/surf/surf_model.c @@ -1,5 +1,6 @@ -/* Copyright (c) 2009 The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2009, 2010. The SimGrid Team. + * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -35,10 +36,17 @@ surf_model_t surf_model_init(void) xbt_swag_new(xbt_swag_offset(action, state_hookup)); model->resource_set = xbt_dict_new(); - model->action_free = int_die_impossible_paction; + model->action_unref = int_die_impossible_paction; model->action_cancel = void_die_impossible_paction; model->action_recycle = void_die_impossible_paction; + model->action_state_get = surf_action_state_get; + model->action_state_set = surf_action_state_set; + model->action_get_start_time = surf_action_get_start_time; + model->action_get_finish_time = surf_action_get_finish_time; + model->action_data_set = surf_action_data_set; + + return model; } /** @brief finalize common datastructures to all models */