Changeset 4687:a2f7522c22ca in roaraudio


Ignore:
Timestamp:
12/22/10 04:13:09 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added protocol IDs for IRC, DCC and Echo

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/roaraudio/client.h

    r4668 r4687  
    4545#define ROAR_PROTO_RSOUND           9 
    4646#define ROAR_PROTO_RPLAY           10 
     47#define ROAR_PROTO_IRC             11 /* ID just for fun */ 
     48#define ROAR_PROTO_DCC             12 
     49#define ROAR_PROTO_ECHO            13 /* for testing and stuff */ 
    4750 
    4851#define ROAR_BYTEORDER_UNKNOWN      0x00 
  • libroar/ctl.c

    r4614 r4687  
    538538 } else if ( !strcasecmp(proto, "rplay") ) { 
    539539  return ROAR_PROTO_RPLAY; 
     540 } else if ( !strcasecmp(proto, "irc") ) { 
     541  return ROAR_PROTO_IRC; 
     542 } else if ( !strcasecmp(proto, "dcc") ) { 
     543  return ROAR_PROTO_DCC; 
     544 } else if ( !strcasecmp(proto, "echo") ) { 
     545  return ROAR_PROTO_ECHO; 
    540546 } 
    541547 
     
    554560  case ROAR_PROTO_RSOUND:    return "RSound";    break; 
    555561  case ROAR_PROTO_RPLAY:     return "RPlay";     break; 
     562  case ROAR_PROTO_IRC:       return "IRC";       break; 
     563  case ROAR_PROTO_DCC:       return "DCC";       break; 
     564  case ROAR_PROTO_ECHO:      return "Echo";      break; 
    556565  default: 
    557566    return "(unknown)"; 
Note: See TracChangeset for help on using the changeset viewer.