1/*
2 * Copyright 2022, Andrew Lindesay <apl@lindesay.co.nz>.
3 * All rights reserved. Distributed under the terms of the MIT License.
4 */
5#ifndef PACKAGE_UTILS_H
6#define PACKAGE_UTILS_H
7
8
9#include <FindDirectory.h>
10#include <Path.h>
11
12#include "PackageInfo.h"
13
14#include <package/PackageDefs.h>
15
16
17class PackageUtils {
18public:
19	static	status_t		DeriveLocalFilePath(const PackageInfo* package,
20								BPath& result);
21
22	static	BPackageKit::BPackageInstallationLocation
23							DeriveInstallLocation(const PackageInfo* package);
24
25private:
26	static	status_t		_DeriveDirectoryWhich(
27								BPackageKit::BPackageInstallationLocation
28									location,
29								directory_which* which);
30};
31
32
33#endif // PACKAGE_UTILS_H
34