Changeset 1322:3bdf57f6d5cb in roaraudio for include/libroar/vio_bio.h


Ignore:
Timestamp:
03/21/09 17:05:17 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support to open an OpenSSL BIO as VIO object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/vio_bio.h

    r1321 r1322  
    3838#include "libroar.h" 
    3939 
     40#ifndef ROAR_HAVE_LIBSSL 
     41typedef void BIO; 
     42#endif 
     43 
     44int     roar_vio_open_bio      (struct roar_vio_calls * calls, BIO * bio); 
     45BIO *   roar_vio_to_bio        (struct roar_vio_calls * calls); 
     46 
     47#ifdef ROAR_HAVE_LIBSSL 
     48ssize_t roar_vio_bio_read    (struct roar_vio_calls * vio, void *buf, size_t count); 
     49ssize_t roar_vio_bio_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
     50off_t   roar_vio_bio_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
     51int     roar_vio_bio_nonblock(struct roar_vio_calls * vio, int state); 
     52int     roar_vio_bio_sync    (struct roar_vio_calls * vio); 
     53int     roar_vio_bio_close   (struct roar_vio_calls * vio); 
     54#endif 
    4055 
    4156#endif 
Note: See TracChangeset for help on using the changeset viewer.