author Dan Gohman <>
Mon, 02 May 2016 17:26:33 -0700
changeset 295766 1eb0e0154d5c7279d2aeff8ea9a3f8e245aafae0
parent 268750 0f85afd327f240b748878444fcb9c7f2334e702a
child 309263 d9acf7d7e3343b7bba237da4d4b285bfc81f56d3
permissions -rw-r--r--
Bug 1268725 - BaldrMonkey: Convert default arguments into explicit arguments. r=luke

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */

#ifndef APKOpen_h
#define APKOpen_h

#include <jni.h>

#ifndef NS_EXPORT
#define NS_EXPORT __attribute__ ((visibility("default")))

struct mapping_info {
  char * name;
  uintptr_t base;
  size_t len;
  size_t offset;

NS_EXPORT const struct mapping_info * getLibraryMapping();
NS_EXPORT void abortThroughJava(const char* msg);

static const int SUCCESS = 0;
static const int FAILURE = 1;
void JNI_Throw(JNIEnv* jenv, const char* classname, const char* msg);

// Bug 1207642 - Work around Dalvik bug by realigning stack on JNI entry
# ifdef __i386__
#  define MOZ_JNICALL JNICALL __attribute__((force_align_arg_pointer))
# else
# endif

#endif /* APKOpen_h */