/*
 * 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-07-26 07:01:03 EDT
 */

#include <jni.h>
#include <sys/types.h>
#include <glib.h>
#include <glib-object.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    gpointer GList_get_data (GList * cptr) 
    {
        return cptr->data;
    }

    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    /*
     * Class:     org.gnu.glib.List
     * Method:    getData
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_List_getData (JNIEnv *env, jclass cls, jint obj) 
    {
        GList *obj_g = (GList *)obj;
        {
            return (jint)GList_get_data (obj_g);
        }
    }

    /*
     * Class:     org.gnu.glib.List
     * Method:    g_list_append
     * Signature: (II)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_List_g_1list_1append (JNIEnv *env, jclass cls, jint 
        list, jint data) 
    {
        GList *list_g = (GList *)list;
        gpointer *data_g = (gpointer *)data;
        {
            return (jint)g_list_append (list_g, data_g);
        }
    }

    /*
     * Class:     org.gnu.glib.List
     * Method:    g_list_prepend
     * Signature: (II)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_List_g_1list_1prepend (JNIEnv *env, jclass cls, jint 
        list, jint data) 
    {
        GList *list_g = (GList *)list;
        gpointer *data_g = (gpointer *)data;
        {
            return (jint)g_list_prepend (list_g, data_g);
        }
    }

    /*
     * Class:     org.gnu.glib.List
     * Method:    g_list_insert
     * Signature: (III)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_List_g_1list_1insert (JNIEnv *env, jclass cls, jint 
        list, jint data, jint position) 
    {
        GList *list_g = (GList *)list;
        gpointer *data_g = (gpointer *)data;
        gint32 position_g = (gint32) position;
        {
            return (jint)g_list_insert (list_g, data_g, position_g);
        }
    }

    /*
     * Class:     org.gnu.glib.List
     * Method:    g_list_remove
     * Signature: (II)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_List_g_1list_1remove (JNIEnv *env, jclass cls, jint 
        list, jint data) 
    {
        GList *list_g = (GList *)list;
        gpointer *data_g = (gpointer *)data;
        {
            return (jint)g_list_remove (list_g, data_g);
        }
    }

    /*
     * Class:     org.gnu.glib.List
     * Method:    g_list_remove_all
     * Signature: (II)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_List_g_1list_1remove_1all (JNIEnv *env, jclass cls, 
        jint list, jint data) 
    {
        GList *list_g = (GList *)list;
        gpointer *data_g = (gpointer *)data;
        {
            return (jint)g_list_remove_all (list_g, data_g);
        }
    }

    /*
     * Class:     org.gnu.glib.List
     * Method:    g_list_free
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_glib_List_g_1list_1free (JNIEnv *env, jclass cls, jint list)
    {
        GList *list_g = (GList *)list;
        {
            g_list_free (list_g);
        }
    }

    /*
     * Class:     org.gnu.glib.List
     * Method:    g_list_alloc
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_List_g_1list_1alloc (JNIEnv *env, jclass cls) 
    {
        {
            return (jint)g_list_alloc ();
        }
    }

    /*
     * Class:     org.gnu.glib.List
     * Method:    g_list_length
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_List_g_1list_1length (JNIEnv *env, jclass cls, jint 
        list) 
    {
        GList *list_g = (GList *)list;
        {
            jint result_j = (jint) (g_list_length (list_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.glib.List
     * Method:    g_list_first
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_List_g_1list_1first (JNIEnv *env, jclass cls, jint 
        list) 
    {
        GList *list_g = (GList *)list;
        {
            return (jint)g_list_first (list_g);
        }
    }

    /*
     * Class:     org.gnu.glib.List
     * Method:    g_list_last
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_List_g_1list_1last (JNIEnv *env, jclass cls, jint list)
    {
        GList *list_g = (GList *)list;
        {
            return (jint)g_list_last (list_g);
        }
    }

    /*
     * Class:     org.gnu.glib.List
     * Method:    g_list_previous
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_List_g_1list_1previous (JNIEnv *env, jclass cls, jint 
        list) 
    {
        GList *list_g = (GList *)list;
        {
            return (jint)g_list_previous (list_g);
        }
    }

    /*
     * Class:     org.gnu.glib.List
     * Method:    g_list_next
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_List_g_1list_1next (JNIEnv *env, jclass cls, jint list)
    {
        GList *list_g = (GList *)list;
        {
            return (jint)g_list_next (list_g);
        }
    }

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

#endif
