X-Git-Url: http://average.org/gitweb/?a=blobdiff_plain;f=src%2Fpsmb_priv.h;h=c80ae62169548b009f8ef63797c72be9e6ee8efe;hb=ff0485ea8683816c1374bfc21f77a3623b10ed48;hp=b2717f9281f931dc1ceabe65b716fc766ef21cf2;hpb=20b696a4f530bab420be36972f6a19d36b0f7080;p=psmb.git diff --git a/src/psmb_priv.h b/src/psmb_priv.h index b2717f9..c80ae62 100644 --- a/src/psmb_priv.h +++ b/src/psmb_priv.h @@ -1,11 +1,13 @@ #ifndef _PSMB_PRIV_H #include +#include #include #define PSMB_OK 0 #define PSMB_ERROR 1 #define PSMB_NEED_WRITE 2 +#define PSMB_MESSAGE 4 #define PSMB_DEFAULT_PORT 5313 #define PSMB_DEFAULT_PMTU 1452 @@ -37,8 +39,6 @@ struct _psmb_ctx { struct _msg incoming; }; -struct _psmb_result { - int code; -}; +#define LOG(ctx, ...) (*ctx->logf)(ctx->log_priv, __VA_ARGS__) #endif