Werner's Miscellanea
Sign in or create your account | Project List | Help
Werner's Miscellanea Git Source Tree
Root/
| 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 | |
| 20 | struct fd_map { |
| 21 | int fd; |
| 22 | void *handle; |
| 23 | struct fd_map *next; |
| 24 | }; |
| 25 | |
| 26 | struct fakefile { |
| 27 | pid_t pid; |
| 28 | struct fakefile_peer *peer; |
| 29 | struct fd_map *map; |
| 30 | struct fakefile *next; |
| 31 | }; |
| 32 | |
| 33 | |
| 34 | struct event; |
| 35 | |
| 36 | |
| 37 | struct fakefile *fakefile_launch(const char *path, char *const argv[]); |
| 38 | int fakefile_internal_event(struct event *ev); |
| 39 | |
| 40 | #endif /* !INTERNAL_H */ |
| 41 |
Branches:
master
