From 7a168e9613504900a0f371aff0c1628946b7a877 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 25 Oct 2016 23:31:16 -0400 Subject: driver: internals: error trace support: added sfrt_driver_set_ectx(). --- src/internal/sofort_driver_impl.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') 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 -- cgit v1.2.3