summaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-10-26 21:20:35 -0400
committermidipix <writeonce@midipix.org>2016-10-26 22:10:34 -0400
commita55d2226a03eef7084bc8adf2f9b318549541f7b (patch)
treec90a09aa3cfd9f75e011dd880218bd0b061fe6c9 /src/internal
parent1480f4c5e527f28c559c7b341d2b24e72aec445c (diff)
downloadapimagic-a55d2226a03eef7084bc8adf2f9b318549541f7b.tar.bz2
apimagic-a55d2226a03eef7084bc8adf2f9b318549541f7b.tar.xz
driver: internals: error trace support: added amgc_driver_set_ectx().
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/apimagic_driver_impl.h12
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