Changeset 6050:ffc7e321919f in roaraudio


Ignore:
Timestamp:
12/14/14 05:00:41 (9 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Fixed tic-tac-toe plugin, print actual host, not static ROAR_VERSION_STRING

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r6046 r6050  
    99        * Correct output of roar-config --cflags and --libs (pr1) 
    1010        * Moved include of <sys/socket.h> around to re-enable build on *BSD (pr1) 
     11        * Fixed tic-tac-toe plugin, print actual host (pr1) 
    1112 
    1213v. 1.0beta11 - Tue Jan 21 2014 21:04 CET 
  • plugins/universal/tic-tac-toe.c

    r5961 r6050  
    5353"\e[2J\e[H" \ 
    5454" Tic Tac Toe\r\n" \ 
    55 " (running: roard " ROAR_VERSION_STRING ")\r\n" \ 
     55" (running: %s, API: %s)\r\n" \ 
    5656"\r\n" \ 
    5757"IDs:            Alternative IDs:\r\n" \ 
     
    211211} 
    212212 
    213 static void draw_help(struct roar_buffer ** obuffer) { 
     213static void draw_help(struct roar_buffer ** obuffer, struct roar_dl_librarypara * pluginpara) { 
    214214 struct roar_buffer * buf; 
    215215 ssize_t len = 0; 
     
    219219  return; 
    220220 
    221  snprintf(data, _DISPLAY_BUFFER_LEN, _HELP, MSG__HELP); 
     221 snprintf(data, _DISPLAY_BUFFER_LEN, _HELP, 
     222          pluginpara == NULL || pluginpara->appname    == NULL ? "<unknown>" : pluginpara->appname, 
     223          pluginpara == NULL || pluginpara->abiversion == NULL ? "<unknown>" : pluginpara->abiversion, 
     224          MSG__HELP); 
    222225 
    223226 len = roar_mm_strlen(data); 
     
    350353    break; 
    351354   case 'H': 
    352      draw_help(obuffer); 
     355     draw_help(obuffer, pluginpara); 
    353356     return 0; 
    354357    break; 
Note: See TracChangeset for help on using the changeset viewer.