diff options
author | Thomas Adam <thomas@xteddy.org> | 2014-08-09 20:17:26 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2014-08-09 20:32:01 +0100 |
commit | 0e23ab4ccef2848a90b876db3c0e6a796422544c (patch) | |
tree | dcce67c06b757b283120822be7172fe3da6e60d2 /compat/imsg.h | |
parent | 92997b781a035626bef4e84fbcd7f2282f761a3c (diff) | |
download | rtmux-0e23ab4ccef2848a90b876db3c0e6a796422544c.tar.gz rtmux-0e23ab4ccef2848a90b876db3c0e6a796422544c.tar.bz2 rtmux-0e23ab4ccef2848a90b876db3c0e6a796422544c.zip |
Sync libutil from OpenBSD (imsg)
Changes in the imsg API need to be reflected here as tmux wasn't creating
any clients because of it.
Diffstat (limited to 'compat/imsg.h')
-rw-r--r-- | compat/imsg.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/compat/imsg.h b/compat/imsg.h index f8a78e22..49a2aeb3 100644 --- a/compat/imsg.h +++ b/compat/imsg.h @@ -1,5 +1,5 @@ /* $Id$ */ -/* $OpenBSD: imsg.h,v 1.4 2010/05/26 13:56:07 nicm Exp $ */ +/* $OpenBSD: imsg.h,v 1.3 2013/12/26 17:32:33 eric Exp $ */ /* * Copyright (c) 2006, 2007 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -21,6 +21,9 @@ #include "tmux.h" +#ifndef _IMSG_H_ +#define _IMSG_H_ + #define IBUF_READ_SIZE 65535 #define IMSG_HEADER_SIZE sizeof(struct imsg_hdr) #define MAX_IMSGSIZE 16384 @@ -98,13 +101,15 @@ void imsg_init(struct imsgbuf *, int); ssize_t imsg_read(struct imsgbuf *); ssize_t imsg_get(struct imsgbuf *, struct imsg *); int imsg_compose(struct imsgbuf *, u_int32_t, u_int32_t, pid_t, - int, void *, u_int16_t); + int, const void *, u_int16_t); int imsg_composev(struct imsgbuf *, u_int32_t, u_int32_t, pid_t, int, const struct iovec *, int); struct ibuf *imsg_create(struct imsgbuf *, u_int32_t, u_int32_t, pid_t, u_int16_t); -int imsg_add(struct ibuf *, void *, u_int16_t); +int imsg_add(struct ibuf *, const void *, u_int16_t); void imsg_close(struct imsgbuf *, struct ibuf *); void imsg_free(struct imsg *); int imsg_flush(struct imsgbuf *); void imsg_clear(struct imsgbuf *); + +#endif |