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 --- docs/man/nng_pipe_notify.3.adoc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'docs') diff --git a/docs/man/nng_pipe_notify.3.adoc b/docs/man/nng_pipe_notify.3.adoc index 314faebd..d5d75400 100644 --- a/docs/man/nng_pipe_notify.3.adoc +++ b/docs/man/nng_pipe_notify.3.adoc @@ -1,7 +1,8 @@ = nng_pipe_notify(3) // -// Copyright 2018 Staysail Systems, Inc. +// Copyright 2019 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV +// Copyright 2019 Devolutions // // This document is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -19,15 +20,15 @@ nng_pipe_notify - register pipe notification callback ---- #include -enum { +typedef enum { NNG_PIPE_EV_ADD_PRE, NNG_PIPE_EV_ADD_POST, NNG_PIPE_EV_REM_POST, -}; +} nng_pipe_ev; -typedef void (*nng_pipe_cb)(nng_pipe, int, void *); +typedef void (*nng_pipe_cb)(nng_pipe, nng_pipe_ev, void *); -int nng_pipe_notify(nng_socket s, int ev, nng_pipe_cb cb, void *arg); +int nng_pipe_notify(nng_socket s, nng_pipe_ev ev, nng_pipe_cb cb, void *arg); ---- == DESCRIPTION -- cgit v1.2.3-70-g09d2