aboutsummaryrefslogtreecommitdiffstats
path: root/com32/sysdump/be_null.c
blob: 4aab99cea361295e80c599aab835af91f470ed03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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,
};