diff options
author | midipix <writeonce@midipix.org> | 2016-10-26 21:20:35 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-10-26 22:10:34 -0400 |
commit | a55d2226a03eef7084bc8adf2f9b318549541f7b (patch) | |
tree | c90a09aa3cfd9f75e011dd880218bd0b061fe6c9 | |
parent | 1480f4c5e527f28c559c7b341d2b24e72aec445c (diff) | |
download | apimagic-a55d2226a03eef7084bc8adf2f9b318549541f7b.tar.bz2 apimagic-a55d2226a03eef7084bc8adf2f9b318549541f7b.tar.xz |
driver: internals: error trace support: added amgc_driver_set_ectx().
-rw-r--r-- | src/internal/apimagic_driver_impl.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/internal/apimagic_driver_impl.h b/src/internal/apimagic_driver_impl.h index 6d5ce02..5ddf234 100644 --- a/src/internal/apimagic_driver_impl.h +++ b/src/internal/apimagic_driver_impl.h @@ -64,4 +64,16 @@ static inline struct amgc_driver_ctx_impl * amgc_get_driver_ictx( return 0; } +static inline void amgc_driver_set_ectx( + const struct amgc_driver_ctx * dctx, + const struct amgc_unit_ctx * uctx, + const char * unit) +{ + struct amgc_driver_ctx_impl * ictx; + + ictx = amgc_get_driver_ictx(dctx); + ictx->euctx = uctx; + ictx->eunit = unit; +} + #endif |