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];