2013-11-17 01:27:47 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2013, Haiku, Inc. All Rights Reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _SUPPORT_ARCHITECTURE_H
|
|
|
|
#define _SUPPORT_ARCHITECTURE_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
const char* get_architecture();
|
|
|
|
const char* get_primary_architecture();
|
|
|
|
size_t get_secondary_architectures(const char** architectures,
|
|
|
|
size_t count);
|
2013-11-17 05:04:31 +04:00
|
|
|
size_t get_architectures(const char** architectures, size_t count);
|
2013-11-17 01:27:47 +04:00
|
|
|
const char* guess_architecture_for_path(const char* path);
|
|
|
|
|
|
|
|
|
|
|
|
__END_DECLS
|
|
|
|
|
|
|
|
|
2013-11-17 05:04:31 +04:00
|
|
|
/* C++ API */
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
|
|
|
|
|
|
|
#include <StringList.h>
|
|
|
|
|
|
|
|
|
|
|
|
status_t get_secondary_architectures(BStringList& _architectures);
|
|
|
|
status_t get_architectures(BStringList& _architectures);
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2013-11-17 01:27:47 +04:00
|
|
|
#endif /* _SUPPORT_ARCHITECTURE_H */
|