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 /data.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 'data.c')
-rw-r--r-- | data.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -189,6 +189,8 @@ int ipecamera_get(pcilib_context_t *vctx, pcilib_event_id_t event_id, pcilib_eve return PCILIB_ERROR_NOTINITIALIZED; } + ipecamera_debug(API, "ipecamera: get (data)"); + buf_ptr = ipecamera_resolve_event_id(ctx, event_id); if (buf_ptr < 0) return PCILIB_ERROR_OVERWRITTEN; @@ -272,5 +274,7 @@ int ipecamera_return(pcilib_context_t *vctx, pcilib_event_id_t event_id, pcilib_ pthread_rwlock_unlock(&ctx->frame[buf_ptr].mutex); } + ipecamera_debug(API, "ipecamera: return (data)"); + return 0; } |