Changeset 5c925ce in mainline for uspace/app/bithenge/file.c


Ignore:
Timestamp:
2012-06-07T17:00:12Z (12 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8375d0eb
Parents:
5f679702
Message:

Bithenge: make blobs a type of node

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bithenge/file.c

    r5f679702 r5c925ce  
    9797};
    9898
    99 static int new_file_blob(bithenge_blob_t **out, int fd, bool needs_close)
     99static int new_file_blob(bithenge_node_t **out, int fd, bool needs_close)
    100100{
    101101        assert(out);
     
    127127        blob->size = stat.size;
    128128        blob->needs_close = needs_close;
    129         *out = blob_from_file(blob);
     129        *out = bithenge_blob_as_node(blob_from_file(blob));
    130130
    131131        return EOK;
     
    137137 * @param filename The name of the file.
    138138 * @return EOK on success or an error code from errno.h. */
    139 int bithenge_new_file_blob(bithenge_blob_t **out, const char *filename)
     139int bithenge_new_file_blob(bithenge_node_t **out, const char *filename)
    140140{
    141141        assert(filename);
     
    153153 * @param fd The file descriptor.
    154154 * @return EOK on success or an error code from errno.h. */
    155 int bithenge_new_file_blob_from_fd(bithenge_blob_t **out, int fd)
     155int bithenge_new_file_blob_from_fd(bithenge_node_t **out, int fd)
    156156{
    157157        return new_file_blob(out, fd, false);
     
    163163 * @param file The file pointer.
    164164 * @return EOK on success or an error code from errno.h. */
    165 int bithenge_new_file_blob_from_file(bithenge_blob_t **out, FILE *file)
     165int bithenge_new_file_blob_from_file(bithenge_node_t **out, FILE *file)
    166166{
    167167        int fd = fileno(file);
Note: See TracChangeset for help on using the changeset viewer.