Skip to content

Commit

Permalink
Rename some compilation units for more clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
hoehermann committed Jul 30, 2024
1 parent 34d1b9b commit 4f66aed
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ add_library(${TARGET_NAME} SHARED
"src/c/bridge.c"
"src/c/connection.c"
"src/c/qrcode.c"
"src/c/text.c"
"src/c/send.c"
"src/c/receive_text.c"
"src/c/send_text.c"
"src/c/blist.c"
"src/c/status.c"
"src/c/groups.c"
"src/c/attachment.c"
"src/c/receive_attachment.c"
"src/c/send_file.c"
"src/c/presage.h"
"src/c/hehoe-purple2and3/purple.h"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/rust/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ async fn run<C: presage::store::Store + 'static>(
crate::structs::Cmd::Receive => {
let manager = manager.expect("manager must be loaded");
let mut receiving_manager = manager.clone();
tokio::task::spawn_local(async move { crate::receive_text::receive(&mut receiving_manager, account).await });
tokio::task::spawn_local(async move { crate::receive::receive(&mut receiving_manager, account).await });
Ok(manager)
}

Expand All @@ -164,7 +164,7 @@ async fn run<C: presage::store::Store + 'static>(
}
}
// now do the actual sending and error-handling
match crate::send_text::send(&mut manager, recipient, message.clone(), xfer).await {
match crate::send::send(&mut manager, recipient, message.clone(), xfer).await {
Ok(_) => {
// NOTE: for Spectrum, send-acknowledgements should be PURPLE_MESSAGE_SEND only (without PURPLE_MESSAGE_REMOTE_SEND)
msg.flags = 0x0001; // PURPLE_MESSAGE_SEND
Expand Down
4 changes: 2 additions & 2 deletions src/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ mod bridge;
mod bridge_commands;
mod contacts;
mod core;
mod receive_text;
mod send_text;
mod receive;
mod send;
mod structs;
File renamed without changes.
File renamed without changes.

0 comments on commit 4f66aed

Please sign in to comment.