From 5edb8d14272ea2ecd9784a26e150a45954d67e2e Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 5 Aug 2015 19:27:19 +0200 Subject: Introduce API debugging --- base.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'base.c') diff --git a/base.c b/base.c index 00f38d1..53ebe4d 100644 --- a/base.c +++ b/base.c @@ -288,6 +288,8 @@ int ipecamera_start(pcilib_context_t *vctx, pcilib_event_t event_mask, pcilib_ev return PCILIB_ERROR_INVALID_REQUEST; } + ipecamera_debug(API, "ipecamera: starting"); + ctx->event_id = 0; ctx->preproc_id = 0; ctx->reported_id = 0; @@ -503,6 +505,8 @@ int ipecamera_start(pcilib_context_t *vctx, pcilib_event_t event_mask, pcilib_ev pthread_attr_destroy(&attr); + ipecamera_debug(API, "ipecamera: started"); + return err; } @@ -523,6 +527,8 @@ int ipecamera_stop(pcilib_context_t *vctx, pcilib_event_flags_t flags) { return 0; } + ipecamera_debug(API, "ipecamera: stopping"); + if (ctx->started) { ctx->run_reader = 0; err = pthread_join(ctx->rthread, &retcode); @@ -597,6 +603,8 @@ int ipecamera_stop(pcilib_context_t *vctx, pcilib_event_flags_t flags) { ctx->buffer_pos = 0; ctx->started = 0; + ipecamera_debug(API, "ipecamera: stopped"); + return 0; } -- cgit v1.2.3