Changeset 78d3a00 in mainline for uspace/app/bithenge/transform.c


Ignore:
Timestamp:
2012-07-31T21:07:26Z (13 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3f2ea63
Parents:
20ac1a4
Message:

Bithenge: add switch transforms and sugar

File:
1 edited

Legend:

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

    r20ac1a4 r78d3a00  
    183183bithenge_transform_t bithenge_ascii_transform = {
    184184        &ascii_ops, 1, 0
     185};
     186
     187static int invalid_apply(bithenge_transform_t *self, bithenge_scope_t *scope,
     188    bithenge_node_t *in, bithenge_node_t **out)
     189{
     190        return EINVAL;
     191}
     192
     193static const bithenge_transform_ops_t invalid_ops = {
     194        .apply = invalid_apply,
     195        .destroy = transform_indestructible,
     196};
     197
     198/** A transform that always raises an error. */
     199bithenge_transform_t bithenge_invalid_transform = {
     200        &invalid_ops, 1, 0
    185201};
    186202
Note: See TracChangeset for help on using the changeset viewer.