Changeset 2669:3b6eb870e562 in roaraudio
- Timestamp:
- 09/12/09 22:46:02 (15 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/container_framework.c
r2668 r2669 116 116 117 117 if ( inst->parent->ccb.read != NULL ) 118 return inst->parent->ccb.read(inst->parent, inst ->inst, buf, count);118 return inst->parent->ccb.read(inst->parent, inst, buf, count); 119 119 120 120 return -1; … … 125 125 126 126 if ( inst->parent->ccb.write != NULL ) 127 return inst->parent->ccb.write(inst->parent, inst ->inst, buf, count);127 return inst->parent->ccb.write(inst->parent, inst, buf, count); 128 128 129 129 return -1; … … 137 137 138 138 if ( inst->parent->ccb.flush != NULL ) 139 return inst->parent->ccb.flush(inst->parent, inst ->inst);139 return inst->parent->ccb.flush(inst->parent, inst); 140 140 141 141 return 0; … … 152 152 153 153 if ( inst->parent->ccb.close != NULL ) 154 return inst->parent->ccb.close(inst->parent, inst ->inst);154 return inst->parent->ccb.close(inst->parent, inst); 155 155 156 156 return r; -
roard/include/container_framework.h
r2668 r2669 32 32 struct cont_fw_parent_inst; 33 33 34 struct cont_fw_child {34 struct cont_fw_child_vio_inst { 35 35 int child; 36 36 void * u_inst; 37 };38 39 struct cont_fw_child_vio_inst {40 int child;41 struct cont_fw_child * inst;42 37 struct cont_fw_parent_inst * parent; 43 38 }; 44 39 45 40 struct cont_fw_parent_inst { 46 struct cont_fw_child * child[CONT_FW_MAX_CHILDS];41 struct cont_fw_child_vio_inst * child[CONT_FW_MAX_CHILDS]; 47 42 void * u_inst; 48 43 struct { 49 ssize_t (*read) (struct cont_fw_parent_inst * self, struct cont_fw_child * child, void *buf, size_t len);50 ssize_t (*write)(struct cont_fw_parent_inst * self, struct cont_fw_child * child, void *buf, size_t len);51 int (*flush)(struct cont_fw_parent_inst * self, struct cont_fw_child * child);52 int (*close)(struct cont_fw_parent_inst * self, struct cont_fw_child * child);44 ssize_t (*read) (struct cont_fw_parent_inst * self, struct cont_fw_child_vio_inst * child, void *buf, size_t len); 45 ssize_t (*write)(struct cont_fw_parent_inst * self, struct cont_fw_child_vio_inst * child, void *buf, size_t len); 46 int (*flush)(struct cont_fw_parent_inst * self, struct cont_fw_child_vio_inst * child); 47 int (*close)(struct cont_fw_parent_inst * self, struct cont_fw_child_vio_inst * child); 53 48 } ccb; 54 49 struct {
Note: See TracChangeset
for help on using the changeset viewer.