type
    Library_t = unknown 34,

    Device_t = struct {
	Library_t dd_Library;
    },

    Unit_t = struct {
	*MsgPort unit_MsgPort;
	byte unit_flags;
	byte unit_pad;
	uint unit_OpenCnt;
    };

byte
    UNITF_ACTIVE = 1 << 0,
    UNITF_INTASK = 1 << 1;

extern
    AddDevice(*Device_t d)void,
    RemDevice(*Device_t d)bool;
