2 * Copyright 2013-2015, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
9 #include <FindDirectory.h>
10 #include <StringList.h>
17 namespace BPackageKit
{
18 class BPackageResolvableExpression
;
24 typedef BPackageKit::BPackageResolvableExpression
25 BResolvableExpression
;
28 BPathFinder(const void* codePointer
= NULL
,
29 const char* dependency
= NULL
);
30 BPathFinder(const char* path
,
31 const char* dependency
= NULL
);
32 BPathFinder(const entry_ref
& ref
,
33 const char* dependency
= NULL
);
35 const BResolvableExpression
& expression
,
36 const char* dependency
= NULL
);
37 // requires libpackage
39 status_t
SetTo(const void* codePointer
= NULL
,
40 const char* dependency
= NULL
);
41 status_t
SetTo(const char* path
,
42 const char* dependency
= NULL
);
43 status_t
SetTo(const entry_ref
& ref
,
44 const char* dependency
= NULL
);
45 status_t
SetTo(const BResolvableExpression
& expression
,
46 const char* dependency
= NULL
);
47 // requires libpackage
49 status_t
FindPath(const char* architecture
,
50 path_base_directory baseDirectory
,
51 const char* subPath
, uint32 flags
,
53 status_t
FindPath(path_base_directory baseDirectory
,
54 const char* subPath
, uint32 flags
,
56 status_t
FindPath(path_base_directory baseDirectory
,
57 const char* subPath
, BPath
& _path
);
58 status_t
FindPath(path_base_directory baseDirectory
,
61 static status_t
FindPaths(const char* architecture
,
62 path_base_directory baseDirectory
,
63 const char* subPath
, uint32 flags
,
65 static status_t
FindPaths(path_base_directory baseDirectory
,
66 const char* subPath
, uint32 flags
,
68 static status_t
FindPaths(path_base_directory baseDirectory
,
69 const char* subPath
, BStringList
& _paths
);
70 static status_t
FindPaths(path_base_directory baseDirectory
,
74 status_t
_SetTo(const void* codePointer
,
75 const char* path
, const char* dependency
);
78 const void* fCodePointer
;
86 #endif // _PATH_FINDER_H