diff --git a/src/common/libremoteio.h b/src/common/libremoteio.h --- a/src/common/libremoteio.h +++ b/src/common/libremoteio.h @@ -30,9 +30,12 @@ enum remoteio_method { REMOTEIO_METHOD_SSH = 0, +#ifndef WINDOWS + REMOTEIO_METHOD_UNIX = 1, +#endif /* REMOTEIO_METHOD_TCP */ /*< someday, maybe */ /* REMOETIO_METHOD_XMLRPC */ /*< again, maybe someday */ - REMOTEIO_METHOD_MAX = 1 /*< This is a number used to check the consitency of remoteio_server structs */ + REMOTEIO_METHOD_MAX = 2 /*< This is a number used to check the consitency of remoteio_server structs */ }; struct remoteio_server @@ -66,6 +69,8 @@ typedef int remoteio_close_func_t(struct struct remoteio_method_funcmap { + enum remoteio_method method; + remoteio_open_func_t *open_func; remoteio_read_func_t *read_func; remoteio_write_func_t *write_func;