summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-10-25 23:31:16 -0400
committermidipix <writeonce@midipix.org>2016-10-25 23:31:16 -0400
commit7a168e9613504900a0f371aff0c1628946b7a877 (patch)
tree466a33ad92e4130cffa5d8e87ec12dd25ac6a94e
parentf0da1894a9426e6c8b96bffca140a12a5d63dd08 (diff)
downloadsofort-7a168e9613504900a0f371aff0c1628946b7a877.tar.bz2
sofort-7a168e9613504900a0f371aff0c1628946b7a877.tar.xz
driver: internals: error trace support: added sfrt_driver_set_ectx().
-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