Commit 82e3e297 authored by Niels Möller's avatar Niels Möller

*** empty log message ***

Rev: src/abstract_io.h:1.6
Rev: src/crypto.h:1.2
Rev: src/io.h:1.6
parent 130a4154
......@@ -42,7 +42,7 @@ typedef struct read_handler * (*read_handler_f)(struct read_handler *closure,
struct read_handler
{
int (*handler)(struct read_handler **h,
struct abstract_read *read);
struct abstract_read *read);
};
#define READ_HANDLER(h, read) ((h)->handler(&(h), (read)))
......
......@@ -7,6 +7,6 @@
#include "abstract_crypto.h"
struct crypto_instance crypto_none_instance;
extern struct crypto_instance crypto_none_instance;
#endif
......@@ -28,14 +28,17 @@ struct io_fd
};
/* A closed function with a file descriptor as argument */
#if 0
struct fd_callback;
typedef int (*fd_callback_f)(struct fd_callback *closure, int fd);
#endif
struct fd_callback
{
fd_callback_f f;
int (*f)(struct fd_callback **closure, int fd);
};
#define FD_CALLBACK(c, fd) ((c)->f(c, (fd)))
#define FD_CALLBACK(c, fd) ((c)->f(&(c), (fd)))
struct listen_fd
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment