zorder.h

00001 /***************************************************************************
00002                           zorder.h  -  description
00003                              -------------------
00004     begin                : Sat Jan 31 2004
00005     copyright            : (C) 2004 by Dynacube Team
00006     email                : 
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018  #ifndef __ZORDER_H
00019  #define __ZORDER_H
00020 
00021  #include "proc/proc.h"
00022  #include "common/ktypes.h"
00023  #define WINDOW_MAX 10
00024  
00025 
00026     typedef struct
00027     {
00028      DW pid;
00029      DW window_id;
00030      DW task_id;
00031     }ZORDER;
00032 
00033     extern ZORDER zorder[MAX_PROC * WINDOW_MAX];
00034   
00035     extern DD z_endptr;
00036     
00037     extern DW max_gtask;
00038 
00039     extern DB gtask_avl[MAX_PROC * WINDOW_MAX];
00040    
00041     void z_init();
00042     void z_enq(DW _pid, DW _window_id, DW _task_id);
00043     SDB  z_remove(DW _pid, DW _window_id);
00044     void z_removeAll(DW _pid);
00045     void z_move(DW dest);
00046     void z_moveTop(DW _pid, DW _window_id);
00047 
00048     void printZ();
00049     SDW z_get_max();
00050   
00051  #endif
00052  

Generated on Thu Jul 27 23:52:28 2006 for Dynacube by  doxygen 1.4.7