summaryrefslogtreecommitdiffstats
path: root/src/roof-thread.h
blob: a180b29b9020f6ca07f43f7be69c635269682715 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 */