Changeset f9c314a5 in mainline for uspace/app/bithenge/transform.h


Ignore:
Timestamp:
2012-08-07T04:06:14Z (12 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0191bd3
Parents:
0ce0103
Message:

Bithenge: make scopes reference-counted

File:
1 edited

Legend:

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

    r0ce0103 rf9c314a5  
    5252typedef struct {
    5353        /** @privatesection */
     54        unsigned int refs;
    5455        int num_params;
    5556        bithenge_node_t **params;
    5657        bithenge_node_t *current_node;
    5758} bithenge_scope_t;
     59
     60static inline void bithenge_scope_inc_ref(bithenge_scope_t *self) {
     61        self->refs++;
     62}
    5863
    5964/** Operations that may be provided by a transform. All transforms must provide
     
    143148    bithenge_transform_t **, size_t);
    144149
    145 void bithenge_scope_init(bithenge_scope_t *);
    146 void bithenge_scope_destroy(bithenge_scope_t *);
     150int bithenge_scope_new(bithenge_scope_t **);
     151void bithenge_scope_dec_ref(bithenge_scope_t *);
    147152int bithenge_scope_copy(bithenge_scope_t *, bithenge_scope_t *);
    148153void bithenge_scope_set_current_node(bithenge_scope_t *, bithenge_node_t *);
Note: See TracChangeset for help on using the changeset viewer.