shithub: ircd

ref: b579d46f62e61c4fbb97ed9edd024ddb26def34d
dir: /dat.h/

View raw version
typedef struct Prefix Prefix;
typedef struct Request Request;
typedef struct Command Command;
typedef struct Reply Reply;

#pragma varargck type "R" Request

struct Prefix
{
	char *name;
	char *user;
	char *host;
};

struct Request
{
	Command *cmd;
	Prefix prefix;
	char *args[15];
};

struct Command
{
	char *name;
	void (*func)(Request*);
};

struct Reply
{
	int nr;
	char *msg;
};

extern int debug;