Changeset 5254:4b808f2c219c in roaraudio for libroar/vio_dstr.c


Ignore:
Timestamp:
11/13/11 17:46:42 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added some more consts to DSTR and corrected proto VIO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio_dstr.c

    r5253 r5254  
    3838#ifndef ROAR_WITHOUT_VIO_DSTR 
    3939struct _roar_vio_dstr_type { 
    40  int    id; 
    41  char * name; 
     40 const int    id; 
     41 const char * name; 
    4242 int (* setdef) (struct roar_vio_dstr_chain * cur,   struct roar_vio_dstr_chain * next); 
    4343 int (* openvio)(struct roar_vio_calls      * calls, struct roar_vio_calls      * dst, struct roar_vio_dstr_chain * cur); 
     
    225225}; 
    226226 
    227 int     roar_vio_dstr_get_type(char * str) { 
     227int     roar_vio_dstr_get_type(const char * str) { 
    228228 int i; 
    229229 
     
    247247} 
    248248 
    249 char *  roar_vio_dstr_get_name(int type) { 
     249const char *  roar_vio_dstr_get_name(const int type) { 
    250250 struct _roar_vio_dstr_type * ret; 
    251251 
Note: See TracChangeset for help on using the changeset viewer.