Changeset 84239b1 in mainline for uspace/srv/vfs/vfs.h


Ignore:
Timestamp:
2018-03-11T19:39:11Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f3d47c97
Parents:
850fd32
Message:

And there was much fixing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs.h

    r850fd32 r84239b1  
    6060} fs_info_t;
    6161
    62 /**
    63  * VFS_PAIR uniquely represents a file system instance.
    64  */
    65 #define VFS_PAIR \
    66         fs_handle_t fs_handle; \
     62/** Uniquely represents a file system instance. */
     63typedef struct {
     64        fs_handle_t fs_handle;
    6765        service_id_t service_id;
    68 
    69 /**
    70  * VFS_TRIPLET uniquely identifies a file system node (e.g. directory, file) but
    71  * doesn't contain any state. For a stateful structure, see vfs_node_t.
     66} vfs_pair_t;
     67
     68/** Uniquely identifies a file system node (e.g. directory, file)
     69 * but doesn't contain any state. For a stateful structure, see vfs_node_t.
    7270 *
    7371 * @note        fs_handle, service_id and index are meant to be returned in one
    7472 *              IPC reply.
    7573 */
    76 #define VFS_TRIPLET \
    77         VFS_PAIR; \
     74typedef struct {
     75        fs_handle_t fs_handle;
     76        service_id_t service_id;
    7877        fs_index_t index;
    79 
    80 typedef struct {
    81         VFS_PAIR;
    82 } vfs_pair_t;
    83 
    84 typedef struct {
    85         VFS_TRIPLET;
    8678} vfs_triplet_t;
    8779
     
    10395 */
    10496typedef struct _vfs_node {
    105         VFS_TRIPLET;            /**< Identity of the node. */
     97        /*
     98         * Identity of the node
     99         */
     100
     101        fs_handle_t fs_handle;
     102        service_id_t service_id;
     103        fs_index_t index;
    106104
    107105        /**
Note: See TracChangeset for help on using the changeset viewer.