grim/guifications3

Closing this branch since we moved to "default" for it a while ago now
org.guifications.gf3
2009-12-06, Gary Kramlich
3707becf4df7
Closing this branch since we moved to "default" for it a while ago now
#include <jni.h>
#include <gflib/gf_event.h>
#include <gflib/gf_object.h>
#include <libgtk-java/jg_jnu.h>
#ifndef _Included_org_guifications_gflib_GfEvent
#define _Included_org_guifications_gflib_GfEvent
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: org_guifications_gflib_GfEvent
* Method: gf_event_new
* Signature: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/gnu/glib/Handle;
*/
JNIEXPORT jobject JNICALL
Java_org_guifications_gflib_GfEvent_gf_1event_1new
(JNIEnv* env, jclass klass, jstring str1, jstring str2, jstring str3)
{
return getHandleFromPointer(
env,
gf_event_new(
(gchar*)(*env)->GetStringUTFChars(
env,
str1,
0),
(gchar*)(*env)->GetStringUTFChars(
env,
str2,
0),
(gchar*)(*env)->GetStringUTFChars(
env,
str3,
0)));
}
/*
* Class: org_guifications_gflib_GfEvent
* Method: gf_event_get_name
* Signature: (Lorg/gnu/glib/Handle;)Ljava/lang/String;
*/
JNIEXPORT jstring JNICALL
Java_org_guifications_gflib_GfEvent_gf_1event_1get_1name
(JNIEnv* env, jclass klass, jobject obj)
{
return (*env)->NewStringUTF(
env,
gf_event_get_name(
(GfEvent*)getPointerFromHandle(
env,
obj)));
}
/*
* Class: org_guifications_gflib_GfEvent
* Method: gf_event_get_i18n
* Signature: (Lorg/gnu/glib/Handle;)Ljava/lang/String;
*/
JNIEXPORT jstring JNICALL
Java_org_guifications_gflib_GfEvent_gf_1event_1get_1i18n
(JNIEnv* env, jclass klass, jobject obj)
{
return (*env)->NewStringUTF(
env,
gf_event_get_i18n(
(GfEvent*)getPointerFromHandle(
env,
obj)));
}
/*
* Class: org_guifications_gflib_GfEvent
* Method: gf_event_get_description
* Signature: (Lorg/gnu/glib/Handle;)Ljava/lang/String;
*/
JNIEXPORT jstring JNICALL
Java_org_guifications_gflib_GfEvent_gf_1event_1get_1description
(JNIEnv* env, jclass klass, jobject obj)
{
return (*env)->NewStringUTF(
env,
gf_event_get_description(
(GfEvent*)getPointerFromHandle(
env,
obj)));
}
/*
* Class: org_guifications_gflib_GfEvent
* Method: gf_event_freev
* Signature: ([Lorg/gnu/glib/Handle;)V
*/
JNIEXPORT void JNICALL
Java_org_guifications_gflib_GfEvent_gf_1event_1freev
(JNIEnv* env, jclass klass, jobjectArray objs)
{
gf_event_freev((GfEvent**)objs);
}
#ifdef __cplusplus
}
#endif
#endif