Changeset 5388:e5cc8e03a3e1 in roaraudio for include


Ignore:
Timestamp:
01/17/12 11:27:07 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Added support for refcount based VIOs as well as dynamically allocated VIOs (non-stack or global VIOs) (Closes: #127)

Location:
include/libroar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/vio.h

    r5381 r5388  
    5252 
    5353#define ROAR_VIO_FLAGS_NONE        0x00000000UL 
    54 #define ROAR_VIO_FLAGS_FREESELF    0x00000020UL /* Free the VIO object */ 
     54#define ROAR_VIO_FLAGS_FREESELF    0x00000001UL /* Free the VIO object */ 
    5555 
    5656struct roar_connection; 
     
    8181int     roar_vio_sync    (struct roar_vio_calls * vio) _LIBROAR_ATTR_NONNULL_ALL; 
    8282int     roar_vio_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL(1); 
    83 int     roar_vio_close   (struct roar_vio_calls * vio) _LIBROAR_ATTR_NONNULL_ALL; 
     83 
     84#define roar_vio_close(x) roar_vio_unref((x)) 
     85int     roar_vio_ref     (struct roar_vio_calls * vio) _LIBROAR_ATTR_NONNULL_ALL; 
     86int     roar_vio_unref   (struct roar_vio_calls * vio) _LIBROAR_ATTR_NONNULL_ALL; 
    8487 
    8588// specal commands: 
  • include/libroar/vio_dstr.h

    r5381 r5388  
    199199 
    200200int     roar_vio_open_dstr_simple(struct roar_vio_calls * calls, const char * dstr, int o_flags); 
     201struct roar_vio_calls * roar_vio_open_dstr_simple_new(const char * dstr, int o_flags); 
    201202 
    202203int     roar_vio_open_dstr    (struct roar_vio_calls * calls, const char * dstr, struct roar_vio_defaults * def, int dnum); 
Note: See TracChangeset for help on using the changeset viewer.