/*
 * Java-Gnome Bindings Library
 *
 * Copyright 1998-2002 the Java-Gnome Team, all rights reserved.
 *
 * The Java-Gnome Team Members:
 *   Jean Van Wyk <jeanvanwyk@iname.com>
 *   Jeffrey S. Morgan <jeffrey.morgan@bristolwest.com>
 *   Dan Bornstein <danfuzz@milk.com>
 *
 * The Java-Gnome bindings library is free software distributed under
 * the terms of the GNU Library General Public License version 2.
 *
 * This file was orriginally generated by the Java-GNOME Code Generator
 * Please do not modify the code that is identified as generated.  Also,
 * please insert your code above the generated code.
 *
 * Generation date: 2002-08-01 07:00:23 EDT
 */

#include <jni.h>
#include <sys/types.h>
#include <gdk/gdk.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    /*
     * Class:     org.gnu.gdk.Atom
     * Method:    gdk_atom_intern
     * Signature: (java.lang.String;Z)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Atom_gdk_1atom_1intern (JNIEnv *env, jclass cls, 
        jstring atomName, jboolean onlyIfExists) 
    {
        const gchar* atomName_g = (*env)->GetStringUTFChars(env, atomName, 0);
        gboolean onlyIfExists_g = (gboolean) onlyIfExists;
        jint result = (jint)gdk_atom_intern (atomName_g, onlyIfExists_g);
        (*env)->ReleaseStringUTFChars(env, atomName, atomName_g);
        return result;
    }

    /*
     * Class:     org.gnu.gdk.Atom
     * Method:    gdk_atom_name
     * Signature: (I)java.lang.String;
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gdk_Atom_gdk_1atom_1name (JNIEnv *env, jclass cls, 
        jint atom) 
    {
        GdkAtom atom_g = (GdkAtom)atom;
        {
            const gchar *result_g = gdk_atom_name (atom_g);
            jstring result = (*env)->NewStringUTF(env, result_g);
            return result;
        }
    }

    /****************************************
     * END OF GENERATED CODE
     ****************************************/
#ifdef __cplusplus
}

#endif
