From 1a54aed0ee55fdce0b28bc54c75cbf11a40db992 Mon Sep 17 00:00:00 2001
From: wind <7wind@7iwind.cn>
Date: Sat, 25 Jul 2026 23:12:31 +0800
Subject: [PATCH] feat: init project
---
.idea/.gitignore | 10 ++++++++++
.idea/DataRouter.iml | 2 ++
.idea/editor.xml | 6 ++++++
.idea/misc.xml | 7 +++++++
.idea/modules.xml | 8 ++++++++
.idea/vcs.xml | 6 ++++++
CMakeLists.txt | 6 ++++++
library.c | 7 +++++++
library.h | 6 ++++++
9 files changed, 58 insertions(+)
create mode 100644 .idea/.gitignore
create mode 100644 .idea/DataRouter.iml
create mode 100644 .idea/editor.xml
create mode 100644 .idea/misc.xml
create mode 100644 .idea/modules.xml
create mode 100644 .idea/vcs.xml
create mode 100644 CMakeLists.txt
create mode 100644 library.c
create mode 100644 library.h
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..f6906f2
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,10 @@
+# 默认忽略的文件
+/shelf/
+/workspace.xml
+# 基于编辑器的 HTTP 客户端请求
+/httpRequests/
+# 已忽略包含查询文件的默认文件夹
+/queries/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/.idea/DataRouter.iml b/.idea/DataRouter.iml
new file mode 100644
index 0000000..4c94235
--- /dev/null
+++ b/.idea/DataRouter.iml
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/.idea/editor.xml b/.idea/editor.xml
new file mode 100644
index 0000000..f81c5eb
--- /dev/null
+++ b/.idea/editor.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..0b76fe5
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..eb4077f
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..31dd62d
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,6 @@
+cmake_minimum_required(VERSION 4.3)
+project(DataRouter C)
+
+set(CMAKE_C_STANDARD 11)
+
+add_library(DataRouter STATIC library.c)
diff --git a/library.c b/library.c
new file mode 100644
index 0000000..f431745
--- /dev/null
+++ b/library.c
@@ -0,0 +1,7 @@
+#include "library.h"
+
+#include
+
+void hello(void) {
+ printf("Hello, World!\n");
+}
diff --git a/library.h b/library.h
new file mode 100644
index 0000000..f16761c
--- /dev/null
+++ b/library.h
@@ -0,0 +1,6 @@
+#ifndef DATAROUTER_LIBRARY_H
+#define DATAROUTER_LIBRARY_H
+
+void hello(void);
+
+#endif // DATAROUTER_LIBRARY_H