summaryrefslogtreecommitdiff
path: root/lib/falloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/falloc.h')
-rw-r--r--lib/falloc.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/falloc.h b/lib/falloc.h
index 64861c47a..0bb107bbe 100644
--- a/lib/falloc.h
+++ b/lib/falloc.h
@@ -9,6 +9,22 @@
extern "C" {
#endif
+static inline long int fadGetFileSize(FD_t fd) {
+ return fd->fileSize;
+}
+
+static inline void fadSetFileSize(FD_t fd, long int fileSize) {
+ fd->fileSize = fileSize;
+}
+
+static inline unsigned int fadGetFirstFree(FD_t fd) {
+ return fd->firstFree;
+}
+
+static inline void fadSetFirstFree(FD_t fd, unsigned int firstFree) {
+ fd->firstFree = firstFree;
+}
+
/*@null@*/ FD_t fadOpen (const char * path, int flags, mode_t perms);
unsigned int fadAlloc (FD_t fd, unsigned int size); /* 0 on failure */
void fadFree (FD_t fd, unsigned int offset);