aboutgitcodebugslistschat
path: root/serialise.h
diff options
context:
space:
mode:
Diffstat (limited to 'serialise.h')
-rw-r--r--serialise.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/serialise.h b/serialise.h
new file mode 100644
index 0000000..251c772
--- /dev/null
+++ b/serialise.h
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later
+ * Copyright Red Hat
+ * Author: David Gibson <david@gibson.dropbear.id.au>
+ */
+
+#ifndef SERIALISE_H
+#define SERIALISE_H
+
+#include <stddef.h>
+
+int read_all_buf(int fd, void *buf, size_t len);
+int write_all_buf(int fd, const void *buf, size_t len);
+
+#endif /* SERIALISE_H */