diff --git a/include/toksvc/toksvc.h b/include/toksvc/toksvc.h index b06b73f..b416f4e 100644 --- a/include/toksvc/toksvc.h +++ b/include/toksvc/toksvc.h @@ -205,6 +205,9 @@ toks_api void toks_free_driver_ctx (struct toks_driver_ctx *); toks_api void toks_driver_set_timeout (struct toks_driver_ctx *, int64_t millisecs); toks_api void toks_driver_unset_timeout (struct toks_driver_ctx *); +toks_api void toks_driver_set_refstr (struct toks_driver_ctx *, const char *); +toks_api void toks_driver_unset_refstr (struct toks_driver_ctx *); + /* core api */ toks_api int toks_service_abort (struct toks_driver_ctx *); toks_api int toks_service_ioctl (struct toks_driver_ctx *, uint32_t ctlcode, uintptr_t * data, void * any); diff --git a/src/driver/toks_driver_ctx.c b/src/driver/toks_driver_ctx.c index 1a8c53d..38475e3 100644 --- a/src/driver/toks_driver_ctx.c +++ b/src/driver/toks_driver_ctx.c @@ -1067,6 +1067,16 @@ void toks_driver_unset_timeout(struct toks_driver_ctx * dctx) toks_set_driver_timeout(dctx,(-1)); } +void toks_driver_set_refstr(struct toks_driver_ctx * dctx, const char * refstr) +{ + toks_set_driver_refstr(dctx,refstr); +} + +void toks_driver_unset_refstr(struct toks_driver_ctx * dctx) +{ + toks_set_driver_refstr(dctx,0); +} + const struct toks_source_version * toks_source_version(void) { return &toks_src_version;