Subversion Repositories HelenOS

Rev

Rev 4370 | Rev 4429 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4370 Rev 4409
Line 1... Line 1...
1
/*
1
/*
2
 * Copyright (c) 2007 Jakub Jermar
2
 * Copyright (c) 2009 Jakub Jermar
3
 * All rights reserved.
3
 * All rights reserved.
4
 *
4
 *
5
 * Redistribution and use in source and binary forms, with or without
5
 * Redistribution and use in source and binary forms, with or without
6
 * modification, are permitted provided that the following conditions
6
 * modification, are permitted provided that the following conditions
7
 * are met:
7
 * are met:
Line 40... Line 40...
40
#include <stdint.h>
40
#include <stdint.h>
41
#include <ipc/ipc.h>
41
#include <ipc/ipc.h>
42
#include <async.h>
42
#include <async.h>
43
 
43
 
44
typedef struct {
44
typedef struct {
-
 
45
    bool mp_active;
-
 
46
    int phone;
-
 
47
    fs_handle_t fs_handle;
-
 
48
    dev_handle_t dev_handle;
-
 
49
} mp_data_t;
-
 
50
 
-
 
51
typedef struct {
-
 
52
    mp_data_t mp_data;  /**< Mount point info. */
45
    void *data; /**< Data of the file system implementation. */
53
    void *data;     /**< Data of the file system implementation. */
46
} fs_node_t;
54
} fs_node_t;
47
 
55
 
48
typedef struct {
56
typedef struct {
49
    fs_node_t * (* match)(fs_node_t *, const char *);
57
    fs_node_t * (* match)(fs_node_t *, const char *);
50
    fs_node_t * (* node_get)(dev_handle_t, fs_index_t);
58
    fs_node_t * (* node_get)(dev_handle_t, fs_index_t);
Line 69... Line 77...
69
    uint8_t *plb_ro;    /**< Read-only PLB view. */
77
    uint8_t *plb_ro;    /**< Read-only PLB view. */
70
} fs_reg_t;
78
} fs_reg_t;
71
 
79
 
72
extern int fs_register(int, fs_reg_t *, vfs_info_t *, async_client_conn_t);
80
extern int fs_register(int, fs_reg_t *, vfs_info_t *, async_client_conn_t);
73
 
81
 
-
 
82
extern void fs_node_initialize(fs_node_t *);
-
 
83
 
-
 
84
extern void libfs_mount(libfs_ops_t *, ipc_callid_t, ipc_call_t *);
74
extern void libfs_lookup(libfs_ops_t *, fs_handle_t, ipc_callid_t, ipc_call_t *);
85
extern void libfs_lookup(libfs_ops_t *, fs_handle_t, ipc_callid_t, ipc_call_t *);
75
 
86
 
76
#endif
87
#endif
77
 
88
 
78
/** @}
89
/** @}