/usr/include/facter/cwrapper.hpp is in facter-dev 3.10.0-4.
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 | #pragma once
#include "stdint.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* Collects all default facts and store them as a C-string in JSON format.
* @param result a pointer to the C-string pointer to the collected facts.
* @return Returns EXIT_FAILURE if it fails to retrieve or copy facts; EXIT_SUCCESS otherwise.
*/
uint8_t get_default_facts(char **result);
#ifdef __cplusplus
}
#endif
|