summaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/mdso_driver_impl.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/internal/mdso_driver_impl.h b/src/internal/mdso_driver_impl.h
index f43b790..9391a64 100644
--- a/src/internal/mdso_driver_impl.h
+++ b/src/internal/mdso_driver_impl.h
@@ -32,6 +32,8 @@ struct mdso_driver_ctx_impl {
char * asmbase;
int fddst;
int fdtmpin;
+ const struct mdso_unit_ctx * euctx;
+ const char * eunit;
struct mdso_error_info**errinfp;
struct mdso_error_info**erricap;
struct mdso_error_info *erriptr[64];
@@ -59,4 +61,16 @@ static inline struct mdso_driver_ctx_impl * mdso_get_driver_ictx(
return 0;
}
+static inline void mdso_driver_set_ectx(
+ const struct mdso_driver_ctx * dctx,
+ const struct mdso_unit_ctx * uctx,
+ const char * unit)
+{
+ struct mdso_driver_ctx_impl * ictx;
+
+ ictx = mdso_get_driver_ictx(dctx);
+ ictx->euctx = uctx;
+ ictx->eunit = unit;
+}
+
#endif