	IFND SYSTEM_TASKS_I
SYSTEM_TASKS_I  SET  1

**
**  $VER: tasks.i V0.8B
**
**  (C) Copyright 1996-1997 DreamWorld Productions.
**      All Rights Reserved.
**

	IFND	DPKERNEL_I
	include	'games/dpkernel.i'
	ENDC

*****************************************************************************
* This task structure is lodged into tc_UserData (see exec/tasks.i), so
* you may not change that field when using GMS.  A new UserData field exists
* here which you can use if necessary.

TASKVERSION = 1
TAGS_TASK   = ((ID_SPCTAGS<<16)|ID_TASK)

    STRUCTURE	DPKTask,HEAD_SIZEOF
	APTR	GT_UserData        ;Pointer to user data, no restrictions.
	APTR	GT_TaskName        ;Name of the task if specified. (READ ONLY)

	*** Private fields start now ***

	APTR	GT_MasterPrefs     ;Master preferences.
	APTR	GT_ScreenPrefs     ;Screen preferences.
	APTR	GT_SoundPrefs      ;Sound preferences.
	APTR	GT_BlitterPrefs    ;Blitter preferences.
	APTR	GT_ResourceChain   ;The resource chain, private.
	LONG	GT_ReqStatus       ;Used internally.
	LONG	GT_BlitKey         ;Used to store resource key.
	LONG	GT_AudioKey        ;Used to store resource key.
	LONG	GT_ExecNode        ;Task's exec node.
	APTR	GT_DestructStack   ;Pointer to self destruct exit stack.
	APTR	GT_DestructCode    ;Pointer to self destruct exit code.
	BYTE	GT_AlertState      ;On/Off.
	BYTE	GT_Switched        ;Set if task is in Switch().
	WORD	GT_DebugStep       ;Debug tree stepping position.
	BYTE	GT_AwakeSig        ;Signal for waking this task.
	BYTE	GT_Pad             ;Reserved.
	LONG	GT_TotalData       ;Total data memory in use.
	LONG	GT_TotalVideo      ;Total video memory in use.
	LONG	GT_TotalSound      ;Total sound memory in use.
	LONG	GT_TotalBlit       ;Total blitter memory in use.
	LABEL	GT_SIZEOF

CS_OCS =	0
CS_ECS =	1
CS_AGA =	2

  ENDC	;SYSTEM_TASKS_I
