From 4f428bddaf75046fcb17a24f272139983a1aace0 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 14 Dec 2005 23:41:01 +0000 Subject: [PATCH] add sigar_version stuff --- include/sigar.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/sigar.h b/include/sigar.h index d377d5f4..139be4f0 100644 --- a/include/sigar.h +++ b/include/sigar.h @@ -594,6 +594,15 @@ SIGAR_DECLARE(int) sigar_proc_port_get(sigar_t *sigar, int protocol, unsigned long port, sigar_pid_t *pid); +typedef struct { + const char *build_date; + const char *version; + const char *archname; + int major, minor, maint; +} sigar_version_t; + +SIGAR_DECLARE(sigar_version_t *) sigar_version_get(void); + #define SIGAR_INET_ADDR_LEN (3 * 4 + 3 + 1) SIGAR_DECLARE(int) sigar_inet_ntoa(sigar_t *sigar,