Werner's Miscellanea
Sign in or create your account | Project List | Help
Werner's Miscellanea Git Source Tree
Root/
Source at commit 57b53c61c1b37a913fc963c3c0bec0364efbcb7e created 10 years 1 month ago. By Werner Almesberger, ircstat/ML: update for 2014-01 | |
---|---|
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 | |
17 | int fakefile_internal_event(struct event *ev) |
18 | { |
19 | (void) ev; |
20 | return 0; |
21 | } |
22 | |
23 | |
24 | static void add_file(struct fakefile *ff, const char *name, |
25 | const void *in, size_t len, void **out) |
26 | { |
27 | /* ... */ |
28 | } |
29 | |
30 | |
31 | void 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 | |
38 | void fakefile_antifile(struct fakefile *ff, const char *name) |
39 | { |
40 | add_file(ff, name, NULL, 0, NULL); |
41 | } |
42 |
Branches:
master