-
Notifications
You must be signed in to change notification settings - Fork 0
/
report.h
28 lines (23 loc) · 798 Bytes
/
report.h
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
#ifndef REPORT_H
#define REPORT_H
#include "vmtype.h"
#define REPORT_TMP_FOLDER u"C:\\tmp\\"
#define REPORT_HOSTNAME_MAX 128
#define REPORT_PATH_MAX 128
#define MAX_HMAC_KEY_LENGTH 32
typedef struct afifo afifo;
afifo* afifo_create(int aggregation, int size);
void afifo_destroy(afifo* target);
void afifo_write(afifo* target, int value);
VMBOOL afifo_read(afifo* source, int* value);
void send_delayed_report();
void start_reporting(afifo* source, int interval);
void stop_reporting(afifo* source);
void enable_http_report();
void disable_http_report();
void enable_console_report();
void disable_console_report();
void set_report_http_host(char* host);
void set_report_http_path(char* path);
void set_report_http_hmac_key(VMBYTE* key, VMINT key_length);
#endif /* REPORT_H */