From 2b5ad5dfa5baa9a243051022510600fd8a82fd20 Mon Sep 17 00:00:00 2001 From: Timo Dritschler Date: Fri, 25 Apr 2014 18:59:55 +0200 Subject: Added 'kiro_trb_refresh' that refreshes all internal meta information based on the memory content Added 'kiro_trb_is_setup' to check if the buffer is consistent --- kiro-trb.h | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'kiro-trb.h') diff --git a/kiro-trb.h b/kiro-trb.h index db0cd8e..0a39a4a 100644 --- a/kiro-trb.h +++ b/kiro-trb.h @@ -86,25 +86,29 @@ GObject kiro_trb_new (void); /* trb functions */ -uint64_t kiro_trb_get_element_count (KiroTrb*); +uint64_t kiro_trb_get_element_count (KiroTrb* trb); -uint64_t kiro_trb_get_element_size (KiroTrb*); +uint64_t kiro_trb_get_element_size (KiroTrb* trb); -uint64_t kiro_trb_get_max_elements (KiroTrb*); +uint64_t kiro_trb_get_max_elements (KiroTrb* trb); -uint64_t kiro_trb_get_raw_size (KiroTrb*); +uint64_t kiro_trb_get_raw_size (KiroTrb* trb); -void* kiro_trb_get_raw_buffer (KiroTrb*); +void* kiro_trb_get_raw_buffer (KiroTrb* trb); -void* kiro_trb_get_element (KiroTrb*, uint64_t); +void* kiro_trb_get_element (KiroTrb* trb, uint64_t index); -void kiro_trb_flush (KiroTrb*); +void kiro_trb_flush (KiroTrb* trb); -int kiro_trb_reshape (KiroTrb*, uint64_t, uint64_t); +int kiro_trb_is_setup (KiroTrb* trb); -int kiro_trb_push (KiroTrb*, void*); +int kiro_trb_reshape (KiroTrb* trb, uint64_t element_size, uint64_t element_count); -void kiro_trb_ingest (KiroTrb*, void*); +int kiro_trb_push (KiroTrb* trb, void* source); + +void kiro_trb_refresh (KiroTrb* trb); + +void kiro_trb_ingest (KiroTrb* trb, void* source); G_END_DECLS -- cgit v1.2.3