Changeset 0196c47 for protocols/msn
- Timestamp:
- 2006-01-04T11:33:29Z (19 years ago)
- Branches:
- master
- Children:
- 7e563ed
- Parents:
- 2a6ca4f
- Location:
- protocols/msn
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/msn.h
r2a6ca4f r0196c47 131 131 132 132 int msn_chat_id; 133 extern struct msn_away_state msn_away_state_list[];134 extern struct msn_status_code msn_status_code_list[];133 extern const struct msn_away_state msn_away_state_list[]; 134 extern const struct msn_status_code msn_status_code_list[]; 135 135 136 136 /* Keep a list of all the active connections. We need these lists because … … 156 156 157 157 /* tables.c */ 158 struct msn_away_state *msn_away_state_by_number( int number );159 struct msn_away_state *msn_away_state_by_code( char *code );160 struct msn_away_state *msn_away_state_by_name( char *name );161 struct msn_status_code *msn_status_by_number( int number );158 const struct msn_away_state *msn_away_state_by_number( int number ); 159 const struct msn_away_state *msn_away_state_by_code( char *code ); 160 const struct msn_away_state *msn_away_state_by_name( char *name ); 161 const struct msn_status_code *msn_status_by_number( int number ); 162 162 163 163 /* sb.c */ -
protocols/msn/tables.c
r2a6ca4f r0196c47 27 27 #include "msn.h" 28 28 29 struct msn_away_state msn_away_state_list[] =29 const struct msn_away_state msn_away_state_list[] = 30 30 { 31 31 { 0, "NLN", "Available" }, … … 40 40 }; 41 41 42 struct msn_away_state *msn_away_state_by_number( int number )42 const struct msn_away_state *msn_away_state_by_number( int number ) 43 43 { 44 44 int i; … … 51 51 } 52 52 53 struct msn_away_state *msn_away_state_by_code( char *code )53 const struct msn_away_state *msn_away_state_by_code( char *code ) 54 54 { 55 55 int i; … … 62 62 } 63 63 64 struct msn_away_state *msn_away_state_by_name( char *name )64 const struct msn_away_state *msn_away_state_by_name( char *name ) 65 65 { 66 66 int i; … … 73 73 } 74 74 75 struct msn_status_code msn_status_code_list[] =75 const struct msn_status_code msn_status_code_list[] = 76 76 { 77 77 { 200, "Invalid syntax", 0 }, … … 144 144 }; 145 145 146 struct msn_status_code *msn_status_by_number( int number )146 const struct msn_status_code *msn_status_by_number( int number ) 147 147 { 148 148 static struct msn_status_code *unknown = NULL;
Note: See TracChangeset
for help on using the changeset viewer.