X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9cc88bb9ed0a8974e524f67198984a1e03cb00b0..6a42d0b4d34e2b9777922430ef85646dabbefa20:/examples/msg/kademlia/task.h diff --git a/examples/msg/kademlia/task.h b/examples/msg/kademlia/task.h index 6b0a44eaec..251a1e1311 100644 --- a/examples/msg/kademlia/task.h +++ b/examples/msg/kademlia/task.h @@ -1,13 +1,14 @@ -/* Copyright (c) 2012. The SimGrid Team. +/* Copyright (c) 2012, 2014-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 _MSG_KADEMLIA_EXAMPLES_TASK #define _MSG_KADEMLIA_EXAMPLES_TASK #include "common.h" #include "node.h" -#include "msg/msg.h" +#include "simgrid/msg.h" /** * Types of tasks exchanged */ @@ -25,20 +26,27 @@ typedef enum { */ typedef struct s_task_data { e_task_type_t type; - unsigned int sender_id; //Id of the guy who sent the task - unsigned int destination_id; //Id we are trying to find, if needed. - answer_t answer; //Answer to the request made, if needed. - char *answer_to; // mailbox to send the answer to (if not an answer). + unsigned int sender_id; //Id of the guy who sent the task + unsigned int destination_id; //Id we are trying to find, if needed. + answer_t answer; //Answer to the request made, if needed. + char *answer_to; // mailbox to send the answer to (if not an answer). const char *issuer_host_name; // used for logging } s_task_data_t, *task_data_t; //Task handling functions -msg_task_t task_new_find_node(unsigned int sender_id, unsigned int destination_id, char *mailbox, const char *hostname); +msg_task_t task_new_find_node(unsigned int sender_id, + unsigned int destination_id, char *mailbox, + const char *hostname); -msg_task_t task_new_find_node_answer(unsigned int sender_id, unsigned int destination_id, answer_t answer, char *mailbox, const char *hostname); +msg_task_t task_new_find_node_answer(unsigned int sender_id, + unsigned int destination_id, + answer_t answer, char *mailbox, + const char *hostname); -msg_task_t task_new_ping(unsigned int sender_id, char *mailbox, const char *hostname); -msg_task_t task_new_ping_answer(unsigned int sender_id, char *mailbox, const char *hostname); +msg_task_t task_new_ping(unsigned int sender_id, char *mailbox, + const char *hostname); +msg_task_t task_new_ping_answer(unsigned int sender_id, char *mailbox, + const char *hostname); void task_free(msg_task_t task); void task_free_v(void *task); - #endif /* _MSG_KADEMLIA_EXAMPLES_TASK */ +#endif /* _MSG_KADEMLIA_EXAMPLES_TASK */