From 869ed99dbc3a645fee6de36e97e1e12127068f10 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 8 Dec 2011 03:47:23 +0100 Subject: new event architecture, first trial --- pci.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pci.c') diff --git a/pci.c b/pci.c index d2d5843..59b354e 100644 --- a/pci.c +++ b/pci.c @@ -45,7 +45,6 @@ int pcilib_set_error_handler(void (*err)(const char *msg, ...), void (*warn)(con } pcilib_t *pcilib_open(const char *device, pcilib_model_t model) { - pcilib_event_api_description_t *api; pcilib_t *ctx = malloc(sizeof(pcilib_t)); if (ctx) { @@ -65,8 +64,7 @@ pcilib_t *pcilib_open(const char *device, pcilib_model_t model) { memcpy(&ctx->model_info, pcilib_model + model, sizeof(pcilib_model_description_t)); - api = pcilib_model[model].event_api; - if ((api)&&(api->init)) ctx->event_ctx = api->init(ctx); + pcilib_init_event_engine(ctx); } return ctx; -- cgit v1.2.3