Changeset 5465:d5e7bc292531 in roaraudio for libroar/config.c


Ignore:
Timestamp:
03/31/12 02:30:26 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

no longer use fixed protocol version (_ROAR_MESSAGE_VERSION=0).
protocol version is now used by setting in message object.
If using connection based req (roar_req()) it will use version from connection
object setting. The connection object get's a default from the config.
The config key is "protocolversion".
roard will answer in the same version as the request was send in.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/config.c

    r5381 r5465  
    5858  config.connect_internal = NULL; 
    5959  config.daemonimage      = NULL; 
     60  config.protocolversion  = -1; // use default. 
    6061 
    6162  if ( home != NULL ) { 
     
    319320    ROAR_WARN("roar_libroar_config_parse(*): Unknown serverflag: %s", v); 
    320321   } 
     322  } else if ( !strcmp(k, "protocolversion") ) { 
     323   config->protocolversion = atoi(v); 
    321324  } else { 
    322325   ROAR_WARN("roar_libroar_config_parse(*): Unknown option: %s", k); 
Note: See TracChangeset for help on using the changeset viewer.