/alps/ipecamera

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/ipecamera

« back to all changes in this revision

Viewing changes to base.c

  • Committer: Suren A. Chilingaryan
  • Date: 2015-08-05 17:27:19 UTC
  • Revision ID: csa@suren.me-20150805172719-nbqb4pig9y135pxy
Introduce API debugging

Show diffs side-by-side

added added

removed removed

Lines of Context:
288
288
        return PCILIB_ERROR_INVALID_REQUEST;
289
289
    }
290
290
 
 
291
    ipecamera_debug(API, "ipecamera: starting");
 
292
 
291
293
    ctx->event_id = 0;
292
294
    ctx->preproc_id = 0;
293
295
    ctx->reported_id = 0;
503
505
    
504
506
    pthread_attr_destroy(&attr);    
505
507
 
 
508
    ipecamera_debug(API, "ipecamera: started");
 
509
 
506
510
    return err;
507
511
}
508
512
 
523
527
        return 0;
524
528
    }
525
529
 
 
530
    ipecamera_debug(API, "ipecamera: stopping");
 
531
 
526
532
    if (ctx->started) {
527
533
        ctx->run_reader = 0;
528
534
        err = pthread_join(ctx->rthread, &retcode);
597
603
    ctx->buffer_pos = 0; 
598
604
    ctx->started = 0;
599
605
 
 
606
    ipecamera_debug(API, "ipecamera: stopped");
 
607
    
600
608
    return 0;
601
609
}
602
610