Changeset 5279:bb3ff1f2be28 in roaraudio for roard/req.c


Ignore:
Timestamp:
11/21/11 18:28:31 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support to hostid and license to server info struct, added support for contact, serial and uiurl ITST to roard.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/req.c

    r5216 r5279  
    750750 struct roar_server_info info; 
    751751 uint16_t * d16; 
     752#ifdef ROAR_HAVE_GETHOSTID 
     753 long hostid; 
     754 char hostidbuf[64]; 
     755#endif 
    752756 
    753757 if ( mes->datalen != 4 ) 
     
    771775   } 
    772776 
     777   info.license = "GPL-3.0"; 
     778 
     779#ifdef ROAR_HAVE_GETHOSTID 
     780   hostid = gethostid(); 
     781   snprintf(hostidbuf, sizeof(hostidbuf), sizeof(long) == 8 ? "0x%.16lx" : "0x%.8lx", hostid); 
     782   info.hostid = hostidbuf; 
     783#endif 
     784 
    773785   if ( !!strcmp(g_config->location, CONF_DEF_STRING) ) 
    774786    info.location = g_config->location; 
    775787 
    776788   if ( !!strcmp(g_config->description, CONF_DEF_STRING) ) 
    777    info.description = g_config->description; 
     789    info.description = g_config->description; 
     790 
     791   info.contact = g_config->contact; 
     792   info.serial  = g_config->serial; 
     793   info.uiurl   = g_config->uiurl; 
    778794 
    779795#ifdef ROAR_HAVE_UNAME 
Note: See TracChangeset for help on using the changeset viewer.