Root/fakefile/file.c

Source at commit f732d7ea72374a29e9c3ab65a19c7140c47080f3 created 6 years 2 months ago.
By Werner Almesberger, ircstat/ML: update for 9/2013
1/*
2 * file.c - Whole file operations
3 *
4 * Copyright 2012 by Werner Almesberger
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 */
11
12
13#include "fakefile.h"
14#include "internal.h"
15
16
17int fakefile_internal_event(struct event *ev)
18{
19    (void) ev;
20    return 0;
21}
22
23
24static void add_file(struct fakefile *ff, const char *name,
25    const void *in, size_t len, void **out)
26{
27    /* ... */
28}
29
30
31void fakefile_file(struct fakefile *ff, const char *name,
32    const void *in, size_t len, void **out)
33{
34    add_file(ff, name, in, len, out);
35}
36
37
38void fakefile_antifile(struct fakefile *ff, const char *name)
39{
40    add_file(ff, name, NULL, 0, NULL);
41}
42

Archive Download this file

Branches:
master



interactive