aboutsummaryrefslogtreecommitdiffstats
path: root/com32/sysdump/be_null.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/sysdump/be_null.c')
-rw-r--r--com32/sysdump/be_null.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/com32/sysdump/be_null.c b/com32/sysdump/be_null.c
new file mode 100644
index 00000000..4aab99ce
--- /dev/null
+++ b/com32/sysdump/be_null.c
@@ -0,0 +1,30 @@
+/*
+ * Null data output backend
+ */
+
+#include "backend.h"
+
+static int be_null_open(struct backend *be, const char *argv[], size_t len)
+{
+ (void)be;
+ (void)argv;
+ (void)len;
+ return 0;
+}
+
+static int be_null_write(struct backend *be, const char *buf, size_t len)
+{
+ (void)be;
+ (void)buf;
+ (void)len;
+ return 0;
+}
+
+struct backend be_null = {
+ .name = "null",
+ .helpmsg = "",
+ .minargs = 0,
+ .blocksize = 32768, /* arbitrary */
+ .open = be_null_open,
+ .write = be_null_write,
+};