Changeset 8375d0eb in mainline for uspace/app/bithenge/blob.h
- Timestamp:
- 2012-06-08T07:02:55Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8b36bf2
- Parents:
- 5c925ce
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bithenge/blob.h
r5c925ce r8375d0eb 41 41 #include "tree.h" 42 42 43 /** A blob of raw binary data. */ 43 /** A blob of raw binary data. 44 * @implements bithenge_node_t */ 44 45 typedef struct { 45 46 /** @privatesection */ … … 55 56 int (*read)(bithenge_blob_t *blob, aoff64_t offset, char *buffer, 56 57 aoff64_t *size); 57 /** @copydoc bithenge_blob_t::bithenge_blob_destroy */ 58 /** Destroy the blob. 59 * @param blob The blob. 60 * @return EOK on success or an error code from errno.h. */ 58 61 int (*destroy)(bithenge_blob_t *blob); 59 62 } bithenge_random_access_blob_ops_t; … … 148 151 } 149 152 153 /** Cast a blob node to a generic node. 154 * @memberof bithenge_blob_t 155 * @param blob The blob to cast. 156 * @return The blob node as a generic node. */ 150 157 static inline bithenge_node_t *bithenge_blob_as_node(bithenge_blob_t *blob) 151 158 { … … 153 160 } 154 161 162 /** Cast a generic node to a blob node. 163 * @memberof bithenge_blob_t 164 * @param node The node to cast, which must be a blob node. 165 * @return The generic node as a blob node. */ 155 166 static inline bithenge_blob_t *bithenge_node_as_blob(bithenge_node_t *node) 156 167 { 168 assert(node->type == BITHENGE_NODE_BLOB); 157 169 return (bithenge_blob_t *)node; 158 170 }
Note:
See TracChangeset
for help on using the changeset viewer.