strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implemented IETF Operational Status attribute
[strongswan.git]
/
src
/
libimcv
/
os_info
/
os_info.h
diff --git
a/src/libimcv/os_info/os_info.h
b/src/libimcv/os_info/os_info.h
index
1044263
..
f39d8ae
100644
(file)
--- a/
src/libimcv/os_info/os_info.h
+++ b/
src/libimcv/os_info/os_info.h
@@
-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