Fork us on GitHub Follow us on Facebook Follow us on Twitter

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


Ignore:
Timestamp:
2012-06-26T19:56:26Z (10 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master
Children:
978ccaf1
Parents:
f2da0bb
Message:

Bithenge: add the struct transform

File:
1 edited

Legend:

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

    rf2da0bb r04a7435f  
    170170}
    171171
     172static inline int bithenge_blob_inc_ref(bithenge_blob_t *blob)
     173{
     174        return bithenge_node_inc_ref(bithenge_blob_as_node(blob));
     175}
     176
     177static inline int bithenge_blob_dec_ref(bithenge_blob_t *blob)
     178{
     179        if (!blob)
     180                return EOK;
     181        return bithenge_node_dec_ref(bithenge_blob_as_node(blob));
     182}
     183
    172184int bithenge_new_random_access_blob(bithenge_blob_t *blob,
    173185    const bithenge_random_access_blob_ops_t *ops);
     
    182194    size_t len, bool needs_free);
    183195
     196int bithenge_new_offset_blob(bithenge_node_t **out, bithenge_blob_t *blob,
     197    aoff64_t offset);
     198
     199int bithenge_new_subblob(bithenge_node_t **out, bithenge_blob_t *blob,
     200    aoff64_t offset, aoff64_t size);
     201
    184202bool bithenge_blob_equal(bithenge_blob_t *a, bithenge_blob_t *b);
    185203
Note: See TracChangeset for help on using the changeset viewer.