home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 6
/
Sonderheft_6-96.iso
/
pd
/
disktools
/
scsi_list
/
source
/
scsi_locale.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-11-03
|
8KB
|
274 lines
#ifndef SCSI_LOCALE_H
#define SCSI_LOCALE_H
/****************************************************************************/
/* This file was created automatically by CatComp.
* Do NOT edit by hand!
*/
#ifndef EXEC_TYPES_H
#include <exec/types.h>
#endif
#ifdef CATCOMP_ARRAY
#undef CATCOMP_NUMBERS
#undef CATCOMP_STRINGS
#define CATCOMP_NUMBERS
#define CATCOMP_STRINGS
#endif
#ifdef CATCOMP_BLOCK
#undef CATCOMP_STRINGS
#define CATCOMP_STRINGS
#endif
/****************************************************************************/
#ifdef CATCOMP_NUMBERS
#define MSG_Vendor 0
#define MSG_Product 1
#define MSG_Revision 2
#define MSG_Device_Type 3
#define MSG_Standard 4
#define MSG_Removable 5
#define MSG_Unable_to_Open_icon 6
#define MSG_Unable_to_Open_MUI 7
#define MSG_Unable_to_Create_Cust_Class 8
#define MSG_Device 9
#define MSG_Failed_to_Create_App 10
#define MSG_Unit 11
#define MSG_Unable_to_Allocate_Memory 12
#define MSG_Unable_to_Create_Mess_Port 13
#define MSG_Unable_to_Create_StandardIO 14
#define MSG_Not_Used 15
#define MSG_Rel_Addr 16
#define MSG_16_Wide 17
#define MSG_32_Wide 18
#define MSG_List 19
#define MSG_Direct_Access_Device 20
#define MSG_Sequential_Access_Device 21
#define MSG_Printer_Device 22
#define MSG_Processor_Device 23
#define MSG_Write_Once_Device 24
#define MSG_CDROM_Device 25
#define MSG_Scanner_Device 26
#define MSG_Optical_Device 27
#define MSG_Medium_Changer_Device 28
#define MSG_Communications_Device 29
#define MSG_Unknown_Device 30
#endif /* CATCOMP_NUMBERS */
/****************************************************************************/
#ifdef CATCOMP_STRINGS
#define MSG_Vendor_STR "Vendor"
#define MSG_Product_STR "Product"
#define MSG_Revision_STR "Revision"
#define MSG_Device_Type_STR "Device Type"
#define MSG_Standard_STR "Standard"
#define MSG_Removable_STR "Removable"
#define MSG_Unable_to_Open_icon_STR "Unable to open icon.library"
#define MSG_Unable_to_Open_MUI_STR "Unable to open muimaster.library"
#define MSG_Unable_to_Create_Cust_Class_STR "Unable to Create Custom Classes"
#define MSG_Device_STR "Device"
#define MSG_Failed_to_Create_App_STR "Failed to create application"
#define MSG_Unit_STR "Unit"
#define MSG_Unable_to_Allocate_Memory_STR "Unable to Allocate Memory"
#define MSG_Unable_to_Create_Mess_Port_STR "Unable to Create Message Port"
#define MSG_Unable_to_Create_StandardIO_STR "Unable to Create Standard IO"
#define MSG_Not_Used_STR "Not Used"
#define MSG_Rel_Addr_STR "Relative Addressing"
#define MSG_16_Wide_STR "16 Bit Wide Data Transfer"
#define MSG_32_Wide_STR "32 Bit Wide Data Transfer"
#define MSG_List_STR "List"
#define MSG_Direct_Access_Device_STR "Direct-access device (e.g., magnetic disk)"
#define MSG_Sequential_Access_Device_STR "Sequential-access device (e.g., magnetic tape)"
#define MSG_Printer_Device_STR "Printer device"
#define MSG_Processor_Device_STR "Processor device"
#define MSG_Write_Once_Device_STR "Write-once device (e.g., some optical disks)"
#define MSG_CDROM_Device_STR "CD-ROM device"
#define MSG_Scanner_Device_STR "Scanner device"
#define MSG_Optical_Device_STR "Optical memory device (e.g., some optical disks)"
#define MSG_Medium_Changer_Device_STR "Medium Changer device (e.g., jukeboxes)"
#define MSG_Communications_Device_STR "Communications device"
#define MSG_Unknown_Device_STR "Unknown SCSI device type"
#endif /* CATCOMP_STRINGS */
/****************************************************************************/
#ifdef CATCOMP_ARRAY
struct CatCompArrayType
{
LONG cca_ID;
STRPTR cca_Str;
};
static const struct CatCompArrayType CatCompArray[] =
{
{MSG_Vendor,(STRPTR)MSG_Vendor_STR},
{MSG_Product,(STRPTR)MSG_Product_STR},
{MSG_Revision,(STRPTR)MSG_Revision_STR},
{MSG_Device_Type,(STRPTR)MSG_Device_Type_STR},
{MSG_Standard,(STRPTR)MSG_Standard_STR},
{MSG_Removable,(STRPTR)MSG_Removable_STR},
{MSG_Unable_to_Open_icon,(STRPTR)MSG_Unable_to_Open_icon_STR},
{MSG_Unable_to_Open_MUI,(STRPTR)MSG_Unable_to_Open_MUI_STR},
{MSG_Unable_to_Create_Cust_Class,(STRPTR)MSG_Unable_to_Create_Cust_Class_STR},
{MSG_Device,(STRPTR)MSG_Device_STR},
{MSG_Failed_to_Create_App,(STRPTR)MSG_Failed_to_Create_App_STR},
{MSG_Unit,(STRPTR)MSG_Unit_STR},
{MSG_Unable_to_Allocate_Memory,(STRPTR)MSG_Unable_to_Allocate_Memory_STR},
{MSG_Unable_to_Create_Mess_Port,(STRPTR)MSG_Unable_to_Create_Mess_Port_STR},
{MSG_Unable_to_Create_StandardIO,(STRPTR)MSG_Unable_to_Create_StandardIO_STR},
{MSG_Not_Used,(STRPTR)MSG_Not_Used_STR},
{MSG_Rel_Addr,(STRPTR)MSG_Rel_Addr_STR},
{MSG_16_Wide,(STRPTR)MSG_16_Wide_STR},
{MSG_32_Wide,(STRPTR)MSG_32_Wide_STR},
{MSG_List,(STRPTR)MSG_List_STR},
{MSG_Direct_Access_Device,(STRPTR)MSG_Direct_Access_Device_STR},
{MSG_Sequential_Access_Device,(STRPTR)MSG_Sequential_Access_Device_STR},
{MSG_Printer_Device,(STRPTR)MSG_Printer_Device_STR},
{MSG_Processor_Device,(STRPTR)MSG_Processor_Device_STR},
{MSG_Write_Once_Device,(STRPTR)MSG_Write_Once_Device_STR},
{MSG_CDROM_Device,(STRPTR)MSG_CDROM_Device_STR},
{MSG_Scanner_Device,(STRPTR)MSG_Scanner_Device_STR},
{MSG_Optical_Device,(STRPTR)MSG_Optical_Device_STR},
{MSG_Medium_Changer_Device,(STRPTR)MSG_Medium_Changer_Device_STR},
{MSG_Communications_Device,(STRPTR)MSG_Communications_Device_STR},
{MSG_Unknown_Device,(STRPTR)MSG_Unknown_Device_STR},
};
#endif /* CATCOMP_ARRAY */
/****************************************************************************/
#ifdef CATCOMP_BLOCK
static const char CatCompBlock[] =
{
"\x00\x00\x00\x00\x00\x08"
MSG_Vendor_STR "\x00\x00"
"\x00\x00\x00\x01\x00\x08"
MSG_Product_STR "\x00"
"\x00\x00\x00\x02\x00\x0A"
MSG_Revision_STR "\x00\x00"
"\x00\x00\x00\x03\x00\x0C"
MSG_Device_Type_STR "\x00"
"\x00\x00\x00\x04\x00\x0A"
MSG_Standard_STR "\x00\x00"
"\x00\x00\x00\x05\x00\x0A"
MSG_Removable_STR "\x00"
"\x00\x00\x00\x06\x00\x1C"
MSG_Unable_to_Open_icon_STR "\x00"
"\x00\x00\x00\x07\x00\x22"
MSG_Unable_to_Open_MUI_STR "\x00\x00"
"\x00\x00\x00\x08\x00\x20"
MSG_Unable_to_Create_Cust_Class_STR "\x00"
"\x00\x00\x00\x09\x00\x08"
MSG_Device_STR "\x00\x00"
"\x00\x00\x00\x0A\x00\x1E"
MSG_Failed_to_Create_App_STR "\x00\x00"
"\x00\x00\x00\x0B\x00\x06"
MSG_Unit_STR "\x00\x00"
"\x00\x00\x00\x0C\x00\x1A"
MSG_Unable_to_Allocate_Memory_STR "\x00"
"\x00\x00\x00\x0D\x00\x1E"
MSG_Unable_to_Create_Mess_Port_STR "\x00"
"\x00\x00\x00\x0E\x00\x1E"
MSG_Unable_to_Create_StandardIO_STR "\x00\x00"
"\x00\x00\x00\x0F\x00\x0A"
MSG_Not_Used_STR "\x00\x00"
"\x00\x00\x00\x10\x00\x14"
MSG_Rel_Addr_STR "\x00"
"\x00\x00\x00\x11\x00\x1A"
MSG_16_Wide_STR "\x00"
"\x00\x00\x00\x12\x00\x1A"
MSG_32_Wide_STR "\x00"
"\x00\x00\x00\x13\x00\x06"
MSG_List_STR "\x00\x00"
"\x00\x00\x00\x14\x00\x2C"
MSG_Direct_Access_Device_STR "\x00\x00"
"\x00\x00\x00\x15\x00\x30"
MSG_Sequential_Access_Device_STR "\x00\x00"
"\x00\x00\x00\x16\x00\x10"
MSG_Printer_Device_STR "\x00\x00"
"\x00\x00\x00\x17\x00\x12"
MSG_Processor_Device_STR "\x00\x00"
"\x00\x00\x00\x18\x00\x2E"
MSG_Write_Once_Device_STR "\x00\x00"
"\x00\x00\x00\x19\x00\x0E"
MSG_CDROM_Device_STR "\x00"
"\x00\x00\x00\x1A\x00\x10"
MSG_Scanner_Device_STR "\x00\x00"
"\x00\x00\x00\x1B\x00\x32"
MSG_Optical_Device_STR "\x00\x00"
"\x00\x00\x00\x1C\x00\x28"
MSG_Medium_Changer_Device_STR "\x00"
"\x00\x00\x00\x1D\x00\x16"
MSG_Communications_Device_STR "\x00"
"\x00\x00\x00\x1E\x00\x1A"
MSG_Unknown_Device_STR "\x00\x00"
};
#endif /* CATCOMP_BLOCK */
/****************************************************************************/
struct LocaleInfo
{
APTR li_LocaleBase;
APTR li_Catalog;
};
#ifdef CATCOMP_CODE
STRPTR GetString(struct LocaleInfo *li, LONG stringNum)
{
LONG *l;
UWORD *w;
STRPTR builtIn;
l = (LONG *)CatCompBlock;
while (*l != stringNum)
{
w = (UWORD *)((ULONG)l + 4);
l = (LONG *)((ULONG)l + (ULONG)*w + 6);
}
builtIn = (STRPTR)((ULONG)l + 6);
if (LocaleBase)
return(GetCatalogStr(li->li_Catalog,stringNum,builtIn));
return(builtIn);
}
#endif /* CATCOMP_CODE */
/****************************************************************************/
#endif /* SCSI_LOCALE_H */