From 9cf967e9d7fdab6ccf38f80d83e4bf3d1a5e1a67 Mon Sep 17 00:00:00 2001 From: Jake Woltersdorf Date: Sun, 24 Feb 2019 22:40:28 +0800 Subject: fixes #894 nng_pipe_notify could use nng_pipe_ev typedef instead of int - Update nng_pipe_notify manpage including copyright --- include/nng/nng.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/nng/nng.h b/include/nng/nng.h index 4c29e476..487fa4b4 100644 --- a/include/nng/nng.h +++ b/include/nng/nng.h @@ -232,12 +232,12 @@ typedef enum { NNG_PIPE_EV_NUM, // Used internally, must be last. } nng_pipe_ev; -typedef void (*nng_pipe_cb)(nng_pipe, int, void *); +typedef void (*nng_pipe_cb)(nng_pipe, nng_pipe_ev, void *); // nng_pipe_notify registers a callback to be executed when the // given event is triggered. To watch for different events, register // multiple times. Each event can have at most one callback registered. -NNG_DECL int nng_pipe_notify(nng_socket, int, nng_pipe_cb, void *); +NNG_DECL int nng_pipe_notify(nng_socket, nng_pipe_ev, nng_pipe_cb, void *); // nng_getopt_string is special -- it allocates a string to hold the // resulting string, which should be freed with nng_strfree when it is -- cgit v1.2.3-70-g09d2