summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/sofort_driver_impl.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/internal/sofort_driver_impl.h b/src/internal/sofort_driver_impl.h
index 4fdcf96..1322aac 100644
--- a/src/internal/sofort_driver_impl.h
+++ b/src/internal/sofort_driver_impl.h
@@ -48,4 +48,16 @@ static inline struct sfrt_driver_ctx_impl * sfrt_get_driver_ictx(
return 0;
}
+static inline void sfrt_driver_set_ectx(
+ const struct sfrt_driver_ctx * dctx,
+ const struct sfrt_unit_ctx * uctx,
+ const char * unit)
+{
+ struct sfrt_driver_ctx_impl * ictx;
+
+ ictx = sfrt_get_driver_ictx(dctx);
+ ictx->euctx = uctx;
+ ictx->eunit = unit;
+}
+
#endif