In/out reference counting.

This commit is contained in:
Ian Gulliver
2016-02-25 16:17:25 -08:00
parent aa940137c1
commit 5e604f0596
9 changed files with 35 additions and 12 deletions

View File

@@ -1,7 +1,9 @@
#pragma once
#include <stdint.h>
struct peer;
void incoming_cleanup();
typedef void (*incoming_connection_handler)(int fd, void *, struct peer *);
void incoming_new(char *, char *, incoming_connection_handler, void *);
void incoming_new(char *, char *, incoming_connection_handler, void *, uint32_t *);