X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/92c7b1c13b9caae6c737701f21276a01a75c68e1..aed6c0fceb5d7963006a105350770507030878ba:/examples/msg/chainsend/messages.h diff --git a/examples/msg/chainsend/messages.h b/examples/msg/chainsend/messages.h deleted file mode 100644 index e90bf626fc..0000000000 --- a/examples/msg/chainsend/messages.h +++ /dev/null @@ -1,38 +0,0 @@ -/* 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 MESSAGES_H -#define MESSAGES_H - -#include "simgrid/msg.h" - -#define MESSAGE_BUILD_CHAIN_SIZE 40 -#define MESSAGE_SEND_DATA_HEADER_SIZE 1 -#define MESSAGE_END_DATA_SIZE 1 - -/* Messages enum */ -typedef enum { - MESSAGE_BUILD_CHAIN = 0, - MESSAGE_SEND_DATA -} e_message_type; - -/* Message struct */ -typedef struct s_message { - e_message_type type; - 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); -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 /* MESSAGES_H */