]> git.ozlabs.org Git - petitboot/blob - discover/paths.h
discover: Send options to client in order
[petitboot] / discover / paths.h
1 #ifndef PATHS_H
2 #define PATHS_H
3
4 #include <url/url.h>
5
6 /**
7  * Utility function for joining two paths. Adds a / between a and b if
8  * required.
9  *
10  * Returns a newly-allocated string.
11  */
12 char *join_paths(void *alloc_ctx, const char *a, const char *b);
13
14 /**
15  * Returns the base path for mount points
16  */
17 const char *mount_base(void);
18
19 /* Load a (potentially remote) file, and return a guaranteed-local name */
20 char *load_url(void *ctx, struct pb_url *url, unsigned int *tempfile);
21
22 #endif /* PATHS_H */