Changeset 3114:5b7fa334f64c in roaraudio


Ignore:
Timestamp:
01/11/10 09:44:37 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

implemented but did not test tantalos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio_tantalos.c

    r3113 r3114  
    3535#include "libroar.h" 
    3636 
     37#define _LEN 1024 
     38 
    3739int     roar_vio_open_tantalos    (struct roar_vio_calls * calls, struct roar_vio_calls * dst, 
    3840                                   char * key, struct roar_vio_defaults * odef) { 
    3941#ifdef ROAR_HAVE_LIBSLP 
    4042 struct roar_slp_cookie   cookie; 
    41  char * url; 
     43 char url[_LEN]; 
    4244 int i; 
    4345 
     
    4951 
    5052 for (i = 0; i < cookie.matchcount; i++) { 
    51   url = cookie.match[i].url + ROAR_SLP_URL_TYPE_DOWNLOAD_HTTP_LEN - 4; 
     53  strncpy(url, cookie.match[i].url + ROAR_SLP_URL_TYPE_DOWNLOAD_HTTP_LEN - 4, _LEN); 
     54  strcat(url, key); 
     55 
     56  ROAR_DBG("roar_vio_open_tantalos(*): url='%s'"); 
     57 
     58  if ( roar_vio_open_dstr(calls, url, odef, 1) == 0 ) 
     59   return 0; 
    5260 } 
    5361 
Note: See TracChangeset for help on using the changeset viewer.