#ifndef OCSINFOFIO_H #define OCSINFOFIO_H typedef struct _ocs_info_struct ocs_info_struct; #define OCS_INFO(p) ((ocs_info_struct *)(p)) /* * OCS Info: */ struct _ocs_info_struct { int code; char *name, *icon_file, *icon_eco_file; }; extern "C" ocs_info_struct *OCSInfoNew(void); extern "C" void OCSInfoDelete(ocs_info_struct *ocs_info); extern "C" int OCSInfoFileOpen( ocs_info_struct ***list, int *total, const char *path, void (*progress_cb)(unsigned long, unsigned long, void *), void *progress_data, void (*print_warning)(const char *s) ); #endif /* OCSINFOFIO_H */