diff options
Diffstat (limited to 'src/roof-thread.h')
-rw-r--r-- | src/roof-thread.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/roof-thread.h b/src/roof-thread.h new file mode 100644 index 0000000..a180b29 --- /dev/null +++ b/src/roof-thread.h @@ -0,0 +1,30 @@ +#ifndef __ROOF_THREAD_H +#define __ROOF_THREAD_H + +typedef struct _RoofThreadContext RoofThreadContext; + +#include "ufo-roof-read.h" + +struct _RoofThreadContext { + RoofConfig *cfg; + RoofBuffer *buf; + RoofReadInterface *rdi; + guint from, to; // Determines ports/files which are read by this thread (from is inclusive and to - exclusive) +}; + +/* +RoofReadThread *guint roof_read_thread_new(RoofRead *rd, guint from, guint to, GError **error); +void roof_read_thread_free(UFORoofReadThread *thr, GError **error); +gboolean roof_read_thread_start(UFORoofReadThread *thr, GError **error); +gboolean roof_read_thread_stop(UFORoofReadThread *thr, GError **error); +*/ + +int roof_thread_read(HWThread thr, void *hwctx, int id, void *data); + +RoofThreadContext *roof_thread_context_new(RoofConfig *cfg, RoofReadContext *rdc, guint from, guint to, GError **error); +void roof_thread_context_free(RoofThreadContext *ctx); + + + +#endif /* __ROOF_THREAD_H */ + |