aboutsummaryrefslogtreecommitdiff
path: root/src/gui_project.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-08-25 17:15:49 +0200
committerThomas White <taw@physics.org>2020-08-25 17:15:49 +0200
commit295b6184171bdd230e5e61f0ba2ad26d504062a8 (patch)
tree53a2586007c6303d6f8c674a4f1ec1e4ac0fbd05 /src/gui_project.h
parent11e896334aea873017287733ab3c0f216939861f (diff)
Implement progress bar for indexing via generic interface
Diffstat (limited to 'src/gui_project.h')
-rw-r--r--src/gui_project.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui_project.h b/src/gui_project.h
index d2a78079..6d6ca919 100644
--- a/src/gui_project.h
+++ b/src/gui_project.h
@@ -106,6 +106,11 @@ struct crystfel_backend {
/* Called to ask the backend to cancel the job */
void (*cancel_task)(void *job_priv);
+ /* Called to get the status of a task */
+ int (*task_status)(void *job_priv,
+ int *running,
+ float *fraction_complete);
+
/* Called to ask the backend to write its indexing options */
void (*write_indexing_opts)(void *opts_priv, FILE *fh);
@@ -122,7 +127,9 @@ struct crystfel_backend {
struct gui_task
{
GtkWidget *info_bar;
+ GtkWidget *cancel_button;
GtkWidget *progress_bar;
+ int running;
struct crystfel_backend *backend;
void *job_priv;
};