mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	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.
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user