asyncworker r91 - in trunk/bindings/vala: . oasyncworker-1.0
- From: pvanhoof svn gnome org
- To: svn-commits-list gnome org
- Subject: asyncworker r91 - in trunk/bindings/vala: . oasyncworker-1.0
- Date: Mon, 28 Apr 2008 12:46:06 +0100 (BST)
Author: pvanhoof
Date: Mon Apr 28 11:46:06 2008
New Revision: 91
URL: http://svn.gnome.org/viewvc/asyncworker?rev=91&view=rev
Log:
Added vala bindings
Added:
trunk/bindings/vala/
trunk/bindings/vala/Makefile.am
trunk/bindings/vala/oasyncworker-1.0/
trunk/bindings/vala/oasyncworker-1.0.vapi
trunk/bindings/vala/oasyncworker-1.0/oasyncworker-1.0.defines
trunk/bindings/vala/oasyncworker-1.0/oasyncworker-1.0.files
trunk/bindings/vala/oasyncworker-1.0/oasyncworker-1.0.metadata
trunk/bindings/vala/oasyncworker-1.0/oasyncworker-1.0.namespace
trunk/bindings/vala/regen.sh (contents, props changed)
Added: trunk/bindings/vala/Makefile.am
==============================================================================
--- (empty file)
+++ trunk/bindings/vala/Makefile.am Mon Apr 28 11:46:06 2008
@@ -0,0 +1,5 @@
+NULL =
+vapidir = $(datadir)/vala/vapi
+dist_vapi_DATA = \
+ oasyncworker-1.0.vapi \
+ $(NULL)
Added: trunk/bindings/vala/oasyncworker-1.0.vapi
==============================================================================
--- (empty file)
+++ trunk/bindings/vala/oasyncworker-1.0.vapi Mon Apr 28 11:46:06 2008
@@ -0,0 +1,45 @@
+/* oasyncworker-1.0.vapi generated by vapigen, do not modify. */
+
+[CCode (cprefix = "O", lower_case_cprefix = "o_")]
+namespace O {
+ [CCode (cheader_filename = "oasyncworker/oasyncworker.h")]
+ public class AsyncWorker : GLib.Object {
+ public int add (O.AsyncWorkerTask task);
+ public int add_wait (int micros, int priority);
+ public weak O.AsyncWorkerTask get_current ();
+ public weak O.AsyncWorkerTask get_with_id (int task_id);
+ public void join ();
+ public AsyncWorker ();
+ public void remove (int task_id, bool run_callback);
+ public uint sched_getaffinity ();
+ public int sched_getscheduler ();
+ public void sched_setaffinity (uint mask);
+ public void sched_setscheduler (int policy, void* param);
+ public signal void task_added (int arg1);
+ public signal void task_cancelled (int arg1);
+ public signal void task_finished (int arg1);
+ public signal void task_removed (int arg1);
+ public signal void task_started (int arg1);
+ }
+ [CCode (cheader_filename = "oasyncworker-1.h")]
+ public class AsyncWorkerTask : GLib.Object {
+ public void cancel_point (bool run_callback);
+ public void* get_arguments ();
+ public O.AsyncWorkerTaskCallback get_callback ();
+ public O.AsyncWorkerTaskFunc get_func ();
+ public int get_priority ();
+ public weak O.AsyncWorker get_queue ();
+ public bool is_cancelled ();
+ public AsyncWorkerTask ();
+ public AsyncWorkerTask.with_arguments (void* arguments, O.AsyncWorkerTaskCallback callback);
+ public void request_cancel ();
+ public void set_arguments (void* arguments);
+ public void set_callback (O.AsyncWorkerTaskCallback callback);
+ public void set_func (O.AsyncWorkerTaskFunc func);
+ public void set_priority (int priority);
+ }
+ [CCode (cheader_filename = "oasyncworker-1.h")]
+ public static delegate void AsyncWorkerTaskCallback (O.AsyncWorkerTask task, void* func_result);
+ [CCode (cheader_filename = "oasyncworker-1.h")]
+ public static delegate void* AsyncWorkerTaskFunc (O.AsyncWorkerTask task, void* arguments);
+}
Added: trunk/bindings/vala/oasyncworker-1.0/oasyncworker-1.0.defines
==============================================================================
--- (empty file)
+++ trunk/bindings/vala/oasyncworker-1.0/oasyncworker-1.0.defines Mon Apr 28 11:46:06 2008
@@ -0,0 +1 @@
+-DLIBOASYNCWORKER_COMPILATION
Added: trunk/bindings/vala/oasyncworker-1.0/oasyncworker-1.0.files
==============================================================================
--- (empty file)
+++ trunk/bindings/vala/oasyncworker-1.0/oasyncworker-1.0.files Mon Apr 28 11:46:06 2008
@@ -0,0 +1,2 @@
+include/oasyncworker
+lib/liboasyncworker-1.0.so
Added: trunk/bindings/vala/oasyncworker-1.0/oasyncworker-1.0.metadata
==============================================================================
--- (empty file)
+++ trunk/bindings/vala/oasyncworker-1.0/oasyncworker-1.0.metadata Mon Apr 28 11:46:06 2008
@@ -0,0 +1 @@
+OAsyncWorker cheader_filename="oasyncworker/oasyncworker.h"
Added: trunk/bindings/vala/oasyncworker-1.0/oasyncworker-1.0.namespace
==============================================================================
--- (empty file)
+++ trunk/bindings/vala/oasyncworker-1.0/oasyncworker-1.0.namespace Mon Apr 28 11:46:06 2008
@@ -0,0 +1 @@
+O
Added: trunk/bindings/vala/regen.sh
==============================================================================
--- (empty file)
+++ trunk/bindings/vala/regen.sh Mon Apr 28 11:46:06 2008
@@ -0,0 +1,6 @@
+for library in oasyncworker-1.0
+do
+ vala-gen-introspect $library $library
+ vapigen --vapidir . --library $library $library/$library.gi
+done
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]