From 75bbbb0f451b7b62c7fb8883d81199af693c6b83 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 11 Jul 2005 22:43:56 +0000 Subject: [PATCH] add net_info.host_name --- bindings/java/src/jni/generate.pl | 5 +++++ include/sigar.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/bindings/java/src/jni/generate.pl b/bindings/java/src/jni/generate.pl index b7b610ac..e1552d68 100644 --- a/bindings/java/src/jni/generate.pl +++ b/bindings/java/src/jni/generate.pl @@ -568,6 +568,11 @@ my %classes = ( desc => '', plat => '' }, + { + name => 'host_name', type => 'String', + desc => '', + plat => '' + }, { name => 'domain_name', type => 'String', desc => '', diff --git a/include/sigar.h b/include/sigar.h index b2f598f6..a482fd72 100644 --- a/include/sigar.h +++ b/include/sigar.h @@ -388,9 +388,11 @@ sigar_file_system_usage_get(sigar_t *sigar, #endif #define SIGAR_MAXDOMAINNAMELEN 256 +#define SIGAR_MAXHOSTNAMELEN 256 typedef struct { char default_gateway[INET6_ADDRSTRLEN]; + char host_name[SIGAR_MAXHOSTNAMELEN]; char domain_name[SIGAR_MAXDOMAINNAMELEN]; char dhcp_server[INET6_ADDRSTRLEN]; char primary_dns[INET6_ADDRSTRLEN];