#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 */