/*
 * 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:33 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.RgbCmap
     * Method:    gdk_rgb_cmap_new
     * Signature: ([Lint ;I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_RgbCmap_gdk_1rgb_1cmap_1new (JNIEnv *env, jclass cls, 
        jintArray colors, jint numColors) 
    {
        gint *colors_g = (gint *) (*env)->GetIntArrayElements (env, colors, NULL);
        gint32 numColors_g = (gint32) numColors;
        {
            return (jint)gdk_rgb_cmap_new (colors_g, numColors_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.RgbCmap
     * Method:    gdk_rgb_cmap_free
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_RgbCmap_gdk_1rgb_1cmap_1free (JNIEnv *env, jclass cls, 
        jint cmap) 
    {
        GdkRgbCmap *cmap_g = (GdkRgbCmap *)cmap;
        {
            gdk_rgb_cmap_free (cmap_g);
        }
    }

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

#endif
