Changeset 3127:09663de087b8 in roaraudio


Ignore:
Timestamp:
01/13/10 23:13:19 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added --list-proto

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/roard.c

    r3076 r3127  
    153153        "     --sock            - Filename for UNIX Domain Socket\n" 
    154154        "     --proto PROTO     - Use PROTO as protocol on Socket\n" 
     155        "     --list-proto      - List supported protocols\n" 
    155156        "     --new-sock        - Parameters for new socket follows\n" 
    156157#ifdef ROAR_HAVE_LIBSLP 
     
    178179 printf("\n"); 
    179180} 
     181 
     182static void list_proto (void) { 
     183 printf("  Protocol Flag Subsys - Description\n"); 
     184 printf("------------------------------------------------------\n"); 
     185 printf("  roar          WM LRX - RoarAudio native protocol\n"); 
     186#if !defined(ROAR_WITHOUT_DCOMP_EMUL_ESD) && defined(ROAR_HAVE_H_ESD) 
     187 printf("  esd           W      - EsounD emulation\n"); 
     188#endif 
     189} 
     190 
    180191#endif 
    181192 
     
    12981309   } 
    12991310#endif 
     1311  } else if ( strcmp(k, "--list-proto") == 0 ) { 
     1312   list_proto(); 
     1313   return 0; 
    13001314 
    13011315  } else if ( strcmp(k, "-t") == 0 || strcmp(k, "--tcp") == 0 ) { 
Note: See TracChangeset for help on using the changeset viewer.