summaryrefslogtreecommitdiffstats
path: root/src/ufo-roof-buffer.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-11-17 21:09:05 +0100
committerSuren A. Chilingaryan <csa@suren.me>2019-11-17 21:09:05 +0100
commitad39481f238218ed3f3ce0f46c975a7ab178b5b5 (patch)
tree7d95a9c5fede3bec3880c53198de3fe752a75f75 /src/ufo-roof-buffer.h
parentea9626b60092f2d2c79431718c3ca8bc383429a6 (diff)
downloadufo-roof-ad39481f238218ed3f3ce0f46c975a7ab178b5b5.tar.gz
ufo-roof-ad39481f238218ed3f3ce0f46c975a7ab178b5b5.tar.bz2
ufo-roof-ad39481f238218ed3f3ce0f46c975a7ab178b5b5.tar.xz
ufo-roof-ad39481f238218ed3f3ce0f46c975a7ab178b5b5.zip
Few timeouts & exit conditions
Diffstat (limited to 'src/ufo-roof-buffer.h')
-rw-r--r--src/ufo-roof-buffer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ufo-roof-buffer.h b/src/ufo-roof-buffer.h
index f7b2124..c4c8474 100644
--- a/src/ufo-roof-buffer.h
+++ b/src/ufo-roof-buffer.h
@@ -14,6 +14,7 @@ struct _UfoRoofBuffer {
// int *fragments; // Mark individual completed fragments (if we care for partial data)
+ guint max_datasets; // Only the specified number of datasets will be buffered, the rest will be silently dropped
guint dataset_size; // Size (in bytes) of a full dataset
guint fragment_size; // Size (in bytes) of a single fragment (we expect fixed-size fragments at the moment)
@@ -23,7 +24,7 @@ struct _UfoRoofBuffer {
typedef struct _UfoRoofBuffer UfoRoofBuffer;
-UfoRoofBuffer *ufo_roof_buffer_new(UfoRoofConfig *cfg, GError **error);
+UfoRoofBuffer *ufo_roof_buffer_new(UfoRoofConfig *cfg, guint max_datasets, GError **error);
void ufo_roof_buffer_free(UfoRoofBuffer *buf);
gboolean ufo_roof_buffer_set_fragment(UfoRoofBuffer *buffer, guint stream_id, guint fragment_id, gconstpointer fragment, GError **error);