Changeset 04a7435f in mainline for uspace/app/bithenge/transform.h
- Timestamp:
- 2012-06-26T19:56:26Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 978ccaf1
- Parents:
- f2da0bb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bithenge/transform.h
rf2da0bb r04a7435f 44 44 typedef struct { 45 45 /** @privatesection */ 46 const struct bithenge_transform_ops _t*ops;46 const struct bithenge_transform_ops *ops; 47 47 unsigned int refs; 48 48 } bithenge_transform_t; 49 49 50 50 /** Operations that may be provided by a transform. */ 51 typedef struct bithenge_transform_ops _t{51 typedef struct bithenge_transform_ops { 52 52 /** @copydoc bithenge_transform_t::bithenge_transform_apply */ 53 53 int (*apply)(bithenge_transform_t *xform, bithenge_node_t *in, bithenge_node_t **out); … … 55 55 int (*prefix_length)(bithenge_transform_t *xform, bithenge_blob_t *blob, aoff64_t *out); 56 56 /** Destroy the transform. 57 * @param blobThe transform.57 * @param xform The transform. 58 58 * @return EOK on success or an error code from errno.h. */ 59 59 int (*destroy)(bithenge_transform_t *xform); … … 127 127 extern bithenge_named_transform_t *bithenge_primitive_transforms; 128 128 129 int bithenge_new_transform(bithenge_transform_t *xform, 130 const bithenge_transform_ops_t *ops); 131 132 int bithenge_new_struct(bithenge_transform_t **out, 133 bithenge_named_transform_t *subtransforms); 134 129 135 #endif 130 136
Note:
See TracChangeset
for help on using the changeset viewer.