All pastes #617919 Raw Edit

Mine

public diff v1 · immutable
·published 2007-07-13 16:06 UTC
rendered paste body
Index: libhb/hb.h===================================================================--- libhb/hb.h	(revision 673)+++ libhb/hb.h	(working copy)@@ -95,6 +95,9 @@    Look at test/test.c to see how to use it. */ void hb_get_state( hb_handle_t *, hb_state_t * ); +/* For Dynaflash */+int hb_get_scancount( hb_handle_t * );+ /* hb_close()    Aborts all current jobs if any, frees memory. */ void          hb_close( hb_handle_t ** ); Index: libhb/hb.c =================================================================== --- libhb/hb.c	(revision 673) +++ libhb/hb.c	(working copy) @@ -34,6 +34,9 @@      int            paused;      hb_lock_t    * pause_lock; +     +    //for dynaflash +    int            scanCount;          };  hb_work_object_t * hb_objects = NULL; @@ -750,7 +753,16 @@      hb_unlock( h->state_lock );  } +  /** + * For Dynaflash + */ +int hb_get_scancount( hb_handle_t * h) +{ +    return h->scanCount; +} + +/**   * Closes access to libhb by freeing the hb_handle_t handle ontained in hb_init_real.   * @param _h Pointer to handle to hb_handle_t.   */ @@ -819,6 +831,8 @@              hb_lock( h->state_lock );              h->state.state = HB_STATE_SCANDONE;              hb_unlock( h->state_lock ); +            h->scanCount++; +            hb_log("Dynaflash, scan count is now %i", hb_get_scancount(h));          }          /* Check if the work thread is done */