Changeset 4441:f874513f7f15 in roaraudio


Ignore:
Timestamp:
10/09/10 15:59:16 (8 years ago)
Author:
phi
Branch:
default
Message:

get large data support in server_info working

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/serverinfo.h

    r4429 r4441  
    5858int roar_server_info_free(struct roar_server_info * info); 
    5959 
    60 int roar_server_info_to_mes(struct roar_message * mes, struct roar_server_info * info); 
    61 struct roar_server_info * roar_server_info_from_mes(struct roar_message * mes); 
     60int roar_server_info_to_mes(struct roar_message * mes, struct roar_server_info * info, void ** data); 
     61struct roar_server_info * roar_server_info_from_mes(struct roar_message * mes, void * data); 
    6262 
    6363#endif 
  • libroar/serverinfo.c

    r4440 r4441  
    115115  if ( mesdata == NULL ) 
    116116   return -1; 
     117 
     118  *data = mesdata; 
    117119 } else { 
    118120  mesdata = mes->data; 
  • roard/req.c

    r4438 r4441  
    574574#endif 
    575575 
    576    if ( roar_server_info_to_mes(mes, &info) == -1 ) 
     576   *data = NULL; 
     577 
     578   if ( roar_server_info_to_mes(mes, &info, data) == -1 ) 
    577579    return -1; 
     580 
     581   if ( *data != NULL ) 
     582    flags[1] |= COMMAND_FLAG_OUT_LONGDATA; 
    578583  break; 
    579584  default: /* unknown request */ 
Note: See TracChangeset for help on using the changeset viewer.