implemented IETF Operational Status attribute
[strongswan.git] / src / libimcv / os_info / os_info.h
index 1044263..f39d8ae 100644 (file)
@@ -26,6 +26,8 @@ typedef enum os_fwd_status_t os_fwd_status_t;
 
 #include <library.h>
 
 
 #include <library.h>
 
+#include <time.h>
+
 /**
  * Defines the IPv4 forwarding status
  */
 /**
  * Defines the IPv4 forwarding status
  */
@@ -64,6 +66,13 @@ struct os_info_t {
        os_fwd_status_t (*get_fwd_status)(os_info_t *this);
 
        /**
        os_fwd_status_t (*get_fwd_status)(os_info_t *this);
 
        /**
+        * Get the OS uptime in seconds
+        *
+        * @return                                      OS uptime
+        */
+       time_t (*get_uptime)(os_info_t *this);
+
+       /**
         * Enumerates over all installed packages
         *
         * @return                              return package enumerator
         * Enumerates over all installed packages
         *
         * @return                              return package enumerator