summaryrefslogtreecommitdiffstats
path: root/src/save/ufo-roof-read-thread.h
blob: ebe8989b615fb18f9d3f4d7d32d1e154c3ac630d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __UFO_ROOF_READ_THREAD_H
#define __UFO_ROOF_READ_THREAD_H

typedef struct _UfoRoofReadThread UfoRoofReadThread;

#include "ufo-roof-read.h"

struct _UfoRoofReadThread {
    UfoRoofRead *rd;					// ROOF Reader Cotext
    guint from, to;					// Determines ports/files which are read by this thread (from is inclusive and to - exclusive)

    gboolean launched;					// Flag indicating if thread is launched
    thrd_t thread;					// Thread ID
};

/*
UfoRoofReadThread *guint ufo_roof_read_thread_new(UfoRoofRead *rd, guint from, guint to, GError **error);
void ufo_roof_read_thread_free(UFORoofReadThread *thr, GError **error);
gboolean ufo_roof_read_thread_start(UFORoofReadThread *thr, GError **error);
gboolean ufo_roof_read_thread_stop(UFORoofReadThread *thr, GError **error);
*/

#endif /* __UFO_ROOF_READ_THREAD_H */