| RSA BSAFE Micro Edition Suite |
Streamlined security for mobile and embedded devices |
 
![]() |
00001 /* $Id: r_strtbl.h,v 1.13 2003/09/19 07:12:36 sfruenke Exp $ */
00002 /*
00003 * Copyright (C) 1998-2003 RSA Security Inc. All rights reserved.
00004 *
00005 * This work contains proprietary information of RSA Security.
00006 * Distribution is limited to authorized licensees of RSA
00007 * Security. Any unauthorized reproduction, distribution or
00008 * modification of this work is strictly prohibited.
00009 */
00015 #ifndef HEADER_COMMON_R_STRTBL_H
00016 #define HEADER_COMMON_R_STRTBL_H
00017
00018 #ifdef __cplusplus
00019 extern "C" {
00020 #endif
00021
00022 /* Description type defines */
00023 #define R_STRTBL_SHORT_DESCRIPTION 1
00024 #define R_STRTBL_LONG_DESCRIPTION 2
00025
00026 /* The code definition and string structure */
00027 typedef struct r_strtbl_st
00028 {
00029 int code;
00030 char *short_desc;
00031 char *long_desc;
00032 } R_STRTBL;
00033
00034 char * R_CDECL R_STRTBL_code_to_description(R_STRTBL *table, int code, int desc_type);
00035 char * R_CDECL R_STRTBL_code_to_description_x(R_STRTBL *table, int code, int desc_type,
00036 char *default_desc);
00037
00038 int R_CDECL R_STRTBL_description_to_code(R_STRTBL *table, char *desc, int desc_type);
00039 int R_CDECL R_STRTBL_description_to_code_x(R_STRTBL *table, char *desc, int desc_type,
00040 int default_code);
00041
00042 #ifdef __cplusplus
00043 }
00044 #endif
00045
00046 #endif /* HEADER_COMMON_R_STRTBL_H */
00047