iPXE
nfs_uri.h
Go to the documentation of this file.
1 #ifndef _IPXE_NFS_URI_H
2 #define _IPXE_NFS_URI_H
3 
4 /** @file
5  *
6  * Network File System protocol URI handling functions
7  *
8  */
9 
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11 
12 #include <ipxe/uri.h>
13 
14 struct nfs_uri {
15  char *mountpoint;
16  char *filename;
17  char *path;
18  char *lookup_pos;
19 };
20 
21 int nfs_uri_init ( struct nfs_uri *nfs_uri, const struct uri *uri );
22 int nfs_uri_next_mountpoint ( struct nfs_uri *uri );
23 int nfs_uri_symlink ( struct nfs_uri *uri, const char *symlink_value );
24 char *nfs_uri_mountpoint ( const struct nfs_uri *uri );
25 char *nfs_uri_next_path_component ( struct nfs_uri *uri );
26 void nfs_uri_free ( struct nfs_uri *uri );
27 
28 
29 #endif /* _IPXE_NFS_URI_H */
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
void nfs_uri_free(struct nfs_uri *uri)
Definition: nfs_uri.c:143
Uniform Resource Identifiers.
char * filename
Definition: nfs_uri.h:16
char * lookup_pos
Definition: nfs_uri.h:18
int nfs_uri_init(struct nfs_uri *nfs_uri, const struct uri *uri)
Definition: nfs_uri.c:32
int nfs_uri_next_mountpoint(struct nfs_uri *uri)
Definition: nfs_uri.c:62
int nfs_uri_symlink(struct nfs_uri *uri, const char *symlink_value)
Definition: nfs_uri.c:84
char * nfs_uri_next_path_component(struct nfs_uri *uri)
Definition: nfs_uri.c:121
char * mountpoint
Definition: nfs_uri.h:15
A Uniform Resource Identifier.
Definition: uri.h:50
char * nfs_uri_mountpoint(const struct nfs_uri *uri)
Definition: nfs_uri.c:54
char * path
Definition: nfs_uri.h:17