xref: /haiku/headers/private/system/find_directory_private.h (revision 60b39cd7416028e61e3d30bb3ba28bd3526e6001)
1 /*
2  * Copyright 2013, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _SYSTEM_FIND_DIRECTORY_PRIVATE_H
6 #define _SYSTEM_FIND_DIRECTORY_PRIVATE_H
7 
8 
9 #include <sys/cdefs.h>
10 
11 #include <FindDirectory.h>
12 
13 
14 __BEGIN_DECLS
15 
16 
17 status_t __find_directory(directory_which which, dev_t device, bool createIt,
18 	char *returnedPath, int32 pathLength);
19 
20 status_t __find_path(const void* codePointer, path_base_directory baseDirectory,
21 	const char* subPath, char* pathBuffer, size_t bufferSize);
22 
23 status_t __find_path_etc(const void* codePointer, const char* dependency,
24 	const char* architecture, path_base_directory baseDirectory,
25 	const char* subPath, uint32 flags, char* pathBuffer, size_t bufferSize);
26 
27 status_t __find_path_for_path(const char* path,
28 	path_base_directory baseDirectory, const char* subPath, char* pathBuffer,
29 	size_t bufferSize);
30 
31 status_t __find_path_for_path_etc(const char* path, const char* dependency,
32 	const char* architecture, path_base_directory baseDirectory,
33 	const char* subPath, uint32 flags, char* pathBuffer, size_t bufferSize);
34 
35 status_t __find_paths(path_base_directory baseDirectory, const char* subPath,
36 	char*** _paths, size_t* _pathCount);
37 
38 status_t __find_paths_etc(const char* architecture,
39 	path_base_directory baseDirectory, const char* subPath, uint32 flags,
40 	char*** _paths, size_t* _pathCount);
41 
42 const char* __guess_secondary_architecture_from_path(const char* path,
43 	const char* const* secondaryArchitectures,
44 	size_t secondaryArchitectureCount);
45 
46 
47 __END_DECLS
48 
49 
50 #endif	/* _SYSTEM_FIND_DIRECTORY_PRIVATE_H */
51