Changes in protocols/msn/tables.c [0714d51:6048744]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/tables.c
r0714d51 r6048744 29 29 const struct msn_away_state msn_away_state_list[] = 30 30 { 31 { "NLN", "" },32 { "AWY", "Away" },33 { "BSY", "Busy" },34 { "IDL", "Idle" },35 { "BRB", "Be Right Back" },36 { "PHN", "On the Phone" },37 { "LUN", "Out to Lunch" },38 { "HDN", "Hidden" },39 { "", "" }31 { 0, "NLN", "Available" }, 32 { 1, "BSY", "Busy" }, 33 { 3, "IDL", "Idle" }, 34 { 5, "BRB", "Be Right Back" }, 35 { 7, "AWY", "Away" }, 36 { 9, "PHN", "On the Phone" }, 37 { 11, "LUN", "Out to Lunch" }, 38 { 13, "HDN", "Hidden" }, 39 { -1, "", "" } 40 40 }; 41 42 const struct msn_away_state *msn_away_state_by_number( int number ) 43 { 44 int i; 45 46 for( i = 0; msn_away_state_list[i].number > -1; i ++ ) 47 if( msn_away_state_list[i].number == number ) 48 return( msn_away_state_list + i ); 49 50 return( NULL ); 51 } 41 52 42 53 const struct msn_away_state *msn_away_state_by_code( char *code ) … … 44 55 int i; 45 56 46 for( i = 0; *msn_away_state_list[i].code; i ++ )57 for( i = 0; msn_away_state_list[i].number > -1; i ++ ) 47 58 if( g_strcasecmp( msn_away_state_list[i].code, code ) == 0 ) 48 59 return( msn_away_state_list + i ); 49 60 50 return NULL;61 return( NULL ); 51 62 } 52 63 … … 55 66 int i; 56 67 57 for( i = 0; *msn_away_state_list[i].code; i ++ )68 for( i = 0; msn_away_state_list[i].number > -1; i ++ ) 58 69 if( g_strcasecmp( msn_away_state_list[i].name, name ) == 0 ) 59 70 return( msn_away_state_list + i ); 60 71 61 return NULL;72 return( NULL ); 62 73 } 63 74
Note: See TracChangeset
for help on using the changeset viewer.