/*
 * 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-31 12:41:21 EDT
 */

#include <jni.h>
#include <sys/types.h>
#include <atk/atk.h>
#include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    /*
     * Class:     org.gnu.atk.RelationSet
     * Method:    atk_relation_set_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_atk_RelationSet_atk_1relation_1set_1get_1type (JNIEnv *env, 
        jclass cls) 
    {
        {
            return (jint)atk_relation_set_get_type ();
        }
    }

    /*
     * Class:     org.gnu.atk.RelationSet
     * Method:    atk_relation_set_new
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_atk_RelationSet_atk_1relation_1set_1new (JNIEnv *env, 
        jclass cls) 
    {
        {
            return (jint)atk_relation_set_new ();
        }
    }

    /*
     * Class:     org.gnu.atk.RelationSet
     * Method:    atk_relation_set_contains
     * Signature: (II)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_atk_RelationSet_atk_1relation_1set_1contains (JNIEnv 
        *env, jclass cls, jint set, jint relationship) 
    {
        AtkRelationSet *set_g = (AtkRelationSet *)set;
        AtkRelationType relationship_g = (AtkRelationType) relationship;
        {
            jboolean result_j = (jboolean) (atk_relation_set_contains (set_g, relationship_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.atk.RelationSet
     * Method:    atk_relation_set_remove
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_atk_RelationSet_atk_1relation_1set_1remove (JNIEnv *env, 
        jclass cls, jint set, jint relation) 
    {
        AtkRelationSet *set_g = (AtkRelationSet *)set;
        AtkRelation *relation_g = (AtkRelation *)relation;
        {
            atk_relation_set_remove (set_g, relation_g);
        }
    }

    /*
     * Class:     org.gnu.atk.RelationSet
     * Method:    atk_relation_set_add
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_atk_RelationSet_atk_1relation_1set_1add (JNIEnv *env, 
        jclass cls, jint set, jint relation) 
    {
        AtkRelationSet *set_g = (AtkRelationSet *)set;
        AtkRelation *relation_g = (AtkRelation *)relation;
        {
            atk_relation_set_add (set_g, relation_g);
        }
    }

    /*
     * Class:     org.gnu.atk.RelationSet
     * Method:    atk_relation_set_get_n_relations
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_atk_RelationSet_atk_1relation_1set_1get_1n_1relations (
        JNIEnv *env, jclass cls, jint set) 
    {
        AtkRelationSet *set_g = (AtkRelationSet *)set;
        {
            jint result_j = (jint) (atk_relation_set_get_n_relations (set_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.atk.RelationSet
     * Method:    atk_relation_set_get_relation
     * Signature: (II)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_atk_RelationSet_atk_1relation_1set_1get_1relation (JNIEnv 
        *env, jclass cls, jint set, jint index) 
    {
        AtkRelationSet *set_g = (AtkRelationSet *)set;
        gint32 index_g = (gint32) index;
        {
            return (jint)atk_relation_set_get_relation (set_g, index_g);
        }
    }

    /*
     * Class:     org.gnu.atk.RelationSet
     * Method:    atk_relation_set_get_relation_by_type
     * Signature: (II)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_atk_RelationSet_atk_1relation_1set_1get_1relation_1by_1type (
        JNIEnv *env, jclass cls, jint set, jint relationship) 
    {
        AtkRelationSet *set_g = (AtkRelationSet *)set;
        AtkRelationType relationship_g = (AtkRelationType) relationship;
        {
            return (jint)atk_relation_set_get_relation_by_type (set_g, relationship_g);
        }
    }

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

#endif
