summaryrefslogtreecommitdiffstats
path: root/qemu/roms/ipxe/src/include/ipxe/nfs_uri.h
blob: aaa6d374910f6f8815a1f1ac5a7b36bb9bf7c44b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef _IPXE_NFS_URI_H
#define _IPXE_NFS_URI_H

/** @file
 *
 * Network File System protocol URI handling functions
 *
 */

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );

#include <ipxe/uri.h>

struct nfs_uri {
	char *mountpoint;
	char *filename;
	char *path;
	char *lookup_pos;
};

int nfs_uri_init ( struct nfs_uri *nfs_uri, const struct uri *uri );
int nfs_uri_next_mountpoint ( struct nfs_uri *uri );
int nfs_uri_symlink ( struct nfs_uri *uri, const char *symlink_value );
char *nfs_uri_mountpoint ( const struct nfs_uri *uri );
char *nfs_uri_next_path_component ( struct nfs_uri *uri );
void nfs_uri_free ( struct nfs_uri *uri );


#endif /* _IPXE_NFS_URI_H */