diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-12-08 03:47:23 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-12-08 03:47:23 +0100 |
commit | 869ed99dbc3a645fee6de36e97e1e12127068f10 (patch) | |
tree | fa4a4e7ef977a3d3621ff5e96fb664e6fbc9e6fe /pci.c | |
parent | ddc77c1e819eee03a13efff4a9aa3161485f3f1f (diff) | |
download | ipecamera-869ed99dbc3a645fee6de36e97e1e12127068f10.tar.gz ipecamera-869ed99dbc3a645fee6de36e97e1e12127068f10.tar.bz2 ipecamera-869ed99dbc3a645fee6de36e97e1e12127068f10.tar.xz ipecamera-869ed99dbc3a645fee6de36e97e1e12127068f10.zip |
new event architecture, first trial
Diffstat (limited to 'pci.c')
-rw-r--r-- | pci.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; |