-
Notifications
You must be signed in to change notification settings - Fork 0
/
listener.h
56 lines (45 loc) · 2.32 KB
/
listener.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
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
/*
* The MIT License (MIT)
*
* Copyright (c) 2020 TheVice
*
*/
#ifndef _LISTENER_H_
#define _LISTENER_H_
#include <stddef.h>
#include <stdint.h>
struct range;
void listener_project_started(const uint8_t* source, const uint8_t* the_project, uint8_t verbose);
void listener_project_finished(
const uint8_t* source, const uint8_t* the_project, uint8_t result, uint8_t verbose);
void listener_target_started(const uint8_t* source, ptrdiff_t offset,
const uint8_t* the_project, const uint8_t* the_target, uint8_t verbose);
void listener_target_finished(const uint8_t* source, ptrdiff_t offset,
const uint8_t* the_project, const uint8_t* the_target, uint8_t result, uint8_t verbose);
void listener_task_started(const uint8_t* source, ptrdiff_t offset,
const uint8_t* the_project, const uint8_t* the_target,
const struct range* task_name, ptrdiff_t task_id,
const uint8_t* the_module, uint8_t verbose);
void listener_task_finished(const uint8_t* source, ptrdiff_t offset,
const uint8_t* the_project, const uint8_t* the_target,
const struct range* task_name, ptrdiff_t task_id,
const uint8_t* the_module, uint8_t result, uint8_t verbose);
void listener_set_on_project_started(
void (*listener_on_project_started)(const uint8_t* source, const uint8_t* the_project));
void listener_set_on_project_finished(
void (*listener_on_project_finished)(const uint8_t* source, const uint8_t* the_project, uint8_t result));
void listener_set_on_target_started(
void (*listener_on_target_started)(const uint8_t* source, ptrdiff_t offset,
const uint8_t* the_project, const uint8_t* the_target));
void listener_set_on_target_finished(
void (*listener_on_target_finished)(const uint8_t* source, ptrdiff_t offset,
const uint8_t* the_project, const uint8_t* the_target, uint8_t result));
void listener_set_on_task_started(
void (*listener_on_task_started)(const uint8_t* source, ptrdiff_t offset,
const uint8_t* the_project, const uint8_t* the_target, const uint8_t* the_task));
void listener_set_on_task_finished(
void (*listener_on_task_finished)(const uint8_t* source, ptrdiff_t offset,
const uint8_t* the_project, const uint8_t* the_target,
const uint8_t* the_task, uint8_t result));
uint8_t load_listener(const uint8_t* listener, void** object);
#endif