diff options
author | Benoît Dejean <bdejean@src.gnome.org> | 2008-04-21 18:59:20 +0000 |
---|---|---|
committer | Benoît Dejean <bdejean@src.gnome.org> | 2008-04-21 18:59:20 +0000 |
commit | c1b95643a8dc076b0d695fb9261e575ec6a5fa30 (patch) | |
tree | 28f41988017b9ffc889d559eed4cac0500bebe16 /include | |
parent | be8a3714818ff6826a2722d4ed85ff0765ecaa3f (diff) | |
download | libgtop-c1b95643a8dc076b0d695fb9261e575ec6a5fa30.tar.gz |
Updated glibtop_get_proc_open_files API so that it also list IPv6 TCP sockets.
Patch by Mark McClelland <mark@ovcam.org>.
Closes #528175.
WTH do we not care about udp ?
Updated libtool versioning: API addition does not change the ABI, so only
increased revision. gnome-2.22 is 8.1.1 so trunk is now 8.2.1.
svn path=/trunk/; revision=2738
Diffstat (limited to 'include')
-rw-r--r-- | include/glibtop/procopenfiles.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/glibtop/procopenfiles.h b/include/glibtop/procopenfiles.h index 3509737a..b86c2eee 100644 --- a/include/glibtop/procopenfiles.h +++ b/include/glibtop/procopenfiles.h @@ -53,7 +53,8 @@ enum glibtop_file_type { GLIBTOP_FILE_TYPE_FILE = 1, GLIBTOP_FILE_TYPE_PIPE = 2, GLIBTOP_FILE_TYPE_INETSOCKET = 4, - GLIBTOP_FILE_TYPE_LOCALSOCKET = 8 + GLIBTOP_FILE_TYPE_LOCALSOCKET = 8, + GLIBTOP_FILE_TYPE_INET6SOCKET = 16 }; typedef struct _glibtop_open_files_entry glibtop_open_files_entry; @@ -65,7 +66,8 @@ struct _glibtop_open_files_entry int fd; guint16 type; /* An "enum glibtop_file_type" value. */ union { - /* When type == GLIBTOP_FILE_TYPE_INETSOCKET */ + /* When type == GLIBTOP_FILE_TYPE_INETSOCKET or + * when type == GLIBTOP_FILE_TYPE_INET6SOCKET */ struct { char dest_host[GLIBTOP_OPEN_DEST_HOST_LEN+1]; int dest_port; |