#include <com_sun_glass_ui_gtk_GtkDnDClipboard.h>
#include "glass_general.h"
#include "glass_dnd.hpp"

/*
 * Class:     com_sun_glass_ui_gtk_GtkDnDClipboard
 * Method:    isOwner
 * Signature: ()Z
 */
JNIEXPORT jboolean JNICALL Java_com_sun_glass_ui_gtk_GtkDnDClipboard_isOwner
  (JNIEnv *env , jobject obj)
{
    return JNI_FALSE;
}

/*
 * Class:     com_sun_glass_ui_gtk_GtkDnDClipboard
 * Method:    pushToSystemImpl
 * Signature: (Ljava/util/HashMap;I)I
 */
JNIEXPORT jint JNICALL
Java_com_sun_glass_ui_gtk_GtkDnDClipboard_pushToSystemImpl
  (JNIEnv * env, jobject obj, jobject data, jint supported)
{
    return execute_dnd(env, data, supported);
}

/*
 * Class:     com_sun_glass_ui_gtk_GtkDnDClipboard
 * Method:    pushTargetActionToSystem
 * Signature: (I)V
 */
JNIEXPORT void JNICALL Java_com_sun_glass_ui_gtk_GtkDnDClipboard_pushTargetActionToSystem
  (JNIEnv * env, jobject obj, jint action)
{
    // Never called.
}

/*
 * Class:     com_sun_glass_ui_gtk_GtkDnDClipboard
 * Method:    popFromSystem
 * Signature: (Ljava/lang/String;)Ljava/lang/Object;
 */
JNIEXPORT jobject JNICALL Java_com_sun_glass_ui_gtk_GtkDnDClipboard_popFromSystem
  (JNIEnv * env, jobject obj, jstring mime)
{
    return dnd_target_get_data(env, mime);
}

/*
 * Class:     com_sun_glass_ui_gtk_GtkDnDClipboard
 * Method:    supportedSourceActionsFromSystem
 * Signature: ()I
 */
JNIEXPORT jint JNICALL Java_com_sun_glass_ui_gtk_GtkDnDClipboard_supportedSourceActionsFromSystem
  (JNIEnv *env, jobject obj)
{
    return dnd_target_get_supported_actions(env);
}

/*
 * Class:     com_sun_glass_ui_gtk_GtkDnDClipboard
 * Method:    mimesFromSystem
 * Signature: ()[Ljava/lang/String;
 */
JNIEXPORT jobjectArray JNICALL Java_com_sun_glass_ui_gtk_GtkDnDClipboard_mimesFromSystem
  (JNIEnv * env, jobject obj)
{
    return dnd_target_get_mimes(env);
}
