shithub: riscv

ref: 0c36c79e9b58b5131d4911b05ede987ce0bb8bde
dir: /sys/src/cmd/btc/dat.h/

View raw version
typedef struct Aux Aux;
typedef struct DirEntry DirEntry;

enum
{
	TROOT,
	TBLOCKS,
	TADDR,
	TADDRSUB,
	TADDRTX,
	TADDRBALANCE,
};

struct DirEntry
{
	char *name;
	Qid qid;
	int par;
	char *(*walk)(Fid *, char *, Qid *);
	char *(*str)(DirEntry *, Aux *);
	void (*write)(Req *);
	int sub[20];
};

struct Aux
{
	char *addr;
	char *str;
};