-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
79 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/// Empty placeholders where users can add their logic | ||
use crate::xap::hid::{XAPClient, XAPDevice}; | ||
|
||
use uuid::Uuid; | ||
use xap_specs::protocol::BroadcastRaw; | ||
|
||
// Storage for user data | ||
#[derive(Default)] | ||
pub struct UserData {} | ||
|
||
pub(crate) fn pre_init() {} | ||
|
||
pub(crate) fn on_close(_client: &XAPClient, _user_data: &mut UserData) {} | ||
|
||
pub(crate) fn new_device(_device: &XAPDevice, _user_data: &mut UserData) {} | ||
|
||
pub(crate) fn removed_device(_id: &Uuid, _user_data: &mut UserData) {} | ||
|
||
pub(crate) fn broadcast_callback( | ||
_broadcast: BroadcastRaw, | ||
_device: &XAPDevice, | ||
_user_data: &mut UserData, | ||
) { | ||
} | ||
|
||
pub(crate) fn housekeeping(_client: &XAPClient, _user_data: &mut UserData) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
pub mod constants; | ||
pub mod error; | ||
pub mod protocol; | ||
pub mod error; | ||
pub mod token; | ||
pub mod request; | ||
pub mod response; | ||
pub mod token; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters