michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef APKOpen_h michael@0: #define APKOpen_h michael@0: michael@0: #include michael@0: michael@0: #ifndef NS_EXPORT michael@0: #define NS_EXPORT __attribute__ ((visibility("default"))) michael@0: #endif michael@0: michael@0: struct mapping_info { michael@0: char * name; michael@0: uintptr_t base; michael@0: size_t len; michael@0: size_t offset; michael@0: }; michael@0: michael@0: const struct mapping_info * getLibraryMapping(); michael@0: michael@0: static const int SUCCESS = 0; michael@0: static const int FAILURE = 1; michael@0: void JNI_Throw(JNIEnv* jenv, const char* classname, const char* msg); michael@0: michael@0: #endif /* APKOpen_h */