e9f4e648c6dd2821c0df7060f7e62f73bc7a0816
Stefan Schuermans split event and proc_begin

Stefan Schuermans authored 4 years ago

1) #include "event.h"
Stefan Schuermans add exe and cwd to proc_begin

Stefan Schuermans authored 4 years ago

2) #include "cleaner.h"
Stefan Schuermans first incomplete begin_proc...

Stefan Schuermans authored 4 years ago

3) 
4) #include <lwproctrace.pb-c.h>
5) 
6) #include <stdlib.h>
7) 
Stefan Schuermans split event and proc_begin

Stefan Schuermans authored 4 years ago

8) /**
9)  * @brief pack event to a buffer
10)  * @param[in] event the event to pack to a buffer
11)  * @param[out] *data pointer to event data (malloc-ed)
12)  * @param[out] *size size of data
13)  * @param[in] cleaner cleaned up after building data buffer (also on error)
14)  * @return 0 on success (*data, *size set),
15)  *         -1 on error (*data = NULL, *size = 0)
16)  */
17) int lwpttr_event_pack(struct _Lwproctrace__Event *event,
18)                       void **data, size_t *size,
19)                       lwpttr_cleaner_t *cleaner) {