Changeset e3f2765 in mainline for uspace/app/bithenge/blob.h
- Timestamp:
- 2012-08-04T00:56:49Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c3437d9
- Parents:
- 0caaaa00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bithenge/blob.h
r0caaaa00 re3f2765 149 149 } 150 150 151 /** Check whether the blob is empty. 152 * 153 * @memberof bithenge_blob_t 154 * @param self The blob. 155 * @param[out] out Holds whether the blob is empty. 156 * @return EOK on success or an error code from errno.h. */ 157 static inline int bithenge_blob_empty(bithenge_blob_t *self, bool *out) 158 { 159 assert(self); 160 assert(self->base.blob_ops); 161 aoff64_t size; 162 int rc = bithenge_blob_size(self, &size); 163 *out = size == 0; 164 return rc; 165 } 166 151 167 /** Cast a blob node to a generic node. 152 168 * @memberof bithenge_blob_t
Note:
See TracChangeset
for help on using the changeset viewer.