Changes in trunk/include/sh_error.h [20:27]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/sh_error.h
r20 r27 30 30 SH_ERR_T_START = 0, 31 31 32 /* 1- 9= SH_LEVEL_XXX */32 /* 1-13 = SH_LEVEL_XXX */ 33 33 34 34 SH_ERR_T_RO = SH_LEVEL_READONLY, … … 40 40 SH_ERR_T_USER0 = SH_LEVEL_USER0, 41 41 SH_ERR_T_USER1 = SH_LEVEL_USER1, 42 SH_ERR_T_USER2 = SH_LEVEL_USER2, 43 SH_ERR_T_USER3 = SH_LEVEL_USER3, 44 SH_ERR_T_USER4 = SH_LEVEL_USER4, 42 45 SH_ERR_T_PRELINK = SH_LEVEL_PRELINK, 43 46 44 SH_ERR_T_DIR = 1 0,45 SH_ERR_T_FILE = 1 1,46 SH_ERR_T_NAME = 1 2,47 SH_ERR_T_DIR = 13, 48 SH_ERR_T_FILE = 14, 49 SH_ERR_T_NAME = 15, 47 50 48 SH_ERR_T_END = 1 351 SH_ERR_T_END = 16 49 52 }; 50 53 … … 81 84 /* set mask for message class 82 85 */ 83 int sh_error_log_mask (c har * c);84 int sh_error_print_mask (c har * c);85 int sh_error_mail_mask (c har * c);86 int sh_error_export_mask (c har * c);87 int sh_error_syslog_mask (c har * c);88 int sh_error_external_mask (c har * c);89 int sh_error_database_mask (c har * c);90 int sh_error_prelude_mask (c har * c);86 int sh_error_log_mask (const char * c); 87 int sh_error_print_mask (const char * c); 88 int sh_error_mail_mask (const char * c); 89 int sh_error_export_mask (const char * c); 90 int sh_error_syslog_mask (const char * c); 91 int sh_error_external_mask (const char * c); 92 int sh_error_database_mask (const char * c); 93 int sh_error_prelude_mask (const char * c); 91 94 92 95 … … 99 102 #ifdef SH_WITH_SERVER 100 103 void sh_error_set_peer(const char * str); 101 int set_flag_sep_log (c har * str);104 int set_flag_sep_log (const char * str); 102 105 #endif 103 106 … … 108 111 /* convert a string to a numeric priority 109 112 */ 110 int sh_error_convert_level (c har * str_s);113 int sh_error_convert_level (const char * str_s); 111 114 112 115 /* only to stderr (GOOD/BAD) … … 116 119 /* set syslog facility 117 120 */ 118 int sh_log_set_facility (c har * c);121 int sh_log_set_facility (const char * c); 119 122 120 123 /* define message header 121 124 */ 122 int sh_error_ehead (/*@null@*/c har * s);125 int sh_error_ehead (/*@null@*/const char * s); 123 126 124 127 /* set level for error logging … … 128 131 /* set severity levels 129 132 */ 130 int sh_error_set_iv (int iv, c har * severity_s);133 int sh_error_set_iv (int iv, const char * severity_s); 131 134 132 135 /* set priorities … … 178 181 /* (re)set the console device(s) 179 182 */ 180 int sh_log_set_console (c har * address);183 int sh_log_set_console (const char * address); 181 184 void reset_count_dev_console(void); 182 185 … … 188 191 /* enable message queue 189 192 */ 190 int enable_msgq(c har * foo);193 int enable_msgq(const char * foo); 191 194 #endif 192 195
Note:
See TracChangeset
for help on using the changeset viewer.