Encapsulate flow descriptions inside a struct.

This commit is contained in:
Ian Gulliver
2016-02-29 17:12:06 -08:00
parent 3539f9d640
commit 3fb3c02cf5
12 changed files with 83 additions and 68 deletions

View File

@@ -1,11 +1,6 @@
#pragma once
#include <stdint.h>
struct buf;
struct peer;
struct flow;
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 *);
void exec_new(char *, struct flow *, void *);