Changeset 04a7435f in mainline for uspace/app/bithenge/blob.h
- Timestamp:
- 2012-06-26T19:56:26Z (13 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/blob.h
rf2da0bb r04a7435f 170 170 } 171 171 172 static inline int bithenge_blob_inc_ref(bithenge_blob_t *blob) 173 { 174 return bithenge_node_inc_ref(bithenge_blob_as_node(blob)); 175 } 176 177 static 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 172 184 int bithenge_new_random_access_blob(bithenge_blob_t *blob, 173 185 const bithenge_random_access_blob_ops_t *ops); … … 182 194 size_t len, bool needs_free); 183 195 196 int bithenge_new_offset_blob(bithenge_node_t **out, bithenge_blob_t *blob, 197 aoff64_t offset); 198 199 int bithenge_new_subblob(bithenge_node_t **out, bithenge_blob_t *blob, 200 aoff64_t offset, aoff64_t size); 201 184 202 bool bithenge_blob_equal(bithenge_blob_t *a, bithenge_blob_t *b); 185 203
Note:
See TracChangeset
for help on using the changeset viewer.