diff options
author | Paul Moore <paul@paul-moore.com> | 2016-02-18 13:58:25 -0500 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2016-02-18 13:58:25 -0500 |
commit | 58a7c20d4c2defc1c984c5c7391ecc60093f85fa (patch) | |
tree | d367667a7358687c38a6823fb715a8685a17759b /include | |
parent | d5fd8b95a86509af7b901e2b81ec9d61352b89e4 (diff) | |
download | libseccomp-58a7c20d4c2defc1c984c5c7391ecc60093f85fa.tar.gz |
api: add a seccomp_version() API call
This will allow callers to dynamically query the libseccomp library
to determine the version information. We do not currently plan on
exposing this API via any of the supported language bindings.
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/seccomp.h.in | 15 |
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 * |