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 16 const char* get_architecture(); 17 const char* get_primary_architecture(); 18 size_t get_secondary_architectures(const char** architectures, 19 size_t count); 20 size_t get_architectures(const char** architectures, size_t count); 21 const 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 31 status_t get_secondary_architectures(BStringList& _architectures); 32 status_t get_architectures(BStringList& _architectures); 33 34 #endif /* __cplusplus */ 35 36 #endif /* _ARCHITECTURE_H */ 37