relayd: replace uses of block FDs by the fs_handle interface
[lttng-tools.git] / src / common / fs-handle.h
index e90ba3ca2891582247e1ebe7e8563dd49ceff861..6f9bad1e731dba5596b1a91e540d1ef541b6541d 100644 (file)
@@ -19,6 +19,7 @@
 #define FS_HANDLE_H
 
 #include <common/macros.h>
+#include <stdio.h>
 
 struct fs_handle;
 
@@ -68,4 +69,16 @@ int fs_handle_unlink(struct fs_handle *handle);
 LTTNG_HIDDEN
 int fs_handle_close(struct fs_handle *handle);
 
+LTTNG_HIDDEN
+ssize_t fs_handle_read(struct fs_handle *handle, void *buf, size_t count);
+
+LTTNG_HIDDEN
+ssize_t fs_handle_write(struct fs_handle *handle, const void *buf, size_t count);
+
+LTTNG_HIDDEN
+int fs_handle_truncate(struct fs_handle *handle, off_t offset);
+
+LTTNG_HIDDEN
+int fs_handle_seek(struct fs_handle *handle, off_t offset, int whence);
+
 #endif /* FS_HANDLE_H */
This page took 0.023061 seconds and 4 git commands to generate.