Changeset 8375d0eb in mainline for uspace/app/bithenge/blob.h


Ignore:
Timestamp:
2012-06-08T07:02:55Z (12 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8b36bf2
Parents:
5c925ce
Message:

Bithenge: add Doxygen comments

File:
1 edited

Legend:

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

    r5c925ce r8375d0eb  
    4141#include "tree.h"
    4242
    43 /** A blob of raw binary data. */
     43/** A blob of raw binary data.
     44 * @implements bithenge_node_t */
    4445typedef struct {
    4546        /** @privatesection */
     
    5556        int (*read)(bithenge_blob_t *blob, aoff64_t offset, char *buffer,
    5657            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. */
    5861        int (*destroy)(bithenge_blob_t *blob);
    5962} bithenge_random_access_blob_ops_t;
     
    148151}
    149152
     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. */
    150157static inline bithenge_node_t *bithenge_blob_as_node(bithenge_blob_t *blob)
    151158{
     
    153160}
    154161
     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. */
    155166static inline bithenge_blob_t *bithenge_node_as_blob(bithenge_node_t *node)
    156167{
     168        assert(node->type == BITHENGE_NODE_BLOB);
    157169        return (bithenge_blob_t *)node;
    158170}
Note: See TracChangeset for help on using the changeset viewer.