From: Uwe Hermann Date: Sun, 30 Dec 2012 00:45:08 +0000 (+0100) Subject: new-driver: hw_init() now takes a context. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=436a8443249a823eab99a90b9c122ba9e86152ac;p=sigrok-util.git new-driver: hw_init() now takes a context. --- diff --git a/source/drv-api.c b/source/drv-api.c index 2750a79..fee866e 100644 --- a/source/drv-api.c +++ b/source/drv-api.c @@ -53,7 +53,7 @@ static int clear_instances(void) return SR_OK; } -static int hw_init(void) +static int hw_init(struct sr_context *sr_ctx) { struct drv_context *drvc; @@ -64,6 +64,7 @@ static int hw_init(void) /* TODO */ + drvc->sr_ctx = sr_ctx; di->priv = drvc; return SR_OK;