aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authort-kmt123 <tkmt35137@gmail.com>2021-07-06 14:16:38 +0900
committert-kmt123 <tkmt35137@gmail.com>2021-07-06 14:16:38 +0900
commitda8e71cb35ed0ba62f39bf2abcb5055016874b03 (patch)
treea27ccef00546e9d0ea7d707b8c134ed0e1844e80
parent6fabaa833bfdd048d102e7462ea5c6f17f8cea67 (diff)
rename libipc
-rw-r--r--CMakeLists.txt8
-rw-r--r--cluster_ipc.pc.in (renamed from ipc.pc.in)2
-rw-r--r--include/cluster_ipc.h (renamed from include/ipc.h)0
-rw-r--r--ipc_unit_test/ipc_unit_test_client.c2
-rw-r--r--ipc_unit_test/ipc_unit_test_common.c2
-rw-r--r--ipc_unit_test/ipc_unit_test_server.c2
-rw-r--r--src/CMakeLists.txt2
-rw-r--r--src/ipc_client.c2
-rw-r--r--src/ipc_internal.c2
-rw-r--r--src/ipc_server.c2
-rw-r--r--src/ipc_usage_info_table.c2
11 files changed, 13 insertions, 13 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a09fff5..6db6abb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,7 +1,7 @@
# Copyright (c) 2021, Nippon Seiki Co., Ltd.
# SPDX-License-Identifier: Apache-2.0
-project(ipc C)
+project(cluster_ipc C)
cmake_minimum_required(VERSION 2.8)
@@ -20,7 +20,7 @@ include(GNUInstallDirs)
set(IPC_LIBRARY_VERSION "1.0.0")
# Name of library API
-set(TARGET_NAME ipc)
+set(TARGET_NAME cluster_ipc)
# Name of IC-service server API
#set(SERVER_API_NAME cluster_server_api)
@@ -29,7 +29,7 @@ set(TARGET_NAME ipc)
add_subdirectory(src)
add_subdirectory(ipc_unit_test)
-configure_file(ipc.pc.in ipc.pc @ONLY)
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ipc.pc
+configure_file(cluster_ipc.pc.in cluster_ipc.pc @ONLY)
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cluster_ipc.pc
DESTINATION
${CMAKE_INSTALL_LIBDIR}/pkgconfig)
diff --git a/ipc.pc.in b/cluster_ipc.pc.in
index 55c1157..dac9b70 100644
--- a/ipc.pc.in
+++ b/cluster_ipc.pc.in
@@ -7,4 +7,4 @@ Description: client and server ipc library by domain socket with defined shared
Version: @IPC_LIBRARY_VERSION@
Cflags: -I${includedir}
-Libs: -L${libdir} -lipc \ No newline at end of file
+Libs: -L${libdir} -lcluster_ipc
diff --git a/include/ipc.h b/include/cluster_ipc.h
index 64b731c..64b731c 100644
--- a/include/ipc.h
+++ b/include/cluster_ipc.h
diff --git a/ipc_unit_test/ipc_unit_test_client.c b/ipc_unit_test/ipc_unit_test_client.c
index f6e2f5c..cc09d2a 100644
--- a/ipc_unit_test/ipc_unit_test_client.c
+++ b/ipc_unit_test/ipc_unit_test_client.c
@@ -21,7 +21,7 @@
#include <string.h>
#include <stdbool.h>
#include <unistd.h>
-#include <ipc.h>
+#include <cluster_ipc.h>
#include "ipc_unit_test_common.h"
diff --git a/ipc_unit_test/ipc_unit_test_common.c b/ipc_unit_test/ipc_unit_test_common.c
index 05169bf..26d4830 100644
--- a/ipc_unit_test/ipc_unit_test_common.c
+++ b/ipc_unit_test/ipc_unit_test_common.c
@@ -15,7 +15,7 @@
* limitations under the License.
*/
-#include <ipc.h>
+#include <cluster_ipc.h>
#include "ipc_unit_test_common.h"
IPC_UNIT_TEST_DATA_LIST IcServiceList[] = {
diff --git a/ipc_unit_test/ipc_unit_test_server.c b/ipc_unit_test/ipc_unit_test_server.c
index f627dca..807db2c 100644
--- a/ipc_unit_test/ipc_unit_test_server.c
+++ b/ipc_unit_test/ipc_unit_test_server.c
@@ -21,7 +21,7 @@
#include <unistd.h>
#include <stdbool.h>
-#include <ipc.h>
+#include <cluster_ipc.h>
#include "ipc_unit_test_common.h"
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 45088cb..dc9366a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -34,4 +34,4 @@ install(
LIBRARY DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}
# PUBLIC_HEADER DESTINATION include
)
-install(FILES ../include/ipc.h ../include/ipc_protocol.h DESTINATION include)
+install(FILES ../include/cluster_ipc.h ../include/ipc_protocol.h DESTINATION include)
diff --git a/src/ipc_client.c b/src/ipc_client.c
index 7e404e7..1a4a031 100644
--- a/src/ipc_client.c
+++ b/src/ipc_client.c
@@ -26,7 +26,7 @@
#include <sys/epoll.h>
#include <errno.h>
-#include <ipc.h>
+#include <cluster_ipc.h>
#include "ipc_internal.h"
#define IPC_CLIENT_USAGE_MAX_NUM (4)
diff --git a/src/ipc_internal.c b/src/ipc_internal.c
index 1958655..7a37866 100644
--- a/src/ipc_internal.c
+++ b/src/ipc_internal.c
@@ -20,7 +20,7 @@
#include <stdlib.h>
#include <sys/socket.h>
-#include <ipc.h>
+#include <cluster_ipc.h>
#include "ipc_internal.h"
int ipcCreateDomainName(IPC_USAGE_TYPE_E usageType, char *pOutName, int *pSize)
diff --git a/src/ipc_server.c b/src/ipc_server.c
index 74eb7bc..301409c 100644
--- a/src/ipc_server.c
+++ b/src/ipc_server.c
@@ -27,7 +27,7 @@
#include <sys/epoll.h>
#include <pthread.h>
-#include <ipc.h>
+#include <cluster_ipc.h>
#include "ipc_internal.h"
diff --git a/src/ipc_usage_info_table.c b/src/ipc_usage_info_table.c
index e127fde..a1f0939 100644
--- a/src/ipc_usage_info_table.c
+++ b/src/ipc_usage_info_table.c
@@ -16,7 +16,7 @@
*/
-#include <ipc.h>
+#include <cluster_ipc.h>
#include "ipc_internal.h"
#define DEFINE_OFFSET_SIZE(struct_name, member, kind) \