Kaydet (Commit) 59e2dcc4 authored tarafından Bahadır Kandemir's avatar Bahadır Kandemir

call(app, model, metod, args, timeout) last 2 fields are optional

üst 1e618c57
......@@ -83,8 +83,9 @@ c_call(PyObject *self, PyObject *args)
PyObject *ret, *tuple = NULL;
char *app, *model, *method, *interface, *path;
int size, i;
int timeout = -1;
if (!PyArg_ParseTuple(args, "sss|O", &app, &model, &method, &tuple))
if (!PyArg_ParseTuple(args, "sss|Oi", &app, &model, &method, &tuple, &timeout))
return NULL;
......@@ -136,7 +137,7 @@ c_call(PyObject *self, PyObject *args)
}
}
reply = dbus_connection_send_with_reply_and_block(conn, msg, -1, &err);
reply = dbus_connection_send_with_reply_and_block(conn, msg, timeout, &err);
dbus_message_unref(msg);
dbus_connection_close(conn);
dbus_connection_unref(conn);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment