Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rename two more files in msg/app-bittorrent/.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 13 Feb 2018 16:28:02 +0000 (17:28 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 22 Feb 2018 22:26:13 +0000 (23:26 +0100)
teshsuite/msg/CMakeLists.txt
teshsuite/msg/app-bittorrent/bittorrent-messages.c [moved from teshsuite/msg/app-bittorrent/messages.c with 99% similarity]
teshsuite/msg/app-bittorrent/bittorrent-messages.h [moved from teshsuite/msg/app-bittorrent/messages.h with 100% similarity]
teshsuite/msg/app-bittorrent/bittorrent-peer.c

index be85523..a4d898c 100644 (file)
@@ -28,10 +28,10 @@ foreach(x task_destroy_cancel task_listen_from task_progress)
   set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.cpp)
 endforeach()
 
   set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.cpp)
 endforeach()
 
-add_executable       (bittorrent app-bittorrent/bittorrent.c app-bittorrent/messages.c app-bittorrent/bittorrent-peer.c app-bittorrent/tracker.c app-bittorrent/connection.c)
+add_executable       (bittorrent app-bittorrent/bittorrent.c app-bittorrent/bittorrent-messages.c app-bittorrent/bittorrent-peer.c app-bittorrent/tracker.c app-bittorrent/connection.c)
 target_link_libraries(bittorrent simgrid)
 set_target_properties(bittorrent PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/app-bittorrent)
 target_link_libraries(bittorrent simgrid)
 set_target_properties(bittorrent PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/app-bittorrent)
-foreach (file bittorrent connection messages bittorrent-peer tracker)
+foreach (file bittorrent connection bittorrent-messages bittorrent-peer tracker)
   set(teshsuite_src  ${teshsuite_src}  ${CMAKE_CURRENT_SOURCE_DIR}/app-bittorrent/${file}.c  ${CMAKE_CURRENT_SOURCE_DIR}/app-bittorrent/${file}.h)
 endforeach()
 
   set(teshsuite_src  ${teshsuite_src}  ${CMAKE_CURRENT_SOURCE_DIR}/app-bittorrent/${file}.c  ${CMAKE_CURRENT_SOURCE_DIR}/app-bittorrent/${file}.h)
 endforeach()
 
similarity index 99%
rename from teshsuite/msg/app-bittorrent/messages.c
rename to teshsuite/msg/app-bittorrent/bittorrent-messages.c
index 671c289..b735c70 100644 (file)
@@ -4,7 +4,7 @@
 /* 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. */
 
 /* 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. */
 
-#include "messages.h"
+#include "bittorrent-messages.h"
 #include "bittorrent.h"
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(msg_messages, "Messages specific for the message factory");
 #include "bittorrent.h"
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(msg_messages, "Messages specific for the message factory");
index eb85a49..3a6e22f 100644 (file)
@@ -4,8 +4,8 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "bittorrent-peer.h"
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "bittorrent-peer.h"
+#include "bittorrent-messages.h"
 #include "connection.h"
 #include "connection.h"
-#include "messages.h"
 #include "tracker.h"
 #include <limits.h>
 #include <simgrid/msg.h>
 #include "tracker.h"
 #include <limits.h>
 #include <simgrid/msg.h>