summaryrefslogtreecommitdiff
path: root/src/worker.h
blob: 29c6e37e75e7707a2dcdd1888c340700bcc89364 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _BIRUDA_WORKER_HEADER_INCLUDED
#define _BIRUDA_WORKER_HEADER_INCLUDED

typedef enum {
	WORKER_EXECUTION_DISABLED = 0,
	WORKER_EXECUTION_DIRECT = 1
} worker_execution_mode_t;

typedef struct {
	char *name;
	worker_execution_mode_t mode;
	char *command;
} worker_t;

const char *worker_exection_mode_str( worker_execution_mode_t mode );
worker_execution_mode_t worker_execution_mode_from_int( unsigned int v );

int worker_init( const char *control );
void worker_terminate( );
int worker_free( );

#endif