summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorWilliam Jon McCann <mccann@jhu.edu>2007-03-05 15:24:56 -0500
committerWilliam Jon McCann <mccann@jhu.edu>2007-03-05 15:24:56 -0500
commit7dfb9732b27778722214531d0c17b7e50e8a2fe1 (patch)
tree751f1ee51171a3e5606ab2499ff06312743ad507 /tools
parented0e87a5f66d88d6f388229e1bf71632bb0f1308 (diff)
rename host-name to remote-host-name to make it more intuitive
Diffstat (limited to 'tools')
-rw-r--r--tools/linux/ck-collect-session-info.c12
-rw-r--r--tools/list-sessions.c12
2 files changed, 12 insertions, 12 deletions
diff --git a/tools/linux/ck-collect-session-info.c b/tools/linux/ck-collect-session-info.c
index cee5ccc..ec6dda2 100644
--- a/tools/linux/ck-collect-session-info.c
+++ b/tools/linux/ck-collect-session-info.c
@@ -41,7 +41,7 @@ typedef struct {
char *x11_display_device;
char *x11_display;
gboolean x11_can_connect;
- char *hostname;
+ char *remote_host_name;
char *session_type;
gboolean is_local;
gboolean is_local_is_set;
@@ -53,7 +53,7 @@ session_info_free (SessionInfo *si)
g_free (si->display_device);
g_free (si->x11_display_device);
g_free (si->x11_display);
- g_free (si->hostname);
+ g_free (si->remote_host_name);
g_free (si->session_type);
g_free (si);
}
@@ -277,8 +277,8 @@ fill_x11_info (SessionInfo *si)
si->is_local = TRUE;
si->is_local_is_set = TRUE;
- g_free (si->hostname);
- si->hostname = g_strdup ("localhost");
+ g_free (si->remote_host_name);
+ si->remote_host_name = NULL;
}
static gboolean
@@ -331,8 +331,8 @@ print_session_info (SessionInfo *si)
if (si->session_type != NULL) {
printf ("session-type = %s\n", si->session_type);
}
- if (si->hostname != NULL) {
- printf ("host-name = %s\n", si->hostname);
+ if (si->remote_host_name != NULL) {
+ printf ("remote-host-name = %s\n", si->remote_host_name);
}
if (si->is_local_is_set == TRUE) {
printf ("is-local = %s\n", si->is_local ? "true" : "false");
diff --git a/tools/list-sessions.c b/tools/list-sessions.c
index be61bbe..1ea9110 100644
--- a/tools/list-sessions.c
+++ b/tools/list-sessions.c
@@ -167,7 +167,7 @@ list_session (DBusGConnection *connection,
char *x11_display;
char *x11_display_device;
char *display_device;
- char *host_name;
+ char *remote_host_name;
char *creation_time;
char *idle_since_hint;
gboolean is_active;
@@ -188,7 +188,7 @@ list_session (DBusGConnection *connection,
x11_display = NULL;
x11_display_device = NULL;
display_device = NULL;
- host_name = NULL;
+ remote_host_name = NULL;
creation_time = NULL;
idle_since_hint = NULL;
@@ -198,7 +198,7 @@ list_session (DBusGConnection *connection,
get_string (proxy, "GetX11Display", &x11_display);
get_string (proxy, "GetX11DisplayDevice", &x11_display_device);
get_string (proxy, "GetDisplayDevice", &display_device);
- get_string (proxy, "GetHostName", &host_name);
+ get_string (proxy, "GetRemoteHostName", &remote_host_name);
get_boolean (proxy, "IsActive", &is_active);
get_boolean (proxy, "IsLocal", &is_local);
get_string (proxy, "GetCreationTime", &creation_time);
@@ -216,7 +216,7 @@ list_session (DBusGConnection *connection,
short_ssid = ssid + strlen (CK_PATH) + 1;
}
- printf ("%s:\n\tuid = '%d'\n\trealname = '%s'\n\tseat = '%s'\n\tsession-type = '%s'\n\tactive = %s\n\tx11-display = '%s'\n\tx11-display-device = '%s'\n\tdisplay-device = '%s'\n\thost-name = '%s'\n\tis-local = %s\n\ton-since = '%s'",
+ printf ("%s:\n\tuid = '%d'\n\trealname = '%s'\n\tseat = '%s'\n\tsession-type = '%s'\n\tactive = %s\n\tx11-display = '%s'\n\tx11-display-device = '%s'\n\tdisplay-device = '%s'\n\tremote-host-name = '%s'\n\tis-local = %s\n\ton-since = '%s'",
short_ssid,
uid,
realname,
@@ -226,7 +226,7 @@ list_session (DBusGConnection *connection,
x11_display,
x11_display_device,
display_device,
- host_name,
+ remote_host_name,
is_local ? "TRUE" : "FALSE",
creation_time);
if (idle_since_hint != NULL && idle_since_hint[0] != '\0') {
@@ -236,7 +236,7 @@ list_session (DBusGConnection *connection,
g_free (idle_since_hint);
g_free (creation_time);
- g_free (host_name);
+ g_free (remote_host_name);
g_free (realname);
g_free (sid);
g_free (session_type);