summaryrefslogtreecommitdiffstats
path: root/discover/paths.h
blob: 20a22495042b7780820ea3f12678108218d26a11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef PATHS_H
#define PATHS_H

#include <url/url.h>

/**
 * Utility function for joining two paths. Adds a / between a and b if
 * required.
 *
 * Returns a newly-allocated string.
 */
char *join_paths(void *alloc_ctx, const char *a, const char *b);

/**
 * Returns the base path for mount points
 */
const char *mount_base(void);

/* Load a (potentially remote) file, and return a guaranteed-local name */
char *load_url(void *ctx, struct pb_url *url, unsigned int *tempfile);

#endif /* PATHS_H */
OpenPOWER on IntegriCloud