diff options
author | midipix <writeonce@midipix.org> | 2016-10-25 23:31:16 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-10-25 23:31:16 -0400 |
commit | 7a168e9613504900a0f371aff0c1628946b7a877 (patch) | |
tree | 466a33ad92e4130cffa5d8e87ec12dd25ac6a94e /src | |
parent | f0da1894a9426e6c8b96bffca140a12a5d63dd08 (diff) | |
download | sofort-7a168e9613504900a0f371aff0c1628946b7a877.tar.bz2 sofort-7a168e9613504900a0f371aff0c1628946b7a877.tar.xz |
driver: internals: error trace support: added sfrt_driver_set_ectx().
Diffstat (limited to 'src')
-rw-r--r-- | src/internal/sofort_driver_impl.h | 12 |
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 |