Changeset 2665:511a75b53cba in roaraudio for roard/container_framework.c


Ignore:
Timestamp:
09/12/09 22:14:36 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added cont_fw_set_uinst() and cont_fw_get_uinst()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/container_framework.c

    r2664 r2665  
    3535                 _PREP() 
    3636 
     37// Parent: 
    3738int     cont_fw_new     (struct cont_fw_parent_inst ** inst) { 
    3839 struct cont_fw_parent_inst * self; 
     
    6970 return 0; 
    7071} 
     72 
     73int     cont_fw_set_uinst(struct cont_fw_parent_inst  * inst, void  * u_inst) { 
     74 if ( inst == NULL ) 
     75  return -1; 
     76 
     77 inst->u_inst = u_inst; 
     78 
     79 return 0; 
     80} 
     81 
     82int     cont_fw_get_uinst(struct cont_fw_parent_inst  * inst, void ** u_inst) { 
     83 if ( inst == NULL || u_inst == NULL ) 
     84  return -1; 
     85 
     86 *u_inst = inst->u_inst; 
     87 
     88 return 0; 
     89} 
     90 
     91// VIOs: 
    7192 
    7293int     cont_fw_init_vio(struct roar_vio_calls * vio, void * inst) { 
Note: See TracChangeset for help on using the changeset viewer.