Skip to content

Commit 85e3c3a

Browse files
committed
Add stub implementation for request_cluster_scan and remove_cluster_scan_cursor in lib.rs.
Signed-off-by: currantw <[email protected]>
1 parent a0a7dbf commit 85e3c3a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

rust/src/lib.rs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,3 +438,30 @@ pub unsafe extern "C" fn init(level: Option<Level>, file_name: *const c_char) ->
438438
let logger_level = logger_core::init(level.map(|level| level.into()), file_name_as_str);
439439
logger_level.into()
440440
}
441+
442+
/// Stub implementation for cluster scan request.
443+
///
444+
/// # Safety
445+
/// * All pointer parameters must be valid for the duration of the call.
446+
#[unsafe(no_mangle)]
447+
pub unsafe extern "C-unwind" fn request_cluster_scan(
448+
_client: *const c_void,
449+
_index: usize,
450+
_cursor: *const c_char,
451+
_arg_count: u64,
452+
_args: *const usize,
453+
_arg_lengths: *const u64,
454+
) {
455+
// Stub implementation - always fails
456+
panic!("request_cluster_scan not implemented");
457+
}
458+
459+
/// Stub implementation for removing cluster scan cursor.
460+
///
461+
/// # Safety
462+
/// * `cursor_id` must point to a valid C string.
463+
#[unsafe(no_mangle)]
464+
pub unsafe extern "C" fn remove_cluster_scan_cursor(_cursor_id: *const c_char) {
465+
// Stub implementation - always fails
466+
panic!("remove_cluster_scan_cursor not implemented");
467+
}

0 commit comments

Comments
 (0)