uint
    LAYERSIMPLE 	= 0x0001,
    LAYERSMART		= 0x0002,
    LAYERSUPER		= 0x0004,
    LAYERUPDATING	= 0x0010,
    LAYERBACKDROP	= 0x0040,
    LAYERREFRESH	= 0x0080,
    LAYER_CLIPRECTS_LOST= 0x0100;

ulong
    LMN_REGION		= -1;

type
    MinList_t = unknown 12,
    SignalSemaphore_t = unknown 46,
    List_t = unknown 14,

    Layer_Info_t = struct {
	*Layer li_top_layer;
	*Layer li_check_lp;
	*Layer li_obs;
	MinList_t li_FreeClipRects;
	SignalSemaphore_t li_Lock;
	List_t li_gs_Head;
	ulong li_longreserved;
	uint li_Flags;
	ushort li_fatten_count;
	ushort li_LockLayersCount;
	uint li_LayerInfo_extra_size;
	*uint li_blitbuff;
	*LayerInfo_extra_t li_LayerInfo_extra;
    };

ulong
    NEWLAYERINFO_CALLED = 1,
    ALERTLAYERSNOMEM	= 0x83010000;

/* layer functions and Layer_t are in clip.g */
