summaryrefslogtreecommitdiff
path: root/sysdeps/common
diff options
context:
space:
mode:
authorBenoît Dejean <bdejean@src.gnome.org>2007-05-13 08:20:10 +0000
committerBenoît Dejean <bdejean@src.gnome.org>2007-05-13 08:20:10 +0000
commit3eb958dc6cb4a9247661c4444189e7f2c1597db9 (patch)
tree8632270dca3380fbbf13cd310e5b867a06c22a33 /sysdeps/common
parentcd389851b961691507d80968d64d9e275350a7b4 (diff)
downloadlibgtop-3eb958dc6cb4a9247661c4444189e7f2c1597db9.tar.gz
Manual commit from my local git-svn which is broken :/
svn path=/trunk/; revision=2578
Diffstat (limited to 'sysdeps/common')
-rw-r--r--sysdeps/common/default.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/sysdeps/common/default.c b/sysdeps/common/default.c
index ff734ec5..d24b52a0 100644
--- a/sysdeps/common/default.c
+++ b/sysdeps/common/default.c
@@ -352,5 +352,19 @@ glibtop_get_sysdeps(glibtop_sysdeps *buf)
}
+/**
+ * glibtop_get_proc_wd:
+ * @buf:
+ * @pid: Process id to get the user and tty information
+ *
+ * Get the root directory and the working directories
+ *
+ * Returns: A NULL-terminated list of working directories.
+ */
+char**
+glibtop_get_proc_wd(glibtop_proc_wd *buf, pid_t pid)
+{
+ return glibtop_get_proc_wd_l(glibtop_global_server, buf, pid);
+}