| 1 |
/* |
/* |
| 2 |
utils.c: |
utils.c: |
| 3 |
Copyright (C) 2003 Ludovic Rousseau |
Copyright (C) 2003-2004 Ludovic Rousseau |
| 4 |
|
|
| 5 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
| 6 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
| 21 |
* $Id$ |
* $Id$ |
| 22 |
*/ |
*/ |
| 23 |
|
|
|
#define LunToReaderIndex(Lun) (Lun>>16) |
|
|
|
|
| 24 |
#ifndef TRUE |
#ifndef TRUE |
| 25 |
#define FALSE 0 |
#define FALSE 0 |
| 26 |
#define TRUE 1 |
#define TRUE 1 |
| 27 |
#endif |
#endif |
| 28 |
|
|
| 29 |
int CheckLun(DWORD Lun); |
void InitReaderIndex(void); |
| 30 |
|
int GetNewReaderIndex(const DWORD Lun); |
| 31 |
|
int LunToReaderIndex(DWORD Lun); |
| 32 |
|
int ReleaseReaderIndex(const int index); |
| 33 |
|
|