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