#define ACT_DEBUG(...) \
if (XBT_LOG_ISENABLED(storage_actions, xbt_log_priority_verbose)) { \
char *NAME = xbt_str_join_array(action, " "); \
XBT_DEBUG(__VA_ARGS__); \
xbt_free(NAME); \
} else ((void)0)
static void log_action(const char *const *action, double date)
{
}
}
static msg_file_t get_file_descriptor(
const char *file_name){
char full_name[1024];
}
static sg_size_t parse_size(
const char *
string){
char *endptr;
size = strtoul(string, &endptr, 10);
if (*endptr != '\0')
}
static void action_open(const char *const *action) {
const char *file_name = action[2];
char full_name[1024];
ACT_DEBUG("Entering Open: %s (filename: %s)", NAME, file_name);
}
static void action_read(const char *const *action) {
const char *file_name = action[2];
const char *size_str = action[3];
file = get_file_descriptor(file_name);
ACT_DEBUG("Entering Read: %s (size: %llu)", NAME, size);
}
static void action_close(const char *const *action) {
const char *file_name = action[2];
file = get_file_descriptor(file_name);
ACT_DEBUG("Entering Close: %s (filename: %s)", NAME, file_name);
}
xbt_assert(argc > 3,
"Usage: %s platform_file deployment_file [action_files]\n" "\texample: %s platform.xml deployment.xml actions # if all actions are in the same file\n"
"\texample: %s platform.xml deployment.xml # if actions are in separate files, specified in deployment\n",
argv[0], argv[0], argv[0]);
if (opened_files == NULL)
if (opened_files)
}