[seed] Implement seeD_js_dbus_unwatch_signal_by_id
- From: Robert Carr <racarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] Implement seeD_js_dbus_unwatch_signal_by_id
- Date: Sat, 9 May 2009 19:23:43 -0400 (EDT)
commit e8561fb04393874b8c6a9d0d13fe09608efa5158
Author: Robert Carr <racarr svn gnome org>
Date: Sat May 9 19:23:35 2009 -0400
Implement seeD_js_dbus_unwatch_signal_by_id
---
modules/dbus/module.c | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/modules/dbus/module.c b/modules/dbus/module.c
index add88a6..1ab2601 100644
--- a/modules/dbus/module.c
+++ b/modules/dbus/module.c
@@ -650,6 +650,32 @@ seed_js_dbus_watch_signal (SeedContext ctx,
return seed_value_from_int (ctx, id, exception);
}
+/* Args are handler id */
+static SeedValue
+seed_js_dbus_unwatch_signal_by_id(SeedContext ctx,
+ SeedObject function,
+ SeedObject this_object,
+ size_t argument_count,
+ const SeedValue arguments[],
+ SeedException *exception)
+{
+ int id;
+ DBusBusType bus_type;
+
+ if (argument_count < 1)
+ {
+ seed_make_exception (ctx, exception, "ArgumentError", "Not enough args, need handler id");
+ return seed_make_null (ctx);
+ }
+
+ bus_type = get_bus_type_from_object (ctx, this_object, exception);
+ id = seed_value_to_int (ctx, arguments[0], exception);
+
+ big_dbus_unwatch_signal_by_id(bus_type,
+ id);
+ return seed_make_undefined (ctx);
+}
+
static SeedValue
seed_js_dbus_signature_length (SeedContext ctx,
SeedObject function,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]