summaryrefslogtreecommitdiff
path: root/src/piece-table.h
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2024-03-03 22:21:15 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2024-03-03 22:21:15 +0100
commitdfb7d4b2bd6a5bd7a2bf63927c84c46bf88ba379 (patch)
tree21b4933da1355141f313f88784a2e17ec5b2fa2e /src/piece-table.h
parent14fb4ab4a19bbb281f614ef93a009a07e86ebf14 (diff)
piece-table: fix memory and implement delete
Diffstat (limited to 'src/piece-table.h')
-rw-r--r--src/piece-table.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/piece-table.h b/src/piece-table.h
index c053069..8a13ae3 100644
--- a/src/piece-table.h
+++ b/src/piece-table.h
@@ -22,11 +22,13 @@ typedef struct {
size_t cached_offset;
} piece_table;
-bool init_piece_table(piece_table *pt, char *orig);
+void init_piece_table(piece_table *pt, char *orig);
void free_piece_table(piece_table *pt);
char index_piece_table(piece_table *pt, size_t pos);
void insert_piece_table(piece_table *pt, char val, size_t pos);
void delete_piece_table(piece_table *pt, size_t pos, size_t len);
+void print_piece_table(piece_table *pt);
+
#endif // PIECE_TABLE_H