diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-08-05 19:27:19 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-08-05 19:27:19 +0200 |
commit | 5edb8d14272ea2ecd9784a26e150a45954d67e2e (patch) | |
tree | f769aca2c7fc78ccb3a291623ca5c60c124413bb /base.c | |
parent | f290bdc333b01dbc5f695236e0b72db1ac2a67d5 (diff) | |
download | ipecamera-5edb8d14272ea2ecd9784a26e150a45954d67e2e.tar.gz ipecamera-5edb8d14272ea2ecd9784a26e150a45954d67e2e.tar.bz2 ipecamera-5edb8d14272ea2ecd9784a26e150a45954d67e2e.tar.xz ipecamera-5edb8d14272ea2ecd9784a26e150a45954d67e2e.zip |
Introduce API debugging
Diffstat (limited to 'base.c')
-rw-r--r-- | base.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; } |