X-Git-Url: http://www.average.org/gitweb/?p=psmb.git;a=blobdiff_plain;f=src%2Fpsmb_priv.h;h=5e3c2adb596dc5c8fc223ecedf6630fa2e47c4f8;hp=464665b2c010c53871325b3635cfd11a390d54ca;hb=a8e5ec1ed734952452dde1fba33cc7be206cb28b;hpb=0e17b577419dd949124a0ca44c335c4ca929e928 diff --git a/src/psmb_priv.h b/src/psmb_priv.h index 464665b..5e3c2ad 100644 --- a/src/psmb_priv.h +++ b/src/psmb_priv.h @@ -1,6 +1,7 @@ #ifndef _PSMB_PRIV_H #include +#include #include #define PSMB_OK 0 @@ -31,12 +32,12 @@ struct _psmb_ctx { void *log_priv; unsigned short port; int pmtu; + struct in6_addr prefix; + unsigned char prefixlen; /* subscription set here */ struct _msg incoming; }; -struct _psmb_result { - int code; -}; +#define LOG(ctx, ...) (*ctx->logf)(ctx->log_priv, __VA_ARGS__) #endif