Add --exec-{send,receive}

This commit is contained in:
Ian Gulliver
2016-02-28 15:53:55 -08:00
parent 29d0b33161
commit 58a8576da8
8 changed files with 198 additions and 5 deletions

11
adsbus/exec.h Normal file
View File

@@ -0,0 +1,11 @@
#pragma once
#include <stdint.h>
struct buf;
struct peer;
void exec_cleanup(void);
typedef void (*exec_connection_handler)(int fd, void *, struct peer *);
typedef void (*exec_get_hello)(struct buf **, void *);
void exec_new(char *, exec_connection_handler, exec_get_hello, void *, uint32_t *);