From a8f2d359b53756485f850012eb5f21b91932686e Mon Sep 17 00:00:00 2001 From: Kethan Vegunta Date: Thu, 10 Apr 2025 10:47:21 -0700 Subject: [PATCH] feat: add ability to have user provided context in hackrf_sweep_state --- include/hackrf_sweeper.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/hackrf_sweeper.h b/include/hackrf_sweeper.h index 767f55a..e20bf86 100644 --- a/include/hackrf_sweeper.h +++ b/include/hackrf_sweeper.h @@ -302,6 +302,11 @@ typedef int (*hackrf_sweep_mutex_unlock_fn)(void *mutex); struct hackrf_sweep_state { + /** + * User provided context. + */ + void *user_ctx; + /** * Maximum number of sweeps (if non-zero) for a finite run */