X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dc3c3416c4cca30fef7c29422d45094687f59893..bd08f5fb99eea01833b2b83730a0732443da8d38:/examples/msg/chainsend/messages.h diff --git a/examples/msg/chainsend/messages.h b/examples/msg/chainsend/messages.h index 7118d29f93..9e976d402c 100644 --- a/examples/msg/chainsend/messages.h +++ b/examples/msg/chainsend/messages.h @@ -1,7 +1,13 @@ +/* Copyright (c) 2012-2015. 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. */ + #ifndef KADEPLOY_MESSAGES_H #define KADEPLOY_MESSAGES_H -#include "msg/msg.h" +#include "simgrid/msg.h" #include "xbt/sysdep.h" #define MESSAGE_BUILD_CHAIN_SIZE 40 @@ -17,19 +23,17 @@ typedef enum { /* Message struct */ typedef struct s_message { e_message_type type; - const char *issuer_hostname; - const char *mailbox; - const char *prev_hostname; - const char *next_hostname; + char *prev_hostname; + char *next_hostname; const char *data_block; unsigned int data_length; unsigned int num_pieces; } s_message_t, *message_t; /* Message methods */ -msg_task_t task_message_new(e_message_type type, unsigned int len, const char *issuer_hostname, const char *mailbox); -msg_task_t task_message_chain_new(const char *issuer_hostname, const char *mailbox, const char* prev, const char *next, const unsigned int num_pieces); -msg_task_t task_message_data_new(const char *issuer_hostname, const char *mailbox, const char *block, unsigned int len); +msg_task_t task_message_new(e_message_type type, unsigned int len); +msg_task_t task_message_chain_new(const char* prev, const char *next, const unsigned int num_pieces); +msg_task_t task_message_data_new(const char *block, unsigned int len); void task_message_delete(void *); #endif /* KADEPLOY_MESSAGES_H */