Changeset 2667:7b1b15ee7541 in roaraudio


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

child vs. parent callbacks

Location:
roard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roard/container_framework.c

    r2665 r2667  
    109109 _BASIC(); 
    110110 
    111  if ( inst->parent->cb.read != NULL ) 
    112   return inst->parent->cb.read(inst->parent, inst->inst, buf, count); 
     111 if ( inst->parent->ccb.read != NULL ) 
     112  return inst->parent->ccb.read(inst->parent, inst->inst, buf, count); 
    113113 
    114114 return -1; 
     
    118118 _BASIC(); 
    119119 
    120  if ( inst->parent->cb.write != NULL ) 
    121   return inst->parent->cb.write(inst->parent, inst->inst, buf, count); 
     120 if ( inst->parent->ccb.write != NULL ) 
     121  return inst->parent->ccb.write(inst->parent, inst->inst, buf, count); 
    122122 
    123123 return -1; 
     
    130130 _BASIC(); 
    131131 
    132  if ( inst->parent->cb.flush != NULL ) 
    133   return inst->parent->cb.flush(inst->parent, inst->inst); 
     132 if ( inst->parent->ccb.flush != NULL ) 
     133  return inst->parent->ccb.flush(inst->parent, inst->inst); 
    134134 
    135135 return 0; 
     
    145145  r = -1; 
    146146 
    147  return -1; 
     147 if ( inst->parent->ccb.close != NULL ) 
     148  return inst->parent->ccb.close(inst->parent, inst->inst); 
     149 
    148150 return  r; 
    149151} 
  • roard/include/container_framework.h

    r2666 r2667  
    5151  int     (*flush)(struct cont_fw_parent_inst * self, struct cont_fw_child * child); 
    5252  int     (*close)(struct cont_fw_parent_inst * self, struct cont_fw_child * child); 
    53  } scb; 
     53 } ccb; 
    5454 struct { 
    5555  int     (*close)(struct cont_fw_parent_inst * self); 
Note: See TracChangeset for help on using the changeset viewer.