]> www.average.org Git - psmb.git/blobdiff - src/psmb_priv.h
rudimentary subscribe/unsubscribe
[psmb.git] / src / psmb_priv.h
index b2717f9281f931dc1ceabe65b716fc766ef21cf2..c80ae62169548b009f8ef63797c72be9e6ee8efe 100644 (file)
@@ -1,11 +1,13 @@
 #ifndef _PSMB_PRIV_H
 
 #include <stdlib.h>
+#include <syslog.h>
 #include <netinet/in.h>
 
 #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