aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorWeicao-CatilGrass <1992414357@qq.com>2025-04-12 10:16:02 +0800
committerWeicao-CatilGrass <1992414357@qq.com>2025-04-12 10:16:02 +0800
commit4e8d821c905b818698bdaff5c0f2622d14ac74d7 (patch)
tree89cdd31d3fcd076824591ccacd92b270abd6c9ef /core/src
parent75cad9c0e858d298b99689c45fe0689a9a714380 (diff)
调整部分 mod、fn 为 Public
Diffstat (limited to 'core/src')
-rw-r--r--core/src/lib.rs8
-rw-r--r--core/src/phantom_link_server.rs6
2 files changed, 7 insertions, 7 deletions
diff --git a/core/src/lib.rs b/core/src/lib.rs
index 5712070..4988f50 100644
--- a/core/src/lib.rs
+++ b/core/src/lib.rs
@@ -1,4 +1,4 @@
-mod phantom_link_server;
-mod gamepad_layouts;
-mod player;
-mod message; \ No newline at end of file
+pub mod phantom_link_server;
+pub mod gamepad_layouts;
+pub mod player;
+pub mod message; \ No newline at end of file
diff --git a/core/src/phantom_link_server.rs b/core/src/phantom_link_server.rs
index 22ba92a..6dcbdeb 100644
--- a/core/src/phantom_link_server.rs
+++ b/core/src/phantom_link_server.rs
@@ -58,7 +58,7 @@ impl Default for PLServer {
impl PLServer {
/// # 使用 Xbox 布局部署服务器
/// 创建一个使用 Xbox 布局的服务器
- fn xbox_layout() -> Self {
+ pub fn xbox_layout() -> Self {
PLServer {
server_name: "Xbox Layout",
port: 8916,
@@ -69,13 +69,13 @@ impl PLServer {
/// # 开始监听服务器
/// self : 服务器
/// event : 事件
- fn start_listening(&self, event : impl PLServerEvent) {
+ pub fn start_listening(&self, event : impl PLServerEvent) {
}
/// # 停止监听服务器
/// self : 服务器
- fn stop_listening(&self) {
+ pub fn stop_listening(&self) {
}
} \ No newline at end of file