Changeset 04a7435f in mainline for uspace/app/bithenge/transform.h


Ignore:
Timestamp:
2012-06-26T19:56:26Z (12 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
978ccaf1
Parents:
f2da0bb
Message:

Bithenge: add the struct transform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bithenge/transform.h

    rf2da0bb r04a7435f  
    4444typedef struct {
    4545        /** @privatesection */
    46         const struct bithenge_transform_ops_t *ops;
     46        const struct bithenge_transform_ops *ops;
    4747        unsigned int refs;
    4848} bithenge_transform_t;
    4949
    5050/** Operations that may be provided by a transform. */
    51 typedef struct bithenge_transform_ops_t {
     51typedef struct bithenge_transform_ops {
    5252        /** @copydoc bithenge_transform_t::bithenge_transform_apply */
    5353        int (*apply)(bithenge_transform_t *xform, bithenge_node_t *in, bithenge_node_t **out);
     
    5555        int (*prefix_length)(bithenge_transform_t *xform, bithenge_blob_t *blob, aoff64_t *out);
    5656        /** Destroy the transform.
    57          * @param blob The transform.
     57         * @param xform The transform.
    5858         * @return EOK on success or an error code from errno.h. */
    5959        int (*destroy)(bithenge_transform_t *xform);
     
    127127extern bithenge_named_transform_t *bithenge_primitive_transforms;
    128128
     129int bithenge_new_transform(bithenge_transform_t *xform,
     130    const bithenge_transform_ops_t *ops);
     131
     132int bithenge_new_struct(bithenge_transform_t **out,
     133    bithenge_named_transform_t *subtransforms);
     134
    129135#endif
    130136
Note: See TracChangeset for help on using the changeset viewer.