aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSami Wagiaalla2014-03-24 13:39:44 (EDT)
committerAlexander Kurtakov2014-03-26 05:50:27 (EDT)
commitc4d8f00d3b05b52036330a780226ece860d85b38 (patch)
treeb1381724ab7dca12c5d7b6ca7cf0a25c8eb98fc8
parente01c3a3f02055b3ed235cab43fec2df84066bbed (diff)
downloadeclipse.platform.swt-c4d8f00d3b05b52036330a780226ece860d85b38.zip
eclipse.platform.swt-c4d8f00d3b05b52036330a780226ece860d85b38.tar.gz
eclipse.platform.swt-c4d8f00d3b05b52036330a780226ece860d85b38.tar.bz2
Bug 430914 - Add bindings required for DBusrefs/changes/39/23739/3
These are bindings to glib functions for DBus, and functions for creating and parsing glib GVariant types. Change-Id: Idc93625bd9e389a4be51abb6b695c2f0cd2befbb Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c661
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h32
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c32
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h32
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java329
5 files changed, 1082 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
index d63668c..1cd3a77 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
@@ -2553,6 +2553,50 @@ JNIEXPORT jboolean JNICALL OS_NATIVE(_1g_1app_1info_1supports_1uris)
}
#endif
+#ifndef NO__1g_1bus_1get_1sync
+JNIEXPORT jintLong JNICALL OS_NATIVE(_1g_1bus_1get_1sync)
+ (JNIEnv *env, jclass that, jint arg0, jintLong arg1, jintLong arg2)
+{
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1bus_1get_1sync_FUNC);
+/*
+ rc = (jintLong)g_bus_get_sync(arg0, arg1, arg2);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_bus_get_sync)
+ if (fp) {
+ rc = (jintLong)((jintLong (CALLING_CONVENTION*)(jint, jintLong, jintLong))fp)(arg0, arg1, arg2);
+ }
+ }
+ OS_NATIVE_EXIT(env, that, _1g_1bus_1get_1sync_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1bus_1own_1name
+JNIEXPORT jint JNICALL OS_NATIVE(_1g_1bus_1own_1name)
+ (JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2, jintLong arg3, jintLong arg4, jintLong arg5, jintLong arg6, jintLong arg7)
+{
+ jbyte *lparg1=NULL;
+ jint rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1bus_1own_1name_FUNC);
+ if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail;
+/*
+ rc = (jint)g_bus_own_name(arg0, lparg1, arg2, arg3, arg4, arg5, arg6, arg7);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_bus_own_name)
+ if (fp) {
+ rc = (jint)((jint (CALLING_CONVENTION*)(jint, jbyte *, jint, jintLong, jintLong, jintLong, jintLong, jintLong))fp)(arg0, lparg1, arg2, arg3, arg4, arg5, arg6, arg7);
+ }
+ }
+fail:
+ if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
+ OS_NATIVE_EXIT(env, that, _1g_1bus_1own_1name_FUNC);
+ return rc;
+}
+#endif
+
#ifndef NO__1g_1cclosure_1new
JNIEXPORT jintLong JNICALL OS_NATIVE(_1g_1cclosure_1new)
(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2)
@@ -2689,6 +2733,263 @@ fail:
}
#endif
+#ifndef NO__1g_1dbus_1connection_1register_1object
+JNIEXPORT jint JNICALL OS_NATIVE(_1g_1dbus_1connection_1register_1object)
+ (JNIEnv *env, jclass that, jintLong arg0, jbyteArray arg1, jintLong arg2, jlongArray arg3, jintLong arg4, jintLong arg5, jintLongArray arg6)
+{
+ jbyte *lparg1=NULL;
+ jlong *lparg3=NULL;
+ jintLong *lparg6=NULL;
+ jint rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1dbus_1connection_1register_1object_FUNC);
+ if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail;
+ if (arg3) if ((lparg3 = (*env)->GetLongArrayElements(env, arg3, NULL)) == NULL) goto fail;
+ if (arg6) if ((lparg6 = (*env)->GetIntLongArrayElements(env, arg6, NULL)) == NULL) goto fail;
+/*
+ rc = (jint)g_dbus_connection_register_object(arg0, lparg1, arg2, lparg3, arg4, arg5, lparg6);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_dbus_connection_register_object)
+ if (fp) {
+ rc = (jint)((jint (CALLING_CONVENTION*)(jintLong, jbyte *, jintLong, jlong *, jintLong, jintLong, jintLong *))fp)(arg0, lparg1, arg2, lparg3, arg4, arg5, lparg6);
+ }
+ }
+fail:
+ if (arg6 && lparg6) (*env)->ReleaseIntLongArrayElements(env, arg6, lparg6, 0);
+ if (arg3 && lparg3) (*env)->ReleaseLongArrayElements(env, arg3, lparg3, 0);
+ if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
+ OS_NATIVE_EXIT(env, that, _1g_1dbus_1connection_1register_1object_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1dbus_1method_1invocation_1return_1value
+JNIEXPORT void JNICALL OS_NATIVE(_1g_1dbus_1method_1invocation_1return_1value)
+ (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1)
+{
+ OS_NATIVE_ENTER(env, that, _1g_1dbus_1method_1invocation_1return_1value_FUNC);
+/*
+ g_dbus_method_invocation_return_value(arg0, arg1);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_dbus_method_invocation_return_value)
+ if (fp) {
+ ((void (CALLING_CONVENTION*)(jintLong, jintLong))fp)(arg0, arg1);
+ }
+ }
+ OS_NATIVE_EXIT(env, that, _1g_1dbus_1method_1invocation_1return_1value_FUNC);
+}
+#endif
+
+#ifndef NO__1g_1dbus_1node_1info_1get_1first_1interface_1info
+JNIEXPORT jintLong JNICALL OS_NATIVE(_1g_1dbus_1node_1info_1get_1first_1interface_1info)
+ (JNIEnv *env, jclass that, jintLong arg0)
+{
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1dbus_1node_1info_1get_1first_1interface_1info_FUNC);
+ rc = (jintLong)g_dbus_node_info_get_first_interface_info((GDBusNodeInfo *)arg0);
+ OS_NATIVE_EXIT(env, that, _1g_1dbus_1node_1info_1get_1first_1interface_1info_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1dbus_1node_1info_1new_1for_1xml
+JNIEXPORT jintLong JNICALL OS_NATIVE(_1g_1dbus_1node_1info_1new_1for_1xml)
+ (JNIEnv *env, jclass that, jbyteArray arg0, jintLongArray arg1)
+{
+ jbyte *lparg0=NULL;
+ jintLong *lparg1=NULL;
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1dbus_1node_1info_1new_1for_1xml_FUNC);
+ if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail;
+ if (arg1) if ((lparg1 = (*env)->GetIntLongArrayElements(env, arg1, NULL)) == NULL) goto fail;
+/*
+ rc = (jintLong)g_dbus_node_info_new_for_xml(lparg0, lparg1);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_dbus_node_info_new_for_xml)
+ if (fp) {
+ rc = (jintLong)((jintLong (CALLING_CONVENTION*)(jbyte *, jintLong *))fp)(lparg0, lparg1);
+ }
+ }
+fail:
+ if (arg1 && lparg1) (*env)->ReleaseIntLongArrayElements(env, arg1, lparg1, 0);
+ if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
+ OS_NATIVE_EXIT(env, that, _1g_1dbus_1node_1info_1new_1for_1xml_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1dbus_1proxy_1call
+JNIEXPORT void JNICALL OS_NATIVE(_1g_1dbus_1proxy_1call)
+ (JNIEnv *env, jclass that, jintLong arg0, jbyteArray arg1, jintLong arg2, jint arg3, jint arg4, jintLong arg5, jintLong arg6, jintLong arg7)
+{
+ jbyte *lparg1=NULL;
+ OS_NATIVE_ENTER(env, that, _1g_1dbus_1proxy_1call_FUNC);
+ if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail;
+/*
+ g_dbus_proxy_call(arg0, lparg1, arg2, arg3, arg4, arg5, arg6, arg7);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_dbus_proxy_call)
+ if (fp) {
+ ((void (CALLING_CONVENTION*)(jintLong, jbyte *, jintLong, jint, jint, jintLong, jintLong, jintLong))fp)(arg0, lparg1, arg2, arg3, arg4, arg5, arg6, arg7);
+ }
+ }
+fail:
+ if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
+ OS_NATIVE_EXIT(env, that, _1g_1dbus_1proxy_1call_FUNC);
+}
+#endif
+
+#ifndef NO__1g_1dbus_1proxy_1call_1finish
+JNIEXPORT jintLong JNICALL OS_NATIVE(_1g_1dbus_1proxy_1call_1finish)
+ (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLongArray arg2)
+{
+ jintLong *lparg2=NULL;
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1dbus_1proxy_1call_1finish_FUNC);
+ if (arg2) if ((lparg2 = (*env)->GetIntLongArrayElements(env, arg2, NULL)) == NULL) goto fail;
+/*
+ rc = (jintLong)g_dbus_proxy_call_finish(arg0, arg1, lparg2);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_dbus_proxy_call_finish)
+ if (fp) {
+ rc = (jintLong)((jintLong (CALLING_CONVENTION*)(jintLong, jintLong, jintLong *))fp)(arg0, arg1, lparg2);
+ }
+ }
+fail:
+ if (arg2 && lparg2) (*env)->ReleaseIntLongArrayElements(env, arg2, lparg2, 0);
+ OS_NATIVE_EXIT(env, that, _1g_1dbus_1proxy_1call_1finish_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1dbus_1proxy_1call_1sync
+JNIEXPORT jintLong JNICALL OS_NATIVE(_1g_1dbus_1proxy_1call_1sync)
+ (JNIEnv *env, jclass that, jintLong arg0, jbyteArray arg1, jintLong arg2, jint arg3, jint arg4, jintLong arg5, jintLongArray arg6)
+{
+ jbyte *lparg1=NULL;
+ jintLong *lparg6=NULL;
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1dbus_1proxy_1call_1sync_FUNC);
+ if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail;
+ if (arg6) if ((lparg6 = (*env)->GetIntLongArrayElements(env, arg6, NULL)) == NULL) goto fail;
+/*
+ rc = (jintLong)g_dbus_proxy_call_sync(arg0, lparg1, arg2, arg3, arg4, arg5, lparg6);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_dbus_proxy_call_sync)
+ if (fp) {
+ rc = (jintLong)((jintLong (CALLING_CONVENTION*)(jintLong, jbyte *, jintLong, jint, jint, jintLong, jintLong *))fp)(arg0, lparg1, arg2, arg3, arg4, arg5, lparg6);
+ }
+ }
+fail:
+ if (arg6 && lparg6) (*env)->ReleaseIntLongArrayElements(env, arg6, lparg6, 0);
+ if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
+ OS_NATIVE_EXIT(env, that, _1g_1dbus_1proxy_1call_1sync_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1dbus_1proxy_1new
+JNIEXPORT void JNICALL OS_NATIVE(_1g_1dbus_1proxy_1new)
+ (JNIEnv *env, jclass that, jintLong arg0, jint arg1, jintLong arg2, jbyteArray arg3, jbyteArray arg4, jbyteArray arg5, jintLong arg6, jintLong arg7, jintLong arg8)
+{
+ jbyte *lparg3=NULL;
+ jbyte *lparg4=NULL;
+ jbyte *lparg5=NULL;
+ OS_NATIVE_ENTER(env, that, _1g_1dbus_1proxy_1new_FUNC);
+ if (arg3) if ((lparg3 = (*env)->GetByteArrayElements(env, arg3, NULL)) == NULL) goto fail;
+ if (arg4) if ((lparg4 = (*env)->GetByteArrayElements(env, arg4, NULL)) == NULL) goto fail;
+ if (arg5) if ((lparg5 = (*env)->GetByteArrayElements(env, arg5, NULL)) == NULL) goto fail;
+/*
+ g_dbus_proxy_new(arg0, arg1, arg2, lparg3, lparg4, lparg5, arg6, arg7, arg8);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_dbus_proxy_new)
+ if (fp) {
+ ((void (CALLING_CONVENTION*)(jintLong, jint, jintLong, jbyte *, jbyte *, jbyte *, jintLong, jintLong, jintLong))fp)(arg0, arg1, arg2, lparg3, lparg4, lparg5, arg6, arg7, arg8);
+ }
+ }
+fail:
+ if (arg5 && lparg5) (*env)->ReleaseByteArrayElements(env, arg5, lparg5, 0);
+ if (arg4 && lparg4) (*env)->ReleaseByteArrayElements(env, arg4, lparg4, 0);
+ if (arg3 && lparg3) (*env)->ReleaseByteArrayElements(env, arg3, lparg3, 0);
+ OS_NATIVE_EXIT(env, that, _1g_1dbus_1proxy_1new_FUNC);
+}
+#endif
+
+#ifndef NO__1g_1dbus_1proxy_1new_1finish
+JNIEXPORT jintLong JNICALL OS_NATIVE(_1g_1dbus_1proxy_1new_1finish)
+ (JNIEnv *env, jclass that, jintLong arg0, jintLongArray arg1)
+{
+ jintLong *lparg1=NULL;
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1dbus_1proxy_1new_1finish_FUNC);
+ if (arg1) if ((lparg1 = (*env)->GetIntLongArrayElements(env, arg1, NULL)) == NULL) goto fail;
+/*
+ rc = (jintLong)g_dbus_proxy_new_finish(arg0, lparg1);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_dbus_proxy_new_finish)
+ if (fp) {
+ rc = (jintLong)((jintLong (CALLING_CONVENTION*)(jintLong, jintLong *))fp)(arg0, lparg1);
+ }
+ }
+fail:
+ if (arg1 && lparg1) (*env)->ReleaseIntLongArrayElements(env, arg1, lparg1, 0);
+ OS_NATIVE_EXIT(env, that, _1g_1dbus_1proxy_1new_1finish_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1dbus_1proxy_1new_1sync
+JNIEXPORT jintLong JNICALL OS_NATIVE(_1g_1dbus_1proxy_1new_1sync)
+ (JNIEnv *env, jclass that, jintLong arg0, jint arg1, jintLong arg2, jbyteArray arg3, jbyteArray arg4, jbyteArray arg5, jintLong arg6, jintLongArray arg7)
+{
+ jbyte *lparg3=NULL;
+ jbyte *lparg4=NULL;
+ jbyte *lparg5=NULL;
+ jintLong *lparg7=NULL;
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1dbus_1proxy_1new_1sync_FUNC);
+ if (arg3) if ((lparg3 = (*env)->GetByteArrayElements(env, arg3, NULL)) == NULL) goto fail;
+ if (arg4) if ((lparg4 = (*env)->GetByteArrayElements(env, arg4, NULL)) == NULL) goto fail;
+ if (arg5) if ((lparg5 = (*env)->GetByteArrayElements(env, arg5, NULL)) == NULL) goto fail;
+ if (arg7) if ((lparg7 = (*env)->GetIntLongArrayElements(env, arg7, NULL)) == NULL) goto fail;
+/*
+ rc = (jintLong)g_dbus_proxy_new_sync(arg0, arg1, arg2, lparg3, lparg4, lparg5, arg6, lparg7);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_dbus_proxy_new_sync)
+ if (fp) {
+ rc = (jintLong)((jintLong (CALLING_CONVENTION*)(jintLong, jint, jintLong, jbyte *, jbyte *, jbyte *, jintLong, jintLong *))fp)(arg0, arg1, arg2, lparg3, lparg4, lparg5, arg6, lparg7);
+ }
+ }
+fail:
+ if (arg7 && lparg7) (*env)->ReleaseIntLongArrayElements(env, arg7, lparg7, 0);
+ if (arg5 && lparg5) (*env)->ReleaseByteArrayElements(env, arg5, lparg5, 0);
+ if (arg4 && lparg4) (*env)->ReleaseByteArrayElements(env, arg4, lparg4, 0);
+ if (arg3 && lparg3) (*env)->ReleaseByteArrayElements(env, arg3, lparg3, 0);
+ OS_NATIVE_EXIT(env, that, _1g_1dbus_1proxy_1new_1sync_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1error_1get_1message
+JNIEXPORT jintLong JNICALL OS_NATIVE(_1g_1error_1get_1message)
+ (JNIEnv *env, jclass that, jintLong arg0)
+{
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1error_1get_1message_FUNC);
+ rc = (jintLong)g_error_get_message((GError *)arg0);
+ OS_NATIVE_EXIT(env, that, _1g_1error_1get_1message_FUNC);
+ return rc;
+}
+#endif
+
#ifndef NO__1g_1file_1get_1uri
JNIEXPORT jintLong JNICALL OS_NATIVE(_1g_1file_1get_1uri)
(JNIEnv *env, jclass that, jintLong arg0)
@@ -4518,6 +4819,366 @@ JNIEXPORT jintLong JNICALL OS_NATIVE(_1g_1value_1peek_1pointer)
}
#endif
+#ifndef NO__1g_1variant_1get_1boolean
+JNIEXPORT jboolean JNICALL OS_NATIVE(_1g_1variant_1get_1boolean)
+ (JNIEnv *env, jclass that, jintLong arg0)
+{
+ jboolean rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1variant_1get_1boolean_FUNC);
+/*
+ rc = (jboolean)g_variant_get_boolean(arg0);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_variant_get_boolean)
+ if (fp) {
+ rc = (jboolean)((jboolean (CALLING_CONVENTION*)(jintLong))fp)(arg0);
+ }
+ }
+ OS_NATIVE_EXIT(env, that, _1g_1variant_1get_1boolean_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1variant_1get_1child_1value
+JNIEXPORT jintLong JNICALL OS_NATIVE(_1g_1variant_1get_1child_1value)
+ (JNIEnv *env, jclass that, jintLong arg0, jint arg1)
+{
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1variant_1get_1child_1value_FUNC);
+/*
+ rc = (jintLong)g_variant_get_child_value(arg0, arg1);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_variant_get_child_value)
+ if (fp) {
+ rc = (jintLong)((jintLong (CALLING_CONVENTION*)(jintLong, jint))fp)(arg0, arg1);
+ }
+ }
+ OS_NATIVE_EXIT(env, that, _1g_1variant_1get_1child_1value_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1variant_1get_1double
+JNIEXPORT jdouble JNICALL OS_NATIVE(_1g_1variant_1get_1double)
+ (JNIEnv *env, jclass that, jintLong arg0)
+{
+ jdouble rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1variant_1get_1double_FUNC);
+/*
+ rc = (jdouble)g_variant_get_double(arg0);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_variant_get_double)
+ if (fp) {
+ rc = (jdouble)((jdouble (CALLING_CONVENTION*)(jintLong))fp)(arg0);
+ }
+ }
+ OS_NATIVE_EXIT(env, that, _1g_1variant_1get_1double_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1variant_1get_1string
+JNIEXPORT jintLong JNICALL OS_NATIVE(_1g_1variant_1get_1string)
+ (JNIEnv *env, jclass that, jintLong arg0, jlongArray arg1)
+{
+ jlong *lparg1=NULL;
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1variant_1get_1string_FUNC);
+ if (arg1) if ((lparg1 = (*env)->GetLongArrayElements(env, arg1, NULL)) == NULL) goto fail;
+/*
+ rc = (jintLong)g_variant_get_string(arg0, lparg1);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_variant_get_string)
+ if (fp) {
+ rc = (jintLong)((jintLong (CALLING_CONVENTION*)(jintLong, jlong *))fp)(arg0, lparg1);
+ }
+ }
+fail:
+ if (arg1 && lparg1) (*env)->ReleaseLongArrayElements(env, arg1, lparg1, 0);
+ OS_NATIVE_EXIT(env, that, _1g_1variant_1get_1string_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1variant_1get_1type
+JNIEXPORT jint JNICALL OS_NATIVE(_1g_1variant_1get_1type)
+ (JNIEnv *env, jclass that, jintLong arg0)
+{
+ jint rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1variant_1get_1type_FUNC);
+/*
+ rc = (jint)g_variant_get_type(arg0);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_variant_get_type)
+ if (fp) {
+ rc = (jint)((jint (CALLING_CONVENTION*)(jintLong))fp)(arg0);
+ }
+ }
+ OS_NATIVE_EXIT(env, that, _1g_1variant_1get_1type_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1variant_1get_1type_1string
+JNIEXPORT jintLong JNICALL OS_NATIVE(_1g_1variant_1get_1type_1string)
+ (JNIEnv *env, jclass that, jintLong arg0)
+{
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1variant_1get_1type_1string_FUNC);
+/*
+ rc = (jintLong)g_variant_get_type_string(arg0);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_variant_get_type_string)
+ if (fp) {
+ rc = (jintLong)((jintLong (CALLING_CONVENTION*)(jintLong))fp)(arg0);
+ }
+ }
+ OS_NATIVE_EXIT(env, that, _1g_1variant_1get_1type_1string_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1variant_1get_1uint64
+JNIEXPORT jlong JNICALL OS_NATIVE(_1g_1variant_1get_1uint64)
+ (JNIEnv *env, jclass that, jintLong arg0)
+{
+ jlong rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1variant_1get_1uint64_FUNC);
+/*
+ rc = (jlong)g_variant_get_uint64(arg0);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_variant_get_uint64)
+ if (fp) {
+ rc = (jlong)((jlong (CALLING_CONVENTION*)(jintLong))fp)(arg0);
+ }
+ }
+ OS_NATIVE_EXIT(env, that, _1g_1variant_1get_1uint64_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1variant_1is_1of_1type
+JNIEXPORT jboolean JNICALL OS_NATIVE(_1g_1variant_1is_1of_1type)
+ (JNIEnv *env, jclass that, jintLong arg0, jbyteArray arg1)
+{
+ jbyte *lparg1=NULL;
+ jboolean rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1variant_1is_1of_1type_FUNC);
+ if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail;
+/*
+ rc = (jboolean)g_variant_is_of_type(arg0, lparg1);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_variant_is_of_type)
+ if (fp) {
+ rc = (jboolean)((jboolean (CALLING_CONVENTION*)(jintLong, jbyte *))fp)(arg0, lparg1);
+ }
+ }
+fail:
+ if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
+ OS_NATIVE_EXIT(env, that, _1g_1variant_1is_1of_1type_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1variant_1n_1children
+JNIEXPORT jlong JNICALL OS_NATIVE(_1g_1variant_1n_1children)
+ (JNIEnv *env, jclass that, jlong arg0)
+{
+ jlong rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1variant_1n_1children_FUNC);
+/*
+ rc = (jlong)g_variant_n_children(arg0);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_variant_n_children)
+ if (fp) {
+ rc = (jlong)((jlong (CALLING_CONVENTION*)(jlong))fp)(arg0);
+ }
+ }
+ OS_NATIVE_EXIT(env, that, _1g_1variant_1n_1children_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1variant_1new_1boolean
+JNIEXPORT jintLong JNICALL OS_NATIVE(_1g_1variant_1new_1boolean)
+ (JNIEnv *env, jclass that, jboolean arg0)
+{
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1variant_1new_1boolean_FUNC);
+/*
+ rc = (jintLong)g_variant_new_boolean(arg0);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_variant_new_boolean)
+ if (fp) {
+ rc = (jintLong)((jintLong (CALLING_CONVENTION*)(jboolean))fp)(arg0);
+ }
+ }
+ OS_NATIVE_EXIT(env, that, _1g_1variant_1new_1boolean_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1variant_1new_1byte
+JNIEXPORT jintLong JNICALL OS_NATIVE(_1g_1variant_1new_1byte)
+ (JNIEnv *env, jclass that, jbyte arg0)
+{
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1variant_1new_1byte_FUNC);
+/*
+ rc = (jintLong)g_variant_new_byte(arg0);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_variant_new_byte)
+ if (fp) {
+ rc = (jintLong)((jintLong (CALLING_CONVENTION*)(jbyte))fp)(arg0);
+ }
+ }
+ OS_NATIVE_EXIT(env, that, _1g_1variant_1new_1byte_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1variant_1new_1double
+JNIEXPORT jintLong JNICALL OS_NATIVE(_1g_1variant_1new_1double)
+ (JNIEnv *env, jclass that, jdouble arg0)
+{
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1variant_1new_1double_FUNC);
+/*
+ rc = (jintLong)g_variant_new_double(arg0);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_variant_new_double)
+ if (fp) {
+ rc = (jintLong)((jintLong (CALLING_CONVENTION*)(jdouble))fp)(arg0);
+ }
+ }
+ OS_NATIVE_EXIT(env, that, _1g_1variant_1new_1double_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1variant_1new_1int64
+JNIEXPORT jintLong JNICALL OS_NATIVE(_1g_1variant_1new_1int64)
+ (JNIEnv *env, jclass that, jlong arg0)
+{
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1variant_1new_1int64_FUNC);
+/*
+ rc = (jintLong)g_variant_new_int64(arg0);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_variant_new_int64)
+ if (fp) {
+ rc = (jintLong)((jintLong (CALLING_CONVENTION*)(jlong))fp)(arg0);
+ }
+ }
+ OS_NATIVE_EXIT(env, that, _1g_1variant_1new_1int64_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1variant_1new_1maybe
+JNIEXPORT jintLong JNICALL OS_NATIVE(_1g_1variant_1new_1maybe)
+ (JNIEnv *env, jclass that, jbyteArray arg0, jintLong arg1)
+{
+ jbyte *lparg0=NULL;
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1variant_1new_1maybe_FUNC);
+ if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail;
+/*
+ rc = (jintLong)g_variant_new_maybe(lparg0, arg1);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_variant_new_maybe)
+ if (fp) {
+ rc = (jintLong)((jintLong (CALLING_CONVENTION*)(jbyte *, jintLong))fp)(lparg0, arg1);
+ }
+ }
+fail:
+ if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
+ OS_NATIVE_EXIT(env, that, _1g_1variant_1new_1maybe_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1variant_1new_1string
+JNIEXPORT jintLong JNICALL OS_NATIVE(_1g_1variant_1new_1string)
+ (JNIEnv *env, jclass that, jbyteArray arg0)
+{
+ jbyte *lparg0=NULL;
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1variant_1new_1string_FUNC);
+ if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail;
+/*
+ rc = (jintLong)g_variant_new_string(lparg0);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_variant_new_string)
+ if (fp) {
+ rc = (jintLong)((jintLong (CALLING_CONVENTION*)(jbyte *))fp)(lparg0);
+ }
+ }
+fail:
+ if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
+ OS_NATIVE_EXIT(env, that, _1g_1variant_1new_1string_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1variant_1new_1tuple
+JNIEXPORT jintLong JNICALL OS_NATIVE(_1g_1variant_1new_1tuple)
+ (JNIEnv *env, jclass that, jintLongArray arg0, jlong arg1)
+{
+ jintLong *lparg0=NULL;
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1variant_1new_1tuple_FUNC);
+ if (arg0) if ((lparg0 = (*env)->GetIntLongArrayElements(env, arg0, NULL)) == NULL) goto fail;
+/*
+ rc = (jintLong)g_variant_new_tuple(lparg0, arg1);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_variant_new_tuple)
+ if (fp) {
+ rc = (jintLong)((jintLong (CALLING_CONVENTION*)(jintLong *, jlong))fp)(lparg0, arg1);
+ }
+ }
+fail:
+ if (arg0 && lparg0) (*env)->ReleaseIntLongArrayElements(env, arg0, lparg0, 0);
+ OS_NATIVE_EXIT(env, that, _1g_1variant_1new_1tuple_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO__1g_1variant_1new_1uint64
+JNIEXPORT jintLong JNICALL OS_NATIVE(_1g_1variant_1new_1uint64)
+ (JNIEnv *env, jclass that, jlong arg0)
+{
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, _1g_1variant_1new_1uint64_FUNC);
+/*
+ rc = (jintLong)g_variant_new_uint64(arg0);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, g_variant_new_uint64)
+ if (fp) {
+ rc = (jintLong)((jintLong (CALLING_CONVENTION*)(jlong))fp)(arg0);
+ }
+ }
+ OS_NATIVE_EXIT(env, that, _1g_1variant_1new_1uint64_FUNC);
+ return rc;
+}
+#endif
+
#ifndef NO__1gdk_1atom_1intern
JNIEXPORT jintLong JNICALL OS_NATIVE(_1gdk_1atom_1intern)
(JNIEnv *env, jclass that, jbyteArray arg0, jboolean arg1)
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h
index ed4074d..1657977 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h
@@ -78,8 +78,38 @@
#define XRenderFreePicture_LIB LIB_XRENDER
#define XRenderSetPictureClipRectangles_LIB LIB_XRENDER
#define XRenderSetPictureTransform_LIB LIB_XRENDER
+#define g_bus_get_sync_LIB LIB_GIO
+#define g_bus_own_name_LIB LIB_GIO
+#define g_dbus_connection_register_object_LIB LIB_GIO
+#define g_dbus_method_invocation_return_value_LIB LIB_GIO
+#define g_dbus_node_info_new_for_xml_LIB LIB_GIO
+#define g_dbus_proxy_call_LIB LIB_GIO
+#define g_dbus_proxy_call_finish_LIB LIB_GIO
+#define g_dbus_proxy_call_sync_LIB LIB_GIO
+#define g_dbus_proxy_call_sync_finish_LIB LIB_GIO
+#define g_dbus_proxy_new_LIB LIB_GIO
+#define g_dbus_proxy_new_finish_LIB LIB_GIO
+#define g_dbus_proxy_new_sync_LIB LIB_GIO
#define g_filename_display_name_LIB LIB_GLIB
#define g_thread_init_LIB LIB_GTHREAD
+#define g_variant_get_boolean_LIB LIB_GIO
+#define g_variant_get_child_value_LIB LIB_GIO
+#define g_variant_get_double_LIB LIB_GIO
+#define g_variant_get_string_LIB LIB_GIO
+#define g_variant_get_type_string_LIB LIB_GIO
+#define g_variant_get_type_LIB LIB_GIO
+#define g_variant_get_uint64_LIB LIB_GIO
+#define g_variant_get_uint64_LIB LIB_GIO
+#define g_variant_is_of_type_LIB LIB_GIO
+#define g_variant_new_boolean_LIB LIB_GIO
+#define g_variant_new_byte_LIB LIB_GIO
+#define g_variant_new_double_LIB LIB_GIO
+#define g_variant_new_int64_LIB LIB_GIO
+#define g_variant_new_maybe_LIB LIB_GIO
+#define g_variant_new_string_LIB LIB_GIO
+#define g_variant_new_tuple_LIB LIB_GIO
+#define g_variant_new_uint64_LIB LIB_GIO
+#define g_variant_n_children_LIB LIB_GIO
#define gtk_widget_set_allocation_LIB LIB_GTK
#define gtk_adjustment_configure_LIB LIB_GTK
#define gtk_adjustment_get_lower_LIB LIB_GTK
@@ -663,6 +693,8 @@
#define GDK_EVENT_WINDOW(arg0) (arg0)->window
#define X_EVENT_TYPE(arg0) (arg0)->type
#define X_EVENT_WINDOW(arg0) (arg0)->window
+#define g_dbus_node_info_get_first_interface_info(arg0) (arg0)->interfaces[0]
+#define g_error_get_message(arg0) (arg0)->message
#define g_list_data(arg0) (arg0)->data
#define g_slist_data(arg0) (arg0)->data
#define g_list_set_next(arg0, arg1) (arg0)->next = arg1
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c
index cc04542..cf7eed4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2013 IBM Corporation and others. All rights reserved.
+ * Copyright (c) 2000, 2014 IBM Corporation and others. All rights reserved.
* The contents of this file are made available under the terms
* of the GNU Lesser General Public License (LGPL) Version 2.1 that
* accompanies this distribution (lgpl-v21.txt). The LGPL is also
@@ -227,6 +227,8 @@ char * OS_nativeFunctionNames[] = {
"_1g_1app_1info_1launch_1default_1for_1uri",
"_1g_1app_1info_1should_1show",
"_1g_1app_1info_1supports_1uris",
+ "_1g_1bus_1get_1sync",
+ "_1g_1bus_1own_1name",
"_1g_1cclosure_1new",
"_1g_1closure_1ref",
"_1g_1closure_1sink",
@@ -235,6 +237,17 @@ char * OS_nativeFunctionNames[] = {
"_1g_1content_1type_1is_1a",
"_1g_1data_1input_1stream_1new",
"_1g_1data_1input_1stream_1read_1line",
+ "_1g_1dbus_1connection_1register_1object",
+ "_1g_1dbus_1method_1invocation_1return_1value",
+ "_1g_1dbus_1node_1info_1get_1first_1interface_1info",
+ "_1g_1dbus_1node_1info_1new_1for_1xml",
+ "_1g_1dbus_1proxy_1call",
+ "_1g_1dbus_1proxy_1call_1finish",
+ "_1g_1dbus_1proxy_1call_1sync",
+ "_1g_1dbus_1proxy_1new",
+ "_1g_1dbus_1proxy_1new_1finish",
+ "_1g_1dbus_1proxy_1new_1sync",
+ "_1g_1error_1get_1message",
"_1g_1file_1get_1uri",
"_1g_1file_1info_1get_1content_1type",
"_1g_1file_1info_1get_1modification_1time",
@@ -407,6 +420,23 @@ char * OS_nativeFunctionNames[] = {
"_1g_1utf8_1to_1utf16___3BJ_3J_3J_3J",
#endif
"_1g_1value_1peek_1pointer",
+ "_1g_1variant_1get_1boolean",
+ "_1g_1variant_1get_1child_1value",
+ "_1g_1variant_1get_1double",
+ "_1g_1variant_1get_1string",
+ "_1g_1variant_1get_1type",
+ "_1g_1variant_1get_1type_1string",
+ "_1g_1variant_1get_1uint64",
+ "_1g_1variant_1is_1of_1type",
+ "_1g_1variant_1n_1children",
+ "_1g_1variant_1new_1boolean",
+ "_1g_1variant_1new_1byte",
+ "_1g_1variant_1new_1double",
+ "_1g_1variant_1new_1int64",
+ "_1g_1variant_1new_1maybe",
+ "_1g_1variant_1new_1string",
+ "_1g_1variant_1new_1tuple",
+ "_1g_1variant_1new_1uint64",
"_1gdk_1atom_1intern",
"_1gdk_1atom_1name",
"_1gdk_1beep",
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h
index 575f510..bc1100a 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2013 IBM Corporation and others. All rights reserved.
+ * Copyright (c) 2000, 2014 IBM Corporation and others. All rights reserved.
* The contents of this file are made available under the terms
* of the GNU Lesser General Public License (LGPL) Version 2.1 that
* accompanies this distribution (lgpl-v21.txt). The LGPL is also
@@ -237,6 +237,8 @@ typedef enum {
_1g_1app_1info_1launch_1default_1for_1uri_FUNC,
_1g_1app_1info_1should_1show_FUNC,
_1g_1app_1info_1supports_1uris_FUNC,
+ _1g_1bus_1get_1sync_FUNC,
+ _1g_1bus_1own_1name_FUNC,
_1g_1cclosure_1new_FUNC,
_1g_1closure_1ref_FUNC,
_1g_1closure_1sink_FUNC,
@@ -245,6 +247,17 @@ typedef enum {
_1g_1content_1type_1is_1a_FUNC,
_1g_1data_1input_1stream_1new_FUNC,
_1g_1data_1input_1stream_1read_1line_FUNC,
+ _1g_1dbus_1connection_1register_1object_FUNC,
+ _1g_1dbus_1method_1invocation_1return_1value_FUNC,
+ _1g_1dbus_1node_1info_1get_1first_1interface_1info_FUNC,
+ _1g_1dbus_1node_1info_1new_1for_1xml_FUNC,
+ _1g_1dbus_1proxy_1call_FUNC,
+ _1g_1dbus_1proxy_1call_1finish_FUNC,
+ _1g_1dbus_1proxy_1call_1sync_FUNC,
+ _1g_1dbus_1proxy_1new_FUNC,
+ _1g_1dbus_1proxy_1new_1finish_FUNC,
+ _1g_1dbus_1proxy_1new_1sync_FUNC,
+ _1g_1error_1get_1message_FUNC,
_1g_1file_1get_1uri_FUNC,
_1g_1file_1info_1get_1content_1type_FUNC,
_1g_1file_1info_1get_1modification_1time_FUNC,
@@ -417,6 +430,23 @@ typedef enum {
_1g_1utf8_1to_1utf16___3BJ_3J_3J_3J_FUNC,
#endif
_1g_1value_1peek_1pointer_FUNC,
+ _1g_1variant_1get_1boolean_FUNC,
+ _1g_1variant_1get_1child_1value_FUNC,
+ _1g_1variant_1get_1double_FUNC,
+ _1g_1variant_1get_1string_FUNC,
+ _1g_1variant_1get_1type_FUNC,
+ _1g_1variant_1get_1type_1string_FUNC,
+ _1g_1variant_1get_1uint64_FUNC,
+ _1g_1variant_1is_1of_1type_FUNC,
+ _1g_1variant_1n_1children_FUNC,
+ _1g_1variant_1new_1boolean_FUNC,
+ _1g_1variant_1new_1byte_FUNC,
+ _1g_1variant_1new_1double_FUNC,
+ _1g_1variant_1new_1int64_FUNC,
+ _1g_1variant_1new_1maybe_FUNC,
+ _1g_1variant_1new_1string_FUNC,
+ _1g_1variant_1new_1tuple_FUNC,
+ _1g_1variant_1new_1uint64_FUNC,
_1gdk_1atom_1intern_FUNC,
_1gdk_1atom_1name_FUNC,
_1gdk_1beep_FUNC,
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
index a06d04e..e39fa0d 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
@@ -444,6 +444,20 @@ public class OS extends C {
public static final int GTK_WRAP_NONE = 0;
public static final int GTK_WRAP_WORD = 2;
public static final int GTK_WRAP_WORD_CHAR = 3;
+ public static final int G_BUS_NAME_OWNER_FLAGS_NONE = 0;
+ public static final int G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT = (1<<0);
+ public static final int G_BUS_NAME_OWNER_FLAGS_REPLACE = (1<<1);
+ public static final int G_BUS_TYPE_STARTER = -1;
+ public static final int G_BUS_TYPE_NONE = 0;
+ public static final int G_BUS_TYPE_SYSTEM = 1;
+ public static final int G_BUS_TYPE_SESSION = 2;
+ public static final int G_DBUS_CALL_FLAGS_NONE = 0;
+ public static final int G_DBUS_CALL_FLAGS_NO_AUTO_START = (1<<0);
+ public static final int G_DBUS_PROXY_FLAGS_NONE = 0;
+ public static final int G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES = (1<<0);
+ public static final int G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS = (1<<1);
+ public static final int G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START = (1<<2);
+ public static final int G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES = (1<<3);
public static final int G_LOG_FLAG_FATAL = 0x2;
public static final int G_LOG_FLAG_RECURSION = 0x1;
public static final int G_LOG_LEVEL_MASK = 0xfffffffc;
@@ -629,8 +643,15 @@ public class OS extends C {
public static final byte[] GTK_STOCK_FIND = ascii("gtk-find");
public static final byte[] GTK_STOCK_CANCEL = ascii("gtk-cancel");
public static final byte[] GTK_STOCK_CLEAR = ascii("gtk-clear");
-
- public static final int GTK_VERSION = VERSION(gtk_major_version(), gtk_minor_version(), gtk_micro_version());
+
+ /* GVariant Types */
+ public static final byte[] G_VARIANT_TYPE_BOOLEAN = ascii("b");
+ public static final byte[] G_VARIANT_TYPE_DOUBLE = ascii("d");
+ public static final byte[] G_VARIANT_TYPE_STRING = ascii("s");
+ public static final byte[] G_VARIANT_TYPE_TUPLE = ascii("r");
+ public static final byte[] G_VARIANT_TYPE_UINT64 = ascii("t");
+
+ public static final int GTK_VERSION = VERSION(gtk_major_version(), gtk_minor_version(), gtk_micro_version());
public static final int GLIB_VERSION = VERSION(glib_major_version(), glib_minor_version(), glib_micro_version());
public static final boolean GTK3 = GTK_VERSION >= VERSION(3, 0, 0);
public static final boolean USE_CAIRO, INIT_CAIRO;
@@ -2021,6 +2042,128 @@ public static final boolean g_app_info_supports_uris(long /*int*/ appInfo) {
}
}
/** @method flags=dynamic */
+public static final native long /*int*/ _g_bus_get_sync (int bus_type, long /*int*/ cancellable, long /*int*/ error);
+public static final long /*int*/ g_bus_get_sync (int bus_type, long /*int*/ cancellable, long /*int*/ error) {
+ lock.lock();
+ try {
+ return _g_bus_get_sync(bus_type, cancellable, error);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native int _g_bus_own_name (int bus_type, byte[] name, int flags, long /*int*/ bus_acquired_handler, long /*int*/ name_acquired_handler, long /*int*/ name_lost_handler, long /*int*/ user_data, long /*int*/ user_data_free_func);
+public static final int g_bus_own_name (int bus_type, byte[] name, int flags, long /*int*/ bus_acquired_handler, long /*int*/ name_acquired_handler, long /*int*/ name_lost_handler, long /*int*/ user_data, long /*int*/ user_data_free_func) {
+ lock.lock();
+ try {
+ return _g_bus_own_name(bus_type, name, flags, bus_acquired_handler, name_acquired_handler, name_lost_handler, user_data, user_data_free_func);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native int _g_dbus_connection_register_object (long /*int*/ connection, byte[] object_path, long /*int*/ interface_info, long[] vtable, long /*int*/ user_data, long /*int*/ user_data_free_func, long /*int*/[] error);
+public static final int g_dbus_connection_register_object (long /*int*/ connection, byte[] object_path, long /*int*/ interface_info, long[] vtable, long /*int*/ user_data, long /*int*/ user_data_free_func, long /*int*/[] error) {
+ lock.lock();
+ try {
+ return _g_dbus_connection_register_object( connection, object_path, interface_info, vtable, user_data, user_data_free_func, error);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native long /*int*/ _g_dbus_node_info_new_for_xml (byte[] xml_data, long /*int*/[] error);
+public static final long /*int*/ g_dbus_node_info_new_for_xml (byte[] xml_data, long /*int*/[] error) {
+ lock.lock();
+ try {
+ return _g_dbus_node_info_new_for_xml (xml_data, error);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native void _g_dbus_method_invocation_return_value (long /*int*/ invocation, long /*int*/ parameters);
+public static final void g_dbus_method_invocation_return_value (long /*int*/ invocation, long /*int*/ parameters) {
+ lock.lock();
+ try {
+ _g_dbus_method_invocation_return_value (invocation, parameters);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native void _g_dbus_proxy_call (long /*int*/ proxy, byte[] method_name, long /*int*/ parameters, int flags, int timeout_msec, long /*int*/ cancellable, long /*int*/ callback, long /*int*/ user_data);
+public static final void g_dbus_proxy_call (long /*int*/ proxy, byte[] method_name, long /*int*/ parameters, int flags, int timeout_msec, long /*int*/ cancellable, long /*int*/ callback, long /*int*/ user_data){
+ lock.lock();
+ try {
+ _g_dbus_proxy_call (proxy, method_name, parameters, flags, timeout_msec, cancellable, callback, user_data);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native long /*int*/ _g_dbus_proxy_call_finish (long /*int*/ proxy, long /*int*/ res, long /*int*/[] error);
+public static final long /*int*/ g_dbus_proxy_call_finish (long /*int*/ proxy, long /*int*/ res, long /*int*/[] error) {
+ lock.lock();
+ try {
+ return _g_dbus_proxy_call_finish (proxy, res, error);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native long /*int*/ _g_dbus_proxy_call_sync (long /*int*/ proxy, byte[] method_name, long /*int*/ parameters, int flags, int timeout_msec, long /*int*/ cancellable, long /*int*/[] error);
+public static final long /*int*/ g_dbus_proxy_call_sync (long /*int*/ proxy, byte[] method_name, long /*int*/ parameters, int flags, int timeout_msec, long /*int*/ cancellable, long /*int*/[] error) {
+ lock.lock();
+ try {
+ return _g_dbus_proxy_call_sync (proxy, method_name, parameters, flags, timeout_msec, cancellable, error);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native void _g_dbus_proxy_new (long /*int*/ connection, int flags, long /*int*/ info, byte[] name, byte[] object_path, byte[] interface_name, long /*int*/ cancellable, long /*int*/ callback, long /*int*/ user_data);
+public static final void g_dbus_proxy_new (long /*int*/ connection, int flags, long /*int*/ info, byte[] name, byte[] object_path, byte[] interface_name, long /*int*/ cancellable, long /*int*/ callback, long /*int*/ user_data) {
+ lock.lock();
+ try {
+ _g_dbus_proxy_new(connection, flags, info, name, object_path, interface_name, cancellable, callback, user_data);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native long /*int*/ _g_dbus_proxy_new_finish (long /*int*/ res, long /*int*/[] error);
+public static final long /*int*/ g_dbus_proxy_new_finish (long /*int*/ res, long /*int*/[] error) {
+ lock.lock();
+ try {
+ return _g_dbus_proxy_new_finish (res, error);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native long /*int*/ _g_dbus_proxy_new_sync (long /*int*/ connection, int flags, long /*int*/ info, byte[] name, byte[] object_path, byte[] interface_name, long /*int*/ cancellable, long /*int*/[] error);
+public static final long /*int*/ g_dbus_proxy_new_sync (long /*int*/ connection, int flags, long /*int*/ info, byte[] name, byte[] object_path, byte[] interface_name, long /*int*/ cancellable, long /*int*/[] error) {
+ lock.lock();
+ try {
+ return _g_dbus_proxy_new_sync(connection, flags, info, name, object_path, interface_name, cancellable, error);
+ } finally {
+ lock.unlock();
+ }
+}
+/**
+ * @param node_info cast=(GDBusNodeInfo *)
+ */
+public static final native long /*int*/ _g_dbus_node_info_get_first_interface_info (long /*int*/ node_info);
+public static final long /*int*/ g_dbus_node_info_get_first_interface_info (long /*int*/ node_info) {
+ lock.lock();
+ try {
+ return _g_dbus_node_info_get_first_interface_info(node_info);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
public static final native long /*int*/ _g_data_input_stream_new(long /*int*/ input_stream);
public static final long /*int*/ g_data_input_stream_new(long /*int*/ input_stream) {
lock.lock();
@@ -2030,6 +2173,18 @@ public static final long /*int*/ g_data_input_stream_new(long /*int*/ input_stre
lock.unlock();
}
}
+/**
+ * @param error cast=(GError *)
+ */
+public static final native long /*int*/ _g_error_get_message (long /*int*/ error);
+public static final long /*int*/ g_error_get_message (long /*int*/ error) {
+ lock.lock();
+ try {
+ return _g_error_get_message (error);
+ } finally {
+ lock.unlock();
+ }
+}
/** @method flags=dynamic */
public static final native long /*int*/ _g_data_input_stream_read_line(long /*int*/ stream, long /*int*/ [] count, long /*int*/ cancellable, long /*int*/ error);
public static final long /*int*/ g_data_input_stream_read_line(long /*int*/ stream, long /*int*/ [] count, long /*int*/ cancellable, long /*int*/ error) {
@@ -3482,6 +3637,176 @@ public static final long /*int*/ g_value_peek_pointer (long /*int*/ value) {
lock.unlock();
}
}
+/** @method flags=dynamic */
+public static final native boolean /*int*/ _g_variant_get_boolean (long /*int*/ value);
+public static final boolean /*int*/ g_variant_get_boolean (long /*int*/ value) {
+ lock.lock();
+ try {
+ return _g_variant_get_boolean (value);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native long /*int*/ _g_variant_get_child_value (long /*int*/ value, int index);
+public static final long /*int*/ g_variant_get_child_value (long /*int*/ value, int index) {
+ lock.lock();
+ try {
+ return _g_variant_get_child_value (value, index);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native double _g_variant_get_double (long /*int*/ value);
+public static final double g_variant_get_double (long /*int*/ value) {
+ lock.lock();
+ try {
+ return _g_variant_get_double (value);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native long /*int*/ _g_variant_get_string (long /*int*/ value, long[] length);
+public static final long /*int*/ g_variant_get_string (long /*int*/ value, long[] length) {
+ lock.lock();
+ try {
+ return _g_variant_get_string (value, length);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native int _g_variant_get_type (long /*int*/ value);
+public static final int g_variant_get_type (long /*int*/ value) {
+ lock.lock();
+ try {
+ return _g_variant_get_type (value);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native long /*int*/ _g_variant_get_type_string (long /*int*/ value);
+public static final long /*int*/ g_variant_get_type_string (long /*int*/ value) {
+ lock.lock();
+ try {
+ return _g_variant_get_type_string (value);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native long _g_variant_get_uint64 (long /*int*/ value);
+public static final long g_variant_get_uint64 (long /*int*/ value) {
+ lock.lock();
+ try {
+ return _g_variant_get_uint64 (value);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native boolean _g_variant_is_of_type (long /*int*/ value, byte[] type);
+public static final boolean g_variant_is_of_type (long /*int*/ value, byte[] type) {
+ lock.lock();
+ try {
+ return _g_variant_is_of_type (value, type);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native long /*int*/ _g_variant_new_boolean (boolean value);
+public static final long /*int*/ g_variant_new_boolean (boolean value) {
+ lock.lock();
+ try {
+ return _g_variant_new_boolean (value);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native long /*int*/ _g_variant_new_double (double value);
+public static final long /*int*/ g_variant_new_double (double value) {
+ lock.lock();
+ try {
+ return _g_variant_new_double (value);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native long /*int*/ _g_variant_new_byte (byte value);
+public static final long /*int*/ g_variant_new_byte (byte value) {
+ lock.lock();
+ try {
+ return _g_variant_new_byte (value);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native long /*int*/ _g_variant_new_int64 (long value);
+public static final long /*int*/ g_variant_new_int64 (long value) {
+ lock.lock();
+ try {
+ return _g_variant_new_int64 (value);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native long /*int*/ _g_variant_new_maybe (byte[] child_type, long /*int*/ child);
+public static final long /*int*/ g_variant_new_maybe (byte[] child_type, long /*int*/ child) {
+ lock.lock();
+ try {
+ return _g_variant_new_maybe (child_type, child);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native long /*int*/ _g_variant_new_tuple (long /*int*/[] items, long length);
+public static final long /*int*/ g_variant_new_tuple (long /*int*/[] items, long length ) {
+ lock.lock();
+ try {
+ return _g_variant_new_tuple (items, length);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native long /*int*/ _g_variant_new_string (byte[] string);
+public static final long /*int*/ g_variant_new_string (byte[] string) {
+ lock.lock();
+ try {
+ return _g_variant_new_string (string);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native long /*int*/ _g_variant_new_uint64 (long value);
+public static final long /*int*/ g_variant_new_uint64 (long value) {
+ lock.lock();
+ try {
+ return _g_variant_new_uint64 (value);
+ } finally {
+ lock.unlock();
+ }
+}
+/** @method flags=dynamic */
+public static final native long _g_variant_n_children (long value);
+public static final long g_variant_n_children (long value) {
+ lock.lock();
+ try {
+ return _g_variant_n_children (value);
+ } finally {
+ lock.unlock();
+ }
+}
/** @param atom_name cast=(const gchar *),flags=no_out critical */
public static final native long /*int*/ _gdk_atom_intern(byte[] atom_name, boolean only_if_exists);
public static final long /*int*/ gdk_atom_intern(byte[] atom_name, boolean only_if_exists) {