2020-03-20 15:01:36 +00:00
|
|
|
#ifndef __qwaq_h
|
|
|
|
#define __qwaq_h
|
|
|
|
|
|
|
|
#include "QF/darray.h"
|
|
|
|
|
|
|
|
typedef struct qwaq_thread_s {
|
|
|
|
pthread_t thread_id;
|
|
|
|
int return_code;
|
|
|
|
struct DARRAY_TYPE (const char *) args;
|
|
|
|
sys_printf_t sys_printf;
|
|
|
|
progs_t *pr;
|
|
|
|
func_t main_func;
|
2020-03-20 15:14:33 +00:00
|
|
|
void *data;
|
2020-03-20 15:01:36 +00:00
|
|
|
} qwaq_thread_t;
|
|
|
|
|
2003-01-06 18:28:13 +00:00
|
|
|
void BI_Init (progs_t *pr);
|
2012-07-14 00:06:04 +00:00
|
|
|
extern struct cbuf_s *qwaq_cbuf;
|
2020-03-20 15:14:33 +00:00
|
|
|
qwaq_thread_t *create_thread (void *(*thread_func) (qwaq_thread_t *), void *);
|
2020-03-20 15:01:36 +00:00
|
|
|
|
|
|
|
#endif//__qwaq_h
|