Changes in uspace/lib/fs/libfs.h [5b0cf63:23c8acd9] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/fs/libfs.h

    r5b0cf63 r23c8acd9  
    4343
    4444typedef struct {
    45         errno_t (*fsprobe)(service_id_t, vfs_fs_probe_info_t *);
    46         errno_t (*mounted)(service_id_t, const char *, fs_index_t *, aoff64_t *);
    47         errno_t (*unmounted)(service_id_t);
    48         errno_t (*read)(service_id_t, fs_index_t, aoff64_t, size_t *);
    49         errno_t (*write)(service_id_t, fs_index_t, aoff64_t, size_t *,
     45        int (* fsprobe)(service_id_t, vfs_fs_probe_info_t *);
     46        int (* mounted)(service_id_t, const char *, fs_index_t *, aoff64_t *);
     47        int (* unmounted)(service_id_t);
     48        int (* read)(service_id_t, fs_index_t, aoff64_t, size_t *);
     49        int (* write)(service_id_t, fs_index_t, aoff64_t, size_t *,
    5050            aoff64_t *);
    51         errno_t (*truncate)(service_id_t, fs_index_t, aoff64_t);
    52         errno_t (*close)(service_id_t, fs_index_t);
    53         errno_t (*destroy)(service_id_t, fs_index_t);
    54         errno_t (*sync)(service_id_t, fs_index_t);
     51        int (* truncate)(service_id_t, fs_index_t, aoff64_t);
     52        int (* close)(service_id_t, fs_index_t);
     53        int (* destroy)(service_id_t, fs_index_t);
     54        int (* sync)(service_id_t, fs_index_t);
    5555} vfs_out_ops_t;
    5656
     
    6565         * argument holds the output argument.
    6666         */
    67         errno_t (*root_get)(fs_node_t **, service_id_t);
    68         errno_t (*match)(fs_node_t **, fs_node_t *, const char *);
    69         errno_t (*node_get)(fs_node_t **, service_id_t, fs_index_t);
    70         errno_t (*node_open)(fs_node_t *);
    71         errno_t (*node_put)(fs_node_t *);
    72         errno_t (*create)(fs_node_t **, service_id_t, int);
    73         errno_t (*destroy)(fs_node_t *);
    74         errno_t (*link)(fs_node_t *, fs_node_t *, const char *);
    75         errno_t (*unlink)(fs_node_t *, fs_node_t *, const char *);
    76         errno_t (*has_children)(bool *, fs_node_t *);
     67        int (* root_get)(fs_node_t **, service_id_t);
     68        int (* match)(fs_node_t **, fs_node_t *, const char *);
     69        int (* node_get)(fs_node_t **, service_id_t, fs_index_t);
     70        int (* node_open)(fs_node_t *);
     71        int (* node_put)(fs_node_t *);
     72        int (* create)(fs_node_t **, service_id_t, int);
     73        int (* destroy)(fs_node_t *);
     74        int (* link)(fs_node_t *, fs_node_t *, const char *);
     75        int (* unlink)(fs_node_t *, fs_node_t *, const char *);
     76        int (* has_children)(bool *, fs_node_t *);
    7777        /*
    7878         * The second set of methods are usually mere getters that do not
    7979         * return an integer error code.
    8080         */
    81         fs_index_t (*index_get)(fs_node_t *);
    82         aoff64_t (*size_get)(fs_node_t *);
    83         unsigned int (*lnkcnt_get)(fs_node_t *);
    84         bool (*is_directory)(fs_node_t *);
    85         bool (*is_file)(fs_node_t *);
    86         service_id_t (*service_get)(fs_node_t *);
    87         errno_t (*size_block)(service_id_t, uint32_t *);
    88         errno_t (*total_block_count)(service_id_t, uint64_t *);
    89         errno_t (*free_block_count)(service_id_t, uint64_t *);
     81        fs_index_t (* index_get)(fs_node_t *);
     82        aoff64_t (* size_get)(fs_node_t *);
     83        unsigned int (* lnkcnt_get)(fs_node_t *);
     84        bool (* is_directory)(fs_node_t *);
     85        bool (* is_file)(fs_node_t *);
     86        service_id_t (* service_get)(fs_node_t *);
     87        int (* size_block)(service_id_t, uint32_t *);
     88        int (* total_block_count)(service_id_t, uint64_t *);
     89        int (* free_block_count)(service_id_t, uint64_t *);
    9090} libfs_ops_t;
    9191
     
    9595} fs_reg_t;
    9696
    97 extern errno_t fs_register(async_sess_t *, vfs_info_t *, vfs_out_ops_t *,
     97extern int fs_register(async_sess_t *, vfs_info_t *, vfs_out_ops_t *,
    9898    libfs_ops_t *);
    9999
    100100extern void fs_node_initialize(fs_node_t *);
    101101
    102 extern errno_t fs_instance_create(service_id_t, void *);
    103 extern errno_t fs_instance_get(service_id_t, void **);
    104 extern errno_t fs_instance_destroy(service_id_t);
     102extern int fs_instance_create(service_id_t, void *);
     103extern int fs_instance_get(service_id_t, void **);
     104extern int fs_instance_destroy(service_id_t);
    105105
    106106#endif
Note: See TracChangeset for help on using the changeset viewer.