diff options
Diffstat (limited to 'src/ufo-roof-buffer.h')
-rw-r--r-- | src/ufo-roof-buffer.h | 3 |
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); |