X-Git-Url: http://www.average.org/gitweb/?p=psmb.git;a=blobdiff_plain;f=psmb.h;fp=psmb.h;h=0000000000000000000000000000000000000000;hp=afdb69dc0eaec02dcee4db7940d0b01cdf17d532;hb=8309c3b0f167256776fb0cb96fc2c8becd4ed144;hpb=924f97ef0bbac79a4f4d61f6239b1be0656cc454 diff --git a/psmb.h b/psmb.h deleted file mode 100644 index afdb69d..0000000 --- a/psmb.h +++ /dev/null @@ -1,28 +0,0 @@ -#ifndef _PSMB_H - -#include -#include - -struct psmb_ctx; - -typedef struct _psmb_result psmb_result_t; - -struct psmb_ctx *psmb_new(void); -struct psmb_ctx *psmb_new_mm(void *(*malloc)(size_t size), - void (*free)(void *ptr), - void *(*realloc)(void *ptr, size_t size)); -psmb_result_t psmb_set_pmtu(struct psmb_ctx * ctx, int pmtu); -psmb_result_t psmb_open(struct psmb_ctx *ctx); -void psmb_destroy(struct psmb_ctx *ctx); -int psmb_getfd(struct psmb_ctx *ctx); -bool psmb_need_write_wait(psmb_result_t result); -psmb_result_t psmb_ev_rd(struct psmb_ctx *ctx); -psmb_result_t psmb_ev_wr(struct psmb_ctx *ctx); -psmb_result_t psmb_ev_ex(struct psmb_ctx *ctx); -psmb_result_t psmb_subscribe(struct psmb_ctx * ctx, char *channel); -psmb_result_t psmb_publish(struct psmb_ctx * ctx, char *channel, - void *data, size_t size); -bool psmb_message(struct psmb_ctx * ctx, char **channel, - void **data, size_t *size); - -#endif