diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2014-11-30 11:14:49 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2014-11-30 11:14:49 +0100 |
commit | 1cb35fad9924bfa1ae33a6e6aff2e6c5d5b5f454 (patch) | |
tree | 73436ccf68e99d06eecac75136a0b1bb83a83291 /src/worker.h | |
parent | 7f10a53e805f26f3c6e0cceea5569b40a43af275 (diff) | |
download | biruda-1cb35fad9924bfa1ae33a6e6aff2e6c5d5b5f454.tar.gz biruda-1cb35fad9924bfa1ae33a6e6aff2e6c5d5b5f454.tar.bz2 |
worker data (glib-specific) is stored in worker structures
Diffstat (limited to 'src/worker.h')
-rw-r--r-- | src/worker.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/worker.h b/src/worker.h index 3bb20b8..a65f917 100644 --- a/src/worker.h +++ b/src/worker.h @@ -6,17 +6,20 @@ typedef enum { WORKER_EXECUTION_DIRECT = 1 } worker_execution_mode_t; +typedef void *worker_execution_data_t; + typedef struct { char *name; worker_execution_mode_t mode; char *command; + worker_execution_data_t execution_data; } worker_t; const char *worker_exection_mode_str( worker_execution_mode_t mode ); worker_execution_mode_t worker_execution_mode_from_str( const char *s ); int worker_init( worker_t *worker ); -void worker_terminate( ); +void worker_terminate( worker_t *worker ); int worker_free( ); #endif |