diff options
author | William Jon McCann <mccann@jhu.edu> | 2007-03-05 19:10:02 -0500 |
---|---|---|
committer | William Jon McCann <mccann@jhu.edu> | 2007-03-05 19:10:02 -0500 |
commit | 0293d43731d125b825fa8962976b527bf46b65d6 (patch) | |
tree | 3ce1347bed451c936f1567bdbcc66c60006b04c7 /libck-connector/test-connector.c | |
parent | d588a897fef3af61a7368226986b384fce2524e7 (diff) |
add a with_parameters function to connector
Diffstat (limited to 'libck-connector/test-connector.c')
-rw-r--r-- | libck-connector/test-connector.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/libck-connector/test-connector.c b/libck-connector/test-connector.c index 3359a3f..7f17426 100644 --- a/libck-connector/test-connector.c +++ b/libck-connector/test-connector.c @@ -36,7 +36,12 @@ main (int argc, char *argv[]) { CkConnector *connector; int ret; + int res; DBusError error; + int user; + const char *display_device; + const char *x11_display; + const char *remote_host_name; ret = 1; @@ -46,8 +51,19 @@ main (int argc, char *argv[]) goto out; } + user = 730; + display_device = "/dev/tty3"; + x11_display = ":20"; + remote_host_name = ""; dbus_error_init (&error); - if (! ck_connector_open_session_for_user (connector, 500, "/dev/tty2", ":1", &error)) { + res = ck_connector_open_session_with_parameters (connector, + &error, + "user", &user, + "display-device", &display_device, + "x11-display", &x11_display, + "remote-host-name", &remote_host_name, + NULL); + if (! res) { if (dbus_error_is_set (&error)) { printf ("%s\n", error.message); |