ninenano

Client implementation of the 9P protocol for constrained devices

git clone https://git.8pit.net/ninenano.git

 1#ifndef NINEPFS_H
 2#define NINEPFS_H
 3
 4#include "9p.h"
 5#include "vfs.h"
 6#include "mutex.h"
 7
 8extern const vfs_file_system_t _9p_file_system;
 9
10/**
11 * 9P file system superblock.
12 */
13typedef struct {
14	/**
15	 * 9P context for the underlying connection.
16	 */
17	_9pctx ctx;
18
19	/**
20	 * Mutex used to synchronize access to the connection context.
21	 */
22	mutex_t mtx;
23
24	/**
25	 * User identification.
26	 */
27	char *uname;
28
29	/**
30	 * File tree to access (can be NULL).
31	 */
32	char *aname;
33} _9pfs;
34
35#endif