Changeset 1999:2bf15f9bcbbc in roaraudio


Ignore:
Timestamp:
06/15/09 17:41:37 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added some code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/roarslp.h

    r1996 r1999  
    22 
    33/* 
    4  *      Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008 
     4 *      Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2009 
    55 * 
    66 *  This file is part of libroar a part of RoarAudio, 
     
    3838#include "libroar.h" 
    3939 
     40#define ROAR_SLP_MAX_MATCHES       8 
     41 
     42#ifndef ROAR_HAVE_LIBSLP 
     43#define SLPHandle  void * 
     44#define SLPError   int 
     45#define SLPBoolean int 
     46#define SLP_FALSE  0 
     47#define SLP_TRUE   1 
     48#endif 
     49 
     50struct roar_slp_search { 
     51 char dummy[8]; 
     52}; 
     53 
     54struct roar_slp_match { 
     55 char * url; 
     56}; 
     57 
     58struct roar_slp_cookie { 
     59 struct roar_slp_search * search; 
     60 struct roar_slp_match    match[ROAR_SLP_MAX_MATCHES]; 
     61 int                      matchcount; 
     62}; 
     63 
     64/* 
     65SLPBoolean roar_slp_url_callback(SLPHandle        hslp, 
     66                                 const char     * srvurl, 
     67                                 unsigned short   lifetime, 
     68                                 SLPError         errcode, 
     69                                 void           * cookie); 
     70*/ 
     71 
     72int roar_slp_search          (struct roar_slp_cookie * cookie, char * type); 
     73int roar_slp_cookie_init     (struct roar_slp_cookie * cookie, struct roar_slp_search * search); 
     74 
     75char * roar_slp_find_roard   (void); 
     76int    roar_slp_find_roard_r (char * addr, size_t len); 
     77 
    4078#endif 
    4179 
Note: See TracChangeset for help on using the changeset viewer.