diff options
author | jstebbins <[email protected]> | 2008-08-03 19:47:34 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-08-03 19:47:34 +0000 |
commit | a8d3a1b8d246f409ef1dde98d2313226aa2ad14c (patch) | |
tree | c8908c9f92d65c3de45c8167d882fa1f349d3eb2 /gtk/src/hb-backend.h | |
parent | cf1e77da0ba81ada883fbf4e07d9dc7466110a04 (diff) |
LinGui: clean up hb status handling. mostly just moving things around.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1602 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/hb-backend.h')
-rw-r--r-- | gtk/src/hb-backend.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/gtk/src/hb-backend.h b/gtk/src/hb-backend.h index 486c7b29d..d5a65afe6 100644 --- a/gtk/src/hb-backend.h +++ b/gtk/src/hb-backend.h @@ -21,19 +21,20 @@ enum { - GHB_EVENT_NONE, - GHB_EVENT_SCAN_DONE, - GHB_EVENT_WORKING, - GHB_EVENT_PAUSED, - GHB_EVENT_WORK_DONE, - GHB_EVENT_WORK_CANCELED + GHB_ERROR_NONE, + GHB_ERROR_CANCELED, + GHB_ERROR_FAIL, }; typedef struct ghb_status_s { gint state; + + // SCANNING gint title_count; gint title_cur; + + // WORKING gint unique_id; gint job_cur; gint job_count; @@ -63,6 +64,7 @@ typedef struct gint hours; gint minutes; gint seconds; + gint64 duration; } ghb_title_info_t; typedef struct @@ -86,7 +88,11 @@ void ghb_start_queue(); void ghb_stop_queue(); void ghb_pause_queue(); -gint ghb_backend_events(signal_user_data_t *ud, gint *unique_id); +gint ghb_get_state(); +void ghb_clear_state(gint state); +void ghb_set_state(gint state); +void ghb_get_status(ghb_status_t *status); +void ghb_track_status(); void ghb_backend_scan(const gchar *path, gint titleindex); gboolean ghb_get_title_info(ghb_title_info_t *tinfo, gint titleindex); void ghb_set_scale(signal_user_data_t *ud, gint mode); |