Plan 9 from Bell Labs’s /usr/web/sources/plan9/acme/bin/source/adict/win.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


enum
{
	False,
	True,
	EVENTSIZE=256,
};


typedef struct Event Event;
struct Event
{
	int	c1;
	int	c2;
	int	q0;
	int	q1;
	int	flag;
	int	nb;
	int	nr;
	char	b[EVENTSIZE*UTFmax+1];
	Rune	r[EVENTSIZE+1];
};


typedef struct Win Win;
struct Win
{
	int	winid;
	int	addr;
	Biobuf *body;
	int	ctl;
	int	data;
	int	event;
	char	buf[512];
	char	*bufp;
	int	nbuf;
};

int     dead(Win*);
void	wnew(Win*);
void	wwritebody(Win*, char *s, int n);
void	wread(Win*, uint, uint, char*);
void	wclean(Win*);
void	wname(Win*, char*);
void	wdormant(Win*);
void	wevent(Win*, Event*);
void	wtagwrite(Win*, char*, int);
void	wwriteevent(Win*, Event*);
void	wslave(Win*, Channel*);	/* chan(Event) */
void	wreplace(Win*, char*, char*, int);
void	wselect(Win*, char*);
int	wdel(Win*);
int	wreadall(Win*, char**);

void	ctlwrite(Win*, char*);
int	getec(Win*);
int	geten(Win*);
int	geter(Win*, char*, int*);
int	openfile(Win*, char*);
void	openbody(Win*, int);

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.