From 4ad4f24f18cf7d0af22ca885baebc6a3eb37e7d0 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期四, 20 五月 2021 10:08:40 +0800
Subject: [PATCH] rename socket.h/cpp to shm_socket.h/cpp.

---
 src/shm_socket.cpp |    4 ++--
 src/shm_socket.h   |    8 ++++----
 src/topic_node.h   |    2 +-
 box/center.h       |    2 +-
 src/defs.cpp       |    2 +-
 src/msg.cpp        |    2 +-
 6 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/box/center.h b/box/center.h
index ebe48b4..ad0ac4f 100644
--- a/box/center.h
+++ b/box/center.h
@@ -18,7 +18,7 @@
 #ifndef CENTER_TM9OUQTG
 #define CENTER_TM9OUQTG
 
-#include "socket.h"
+#include "shm_socket.h"
 #include <functional>
 #include <map>
 #include <memory>
diff --git a/src/defs.cpp b/src/defs.cpp
index 0d9efc1..2715911 100644
--- a/src/defs.cpp
+++ b/src/defs.cpp
@@ -18,7 +18,7 @@
 #include "defs.h"
 #include "msg.h"
 #include "shm_msg_queue.h"
-#include "socket.h"
+#include "shm_socket.h"
 #include <boost/uuid/random_generator.hpp>
 #include <boost/uuid/string_generator.hpp>
 #include <boost/uuid/uuid.hpp>
diff --git a/src/msg.cpp b/src/msg.cpp
index c9ed60a..dca2044 100644
--- a/src/msg.cpp
+++ b/src/msg.cpp
@@ -18,7 +18,7 @@
 #include "msg.h"
 #include "bh_util.h"
 #include "defs.h"
-#include "socket.h"
+#include "shm_socket.h"
 
 namespace bhome_msg
 {
diff --git a/src/socket.cpp b/src/shm_socket.cpp
similarity index 98%
rename from src/socket.cpp
rename to src/shm_socket.cpp
index 19be201..4b687d5 100644
--- a/src/socket.cpp
+++ b/src/shm_socket.cpp
@@ -1,7 +1,7 @@
 /*
  * =====================================================================================
  *
- *       Filename:  socket.cpp
+ *       Filename:  shm_socket.cpp
  *
  *    Description:  
  *
@@ -16,7 +16,7 @@
  * =====================================================================================
  */
 
-#include "socket.h"
+#include "shm_socket.h"
 #include "bh_util.h"
 #include "defs.h"
 #include "msg.h"
diff --git a/src/socket.h b/src/shm_socket.h
similarity index 97%
rename from src/socket.h
rename to src/shm_socket.h
index 7557034..02500b2 100644
--- a/src/socket.h
+++ b/src/shm_socket.h
@@ -1,7 +1,7 @@
 /*
  * =====================================================================================
  *
- *       Filename:  socket.h
+ *       Filename:  shm_socket.h
  *
  *    Description:  
  *
@@ -16,8 +16,8 @@
  * =====================================================================================
  */
 
-#ifndef SOCKET_GWTJHBPO
-#define SOCKET_GWTJHBPO
+#ifndef SHM_SOCKET_GWTJHBPO
+#define SHM_SOCKET_GWTJHBPO
 
 #include "bh_util.h"
 #include "defs.h"
@@ -196,4 +196,4 @@
 	std::atomic<int> alloc_id_;
 };
 
-#endif // end of include guard: SOCKET_GWTJHBPO
+#endif // end of include guard: SHM_SOCKET_GWTJHBPO
diff --git a/src/topic_node.h b/src/topic_node.h
index 1bb3611..dcc9518 100644
--- a/src/topic_node.h
+++ b/src/topic_node.h
@@ -19,7 +19,7 @@
 #define TOPIC_NODE_YVKWA6TF
 
 #include "msg.h"
-#include "socket.h"
+#include "shm_socket.h"
 #include <atomic>
 #include <memory>
 #include <mutex>

--
Gitblit v1.8.0