shithub: mez

ref: 41b28a4595a25d2f1eb076d009ef06460b3276db
dir: /mez.h/

View raw version
typedef struct App App;
typedef struct Chan Chan;
typedef struct Net Net;
typedef struct Text Text;

struct App {
	char *host, *user, *passwd;
};

struct Text {
	Frame;
	Rune *text;
	uint textlen, topline, nlines, linescap, textcap, *lines;
	Rectangle scrollr, bodyr;
	Image *screen, *cols[NCOL];
	Screen *_screen;
};

struct Chan {
	Text body, nicks;
	Rune *topic;
};

struct Net {
	Chan;
	char *name, *host, *state, *nick, *user, *real;
	Chan *channels;
	int fd, id;
};