Skip to content

Commit

Permalink
export new api: free
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
  • Loading branch information
Jianhui Zhao committed Apr 27, 2019
1 parent 81d1bb6 commit 1b91718
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/uwsc.c
Expand Up @@ -615,6 +615,7 @@ int uwsc_init(struct uwsc_client *cl, struct ev_loop *loop, const char *url,
cl->send_ex = uwsc_send_ex;
cl->send_close = uwsc_send_close;
cl->ping = uwsc_ping;
cl->free = uwsc_free;
cl->start_time = ev_now(cl->loop);
cl->ping_interval = ping_interval;

Expand Down
1 change: 1 addition & 0 deletions src/uwsc.h
Expand Up @@ -108,6 +108,7 @@ struct uwsc_client {
int (*send_ex)(struct uwsc_client *cl, int op, int num, ...);
int (*send_close)(struct uwsc_client *cl, int code, const char *reason);
void (*ping)(struct uwsc_client *cl);
void (*free)(struct uwsc_client *cl);
};

/*
Expand Down

0 comments on commit 1b91718

Please sign in to comment.