#ifndef OCSNAMES_H #define OCSNAMES_H /* Do not include osw-x.h so both xsw and swterm can use this */ typedef struct _xsw_ocsn_struct xsw_ocsn_struct; #define XSW_OCSN(p) ((xsw_ocsn_struct *)(p)) #define OCS_TYPE_GARBAGE 0 /* * Object Create Script Name: */ struct _xsw_ocsn_struct { int code; char *name; image_t *icon, /* Display on viewscreen */ *eco_icon; /* For use in the economy list */ }; extern "C" xsw_ocsn_struct **xsw_ocsn; extern "C" int total_ocsns; extern "C" xsw_ocsn_struct *OCSNGetPtr( xsw_ocsn_struct **list, const int total, const int ocsn_num ); extern "C" int OCSNGetByCode( xsw_ocsn_struct **list, const int total, const int code ); extern "C" void OCSNClear(xsw_ocsn_struct ***list, int *total); #endif /* OCSNAMES_H */