Changeset 5388:e5cc8e03a3e1 in roaraudio for roard/container_framework.c


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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/container_framework.c

    r5381 r5388  
    169169 
    170170 memset(vio, 0, sizeof(struct roar_vio_calls)); 
    171  vio->inst = inst; 
    172  
     171 vio->flags = ROAR_VIO_FLAGS_NONE; 
     172 vio->refc  = 1; 
     173 vio->inst  = inst; 
    173174 vio->read  = cont_fw_read; 
    174175 vio->write = cont_fw_write; 
     
    238239int     cont_pvio_open    (struct roar_vio_calls * vio, void * inst) { 
    239240 memset(vio, 0, sizeof(struct roar_vio_calls)); 
     241 vio->flags = ROAR_VIO_FLAGS_NONE; 
     242 vio->refc  = 1; 
    240243 
    241244 vio->inst  = inst; 
Note: See TracChangeset for help on using the changeset viewer.