2
0
mirror of synced 2025-02-24 07:18:15 +00:00
mobile/bind/testdata/classes.java.h.golden
Elias Naur bdf873ed8f bind,cmd: accept Java API in bound packages
Accept Java API interface types as arguments and return values from
bound Go package functions and methods. Also, allow Go structs
to extend Java classes and implement Java interfaces as well as override
and implement methods.

This is the third and final part of the implementation of the golang/go#16876
proposal.

Fixes golang/go#16876

Change-Id: I6951dd87235553ce09abe5117a39a503466163c0
Reviewed-on: https://go-review.googlesource.com/28597
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2016-09-22 10:16:33 +00:00

73 lines
1.7 KiB
Plaintext

// File is generated by gobind. Do not edit.
#include <jni.h>
#include "seq.h"
extern void init_proxies();
typedef struct ret_jint {
jint res;
jint exc;
} ret_jint;
typedef struct ret_jboolean {
jboolean res;
jint exc;
} ret_jboolean;
typedef struct ret_jshort {
jshort res;
jint exc;
} ret_jshort;
typedef struct ret_jchar {
jchar res;
jint exc;
} ret_jchar;
typedef struct ret_jbyte {
jbyte res;
jint exc;
} ret_jbyte;
typedef struct ret_jlong {
jlong res;
jint exc;
} ret_jlong;
typedef struct ret_jfloat {
jfloat res;
jint exc;
} ret_jfloat;
typedef struct ret_jdouble {
jdouble res;
jint exc;
} ret_jdouble;
typedef struct ret_nstring {
nstring res;
jint exc;
} ret_nstring;
typedef struct ret_nbyteslice {
nbyteslice res;
jint exc;
} ret_nbyteslice;
extern jint cproxy_java_lang_Runnable_run(jint this);
extern ret_jint cproxy_java_io_InputStream_read__(jint this);
extern ret_jint csuper_java_io_InputStream_read__(jint this);
extern ret_jint cproxy_java_util_concurrent_Future_get__(jint this);
extern ret_jint cproxy_java_util_concurrent_Future_get__JLjava_util_concurrent_TimeUnit_2(jint this, jlong a0, jint a1);
// JNI function headers for the Go <=> Java bridge.
// gobind -lang=java classes
//
// File is generated by gobind. Do not edit.
#ifndef __Java_H__
#define __Java_H__
#include <jni.h>
extern jclass proxy_class_java_Future;
extern jmethodID proxy_class_java_Future_cons;
extern jclass proxy_class_java_InputStream;
extern jmethodID proxy_class_java_InputStream_cons;
extern jclass proxy_class_java_Object;
extern jmethodID proxy_class_java_Object_cons;
extern jclass proxy_class_java_Runnable;
extern jmethodID proxy_class_java_Runnable_cons;
#endif