/usr/include/openscap/oscap_debug.h is in libopenscap-dev 1.2.9-1+b2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | /*
* Copyright 2015 Red Hat Inc., Durham, North Carolina.
* All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Authors:
* Jan Černý <jcerny@redhat.com>
*/
#ifndef OSCAP_DEBUG_H_
#define OSCAP_DEBUG_H_
typedef enum {
DBG_E = 1,
DBG_W,
DBG_I,
DBG_D,
DBG_UNKNOWN = -1
} oscap_verbosity_levels;
/**
* Turn on debugging information
* @param verbosity_level Verbosity level
* @param filename Name of file used as output file for store debugging
* and other additional information.
* @param is_probe Determines whether the function is called
* from a probe (true) or from the base library (false).
* @return When an error occured, returns false, otherwise true.
*/
bool oscap_set_verbose(const char *verbosity_level, const char *filename, bool is_probe);
/**
* Parse verbosity level from a string.
* @param level_name Verbosity level as a C string.
* @return Verbosity level number (or -1 on error).
*/
oscap_verbosity_levels oscap_verbosity_level_from_cstr(const char *level_name);
#endif
|