From ad39481f238218ed3f3ce0f46c975a7ab178b5b5 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 17 Nov 2019 21:09:05 +0100 Subject: Few timeouts & exit conditions --- src/ufo-roof-buffer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ufo-roof-buffer.h') 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); -- cgit v1.2.3