LCOV - code coverage report
Current view: top level - shared - securebits-util.h (source / functions) Hit Total Coverage
Test: main_coverage.info Lines: 0 6 0.0 %
Date: 2019-08-22 15:41:25 Functions: 0 2 0.0 %

          Line data    Source code
       1             : /* SPDX-License-Identifier: LGPL-2.1+ */
       2             : #pragma once
       3             : 
       4             : #include "missing_securebits.h"
       5             : 
       6             : int secure_bits_to_string_alloc(int i, char **s);
       7             : int secure_bits_from_string(const char *s);
       8             : 
       9           0 : static inline bool secure_bits_is_valid(int i) {
      10           0 :         return ((SECURE_ALL_BITS | SECURE_ALL_LOCKS) & i) == i;
      11             : }
      12             : 
      13           0 : static inline int secure_bits_to_string_alloc_with_check(int n, char **s) {
      14           0 :         if (!secure_bits_is_valid(n))
      15           0 :                 return -EINVAL;
      16             : 
      17           0 :         return secure_bits_to_string_alloc(n, s);
      18             : }

Generated by: LCOV version 1.14