diff options
| author | Garrett D'Amore <garrett@damore.org> | 2016-12-22 17:38:46 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2016-12-22 17:38:46 -0800 |
| commit | 89c847f1f52969ee2ae6ed35018eef40366ca061 (patch) | |
| tree | ba3f3c2da64e4a74c69d315b2198df59bcd4441b /src/core/message.h | |
| parent | 934c1316ae47754a2e368c65228c3cbfe552680f (diff) | |
| download | nng-89c847f1f52969ee2ae6ed35018eef40366ca061.tar.gz nng-89c847f1f52969ee2ae6ed35018eef40366ca061.tar.bz2 nng-89c847f1f52969ee2ae6ed35018eef40366ca061.zip | |
Work on endpoints. More C99 & type cleanups.
Diffstat (limited to 'src/core/message.h')
| -rw-r--r-- | src/core/message.h | 51 |
1 files changed, 24 insertions, 27 deletions
diff --git a/src/core/message.h b/src/core/message.h index 7b17a007..5c742e44 100644 --- a/src/core/message.h +++ b/src/core/message.h @@ -1,33 +1,30 @@ -/* - * Copyright 2016 Garrett D'Amore <garrett@damore.org> - * - * This software is supplied under the terms of the MIT License, a - * copy of which should be located in the distribution where this - * file was obtained (LICENSE.txt). A copy of the license may also be - * found online at https://opensource.org/licenses/MIT. - */ +// +// Copyright 2016 Garrett D'Amore <garrett@damore.org> +// +// This software is supplied under the terms of the MIT License, a +// copy of which should be located in the distribution where this +// file was obtained (LICENSE.txt). A copy of the license may also be +// found online at https://opensource.org/licenses/MIT. +// #ifndef CORE_MESSAGE_H #define CORE_MESSAGE_H -/* - * Internally used message API. Again, this stuff is not part of our public - * API. - */ +// Internally used message API. Again, this is not part of our public API. -extern int nni_msg_alloc(nni_msg_t *, size_t); -extern void nni_msg_free(nni_msg_t); -extern int nni_msg_realloc(nni_msg_t, size_t); -extern void *nni_msg_header(nni_msg_t, size_t *); -extern void *nni_msg_body(nni_msg_t, size_t *); -extern int nni_msg_append(nni_msg_t, const void *, size_t); -extern int nni_msg_prepend(nni_msg_t, const void *, size_t); -extern int nni_msg_append_header(nni_msg_t, const void *, size_t); -extern int nni_msg_prepend_header(nni_msg_t, const void *, size_t); -extern int nni_msg_trim(nni_msg_t, size_t); -extern int nni_msg_trunc(nni_msg_t, size_t); -extern int nni_msg_trim_header(nni_msg_t, size_t); -extern int nni_msg_trunc_header(nni_msg_t, size_t); -extern int nni_msg_pipe(nni_msg_t, nni_pipe_t *); +extern int nni_msg_alloc(nni_msg **, size_t); +extern void nni_msg_free(nni_msg *); +extern int nni_msg_realloc(nni_msg *, size_t); +extern void *nni_msg_header(nni_msg *, size_t *); +extern void *nni_msg_body(nni_msg *, size_t *); +extern int nni_msg_append(nni_msg *, const void *, size_t); +extern int nni_msg_prepend(nni_msg *, const void *, size_t); +extern int nni_msg_append_header(nni_msg *, const void *, size_t); +extern int nni_msg_prepend_header(nni_msg *, const void *, size_t); +extern int nni_msg_trim(nni_msg *, size_t); +extern int nni_msg_trunc(nni_msg *, size_t); +extern int nni_msg_trim_header(nni_msg *, size_t); +extern int nni_msg_trunc_header(nni_msg *, size_t); +extern int nni_msg_pipe(nni_msg *, nni_pipe **); -#endif /* CORE_SOCKET_H */ +#endif // CORE_SOCKET_H |
