Skip to content

Instantly share code, notes, and snippets.

@sonOfRa
Created August 29, 2013 17:43
Show Gist options
  • Save sonOfRa/6381134 to your computer and use it in GitHub Desktop.
Save sonOfRa/6381134 to your computer and use it in GitHub Desktop.
* JTox.h
#ifndef JTOX_H_
#define JTOX_H_
typedef struct {
JNIEnv *env;
jobject jobj;
} tox_jni_callback;
typedef jobject friendrequest_callback;
typedef jobject friendmessage_callback;
typedef jobject action_callback;
typedef jobject namechange_callback;
typedef jobject statusmessage_callback;
typedef jobject userstatus_callback;
typedef jobject read_receipt_callback;
typedef jobject connectionstatus_callback;
extern friendrequest_callback request;
extern friendmessage_callback message;
extern action_callback action;
extern namechange_callback namechange;
extern statusmessage_callback statusmessage;
extern userstatus_callback userstatus;
extern read_receipt_callback read_receipt;
extern connectionstatus_callback connectionstatus;
#endif /* JTOX_H_ */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment