Root/fakefile/internal.h

Source at commit a9ee51921bbb2435a8b3df66b38f3029d288f264 created 5 years 6 months ago.
By Werner Almesberger, ircstat/ML: update for 2014-03
1/*
2 * internal.h - Internal functions and data structures at master
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#ifndef INTERNAL_H
13#define INTERNAL_H
14
15#include <unistd.h>
16
17#include "comm.h"
18
19
20struct fd_map {
21    int fd;
22    void *handle;
23    struct fd_map *next;
24};
25
26struct fakefile {
27    pid_t pid;
28    struct fakefile_peer *peer;
29    struct fd_map *map;
30    struct fakefile *next;
31};
32
33
34struct event;
35
36
37struct fakefile *fakefile_launch(const char *path, char *const argv[]);
38int fakefile_internal_event(struct event *ev);
39
40#endif /* !INTERNAL_H */
41

Archive Download this file

Branches:
master



interactive