mirror of
https://github.com/hpd840321/craftlabs-authorization-sdk.git
synced 2026-06-09 10:00:30 +08:00
feat(cli): add craftlabs-auth-cli with status/activate/check/info/release commands
This commit is contained in:
@@ -143,6 +143,11 @@ pub extern "C" fn craft_heartbeat(handle: *mut CraftContext) -> CraftResult {
|
||||
.map_or_else(fail_result, |_| ok_result())
|
||||
}
|
||||
|
||||
pub fn craft_initialize_with_config(config: &str) -> *mut CraftContext {
|
||||
let c_str = std::ffi::CString::new(config).unwrap_or_default();
|
||||
craft_initialize(c_str.as_ptr())
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn craft_destroy(handle: *mut CraftContext) {
|
||||
if !handle.is_null() {
|
||||
|
||||
Reference in New Issue
Block a user