Architecture.h revision 29e8fa59
1/*
2 * Copyright 2013-2014 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef _ARCHITECTURE_H
6#define _ARCHITECTURE_H
7
8
9#include <sys/cdefs.h>
10
11#include <sys/types.h>
12
13
14__BEGIN_DECLS
15
16const char*	get_architecture();
17const char*	get_primary_architecture();
18size_t		get_secondary_architectures(const char** architectures,
19				size_t count);
20size_t		get_architectures(const char** architectures, size_t count);
21const char*	guess_architecture_for_path(const char* path);
22
23__END_DECLS
24
25
26/* C++ API */
27#ifdef __cplusplus
28
29#include <StringList.h>
30
31status_t	get_secondary_architectures(BStringList& _architectures);
32status_t	get_architectures(BStringList& _architectures);
33
34#endif	/* __cplusplus */
35
36#endif	/* _ARCHITECTURE_H */
37