summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/seccomp.h.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/seccomp.h.in b/include/seccomp.h.in
index 75328da..6bf6751 100644
--- a/include/seccomp.h.in
+++ b/include/seccomp.h.in
@@ -39,6 +39,12 @@ extern "C" {
#define SCMP_VER_MINOR @VERSION_MINOR@
#define SCMP_VER_MICRO @VERSION_MICRO@
+struct scmp_version {
+ unsigned int major;
+ unsigned int minor;
+ unsigned int micro;
+};
+
/*
* types
*/
@@ -253,6 +259,15 @@ struct scmp_arg_cmp {
*/
/**
+ * Query the library version information
+ *
+ * This function returns a pointer to a populated scmp_version struct, the
+ * caller does not need to free the structure when finished.
+ *
+ */
+const struct scmp_version *seccomp_version(void);
+
+/**
* Initialize the filter state
* @param def_action the default filter action
*