/usr/include/sysmetrics/libsysmetrics.h is in libsysmetrics-dev 1.0.11.
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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | /* Created by "go tool cgo" - DO NOT EDIT. */
/* package command-line-arguments */
#line 1 "cgo-builtin-prolog"
#include <stddef.h> /* for ptrdiff_t below */
#ifndef GO_CGO_EXPORT_PROLOGUE_H
#define GO_CGO_EXPORT_PROLOGUE_H
typedef struct { const char *p; ptrdiff_t n; } _GoString_;
#endif
/* Start of preamble from import "C" comments. */
#line 3 "/build/ubuntu-report-eqmP7E/ubuntu-report-1.0.11/obj-x86_64-linux-gnu/src/github.com/ubuntu/ubuntu-report/pkg/sysmetrics/C/libsysmetrics.go"
// sysmetrics_report_type define the desired kind of interaction in sysmetrics_collect_and_send()
typedef enum {
// sysmetrics_report_interactive will show report content on stdout and read anwser on stdin
sysmetrics_report_interactive = 0,
// sysmetrics_report_auto will send a report without printing report
sysmetrics_report_auto = 1,
// sysmetrics_report_optout will send opt-out message without printing report
sysmetrics_report_optout = 2,
} sysmetrics_report_type;
#line 1 "cgo-generated-wrapper"
/* End of preamble from import "C" comments. */
/* Start of boilerplate cgo prologue. */
#line 1 "cgo-gcc-export-header-prolog"
#ifndef GO_CGO_PROLOGUE_H
#define GO_CGO_PROLOGUE_H
typedef signed char GoInt8;
typedef unsigned char GoUint8;
typedef short GoInt16;
typedef unsigned short GoUint16;
typedef int GoInt32;
typedef unsigned int GoUint32;
typedef long long GoInt64;
typedef unsigned long long GoUint64;
typedef GoInt64 GoInt;
typedef GoUint64 GoUint;
typedef __SIZE_TYPE__ GoUintptr;
typedef float GoFloat32;
typedef double GoFloat64;
typedef float _Complex GoComplex64;
typedef double _Complex GoComplex128;
/*
static assertion to make sure the file is being used on architecture
at least with matching size of GoInt.
*/
typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
typedef _GoString_ GoString;
typedef void *GoMap;
typedef void *GoChan;
typedef struct { void *t; void *v; } GoInterface;
typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
#endif
/* End of boilerplate cgo prologue. */
#ifdef __cplusplus
extern "C" {
#endif
// sysmetrics_collect system info and return a pretty printed version of collected data
extern char* sysmetrics_collect(char** p0);
// sysmetrics_send_report sends provided metrics data to server.
// The report will not be sent if a report has already been sent for this version unless "alwaysReport" is true.
// If "baseURL" is not an empty string, this overrides the server the report is sent to.
// The return "err" will be != NULL in case any error occurred during POST.
extern char* sysmetrics_send_report(char* p0, GoUint8 p1, char* p2);
// sysmetrics_send_decline sends denial message to server.
// The denial message will not be sent if a report has already been sent for this version unless "alwaysReport" is true.
// If "baseURL" is not an empty string, this overrides the server the report is sent to.
// The return "err" will be != NULL in case any error occurred during POST.
extern char* sysmetrics_send_decline(GoUint8 p0, char* p1);
// sysmetrics_collect_and_send gather system info and send them
// The report will not be sent if a report has already been sent for this version unless "alwaysReport" is true.
// It can be send to an alternative url via baseURL to send the report to, if not empty
// The return "err" will be != NULL in case any error occurred during POST.
extern char* sysmetrics_collect_and_send(sysmetrics_report_type p0, GoUint8 p1, char* p2);
#ifdef __cplusplus
}
#endif
|