840c0b18e9990fe15416283f869bc8532c1bbf3a
Stefan Schuermans add copyright headers and l...

Stefan Schuermans authored 4 years ago

libuptev/src/event.h   1) /**
libuptev/src/event.h   2)  * UProcTrace: User-space Process Tracing
libuptev/src/event.h   3)  * Copyright 2020: Stefan Schuermans, Aachen, Germany <stefan@schuermans.info>
libuptev/src/event.h   4)  * Copyleft: GNU LESSER GENERAL PUBLIC LICENSE version 3 (see LICENSE)
libuptev/src/event.h   5)  */
libuptev/src/event.h   6) 
Stefan Schuermans rename: lwproctrace -> upro...

Stefan Schuermans authored 4 years ago

libuptev/src/event.h   7) #ifndef UPTEV_EVENT_H
libuptev/src/event.h   8) #define UPTEV_EVENT_H
Stefan Schuermans split event and proc_begin

Stefan Schuermans authored 4 years ago

liblwpttr/src/event.h  9) 
liblwpttr/src/event.h 10) #include "cleaner.h"
liblwpttr/src/event.h 11) 
Stefan Schuermans rename: lwproctrace -> upro...

Stefan Schuermans authored 4 years ago

libuptev/src/event.h  12) #include <uproctrace.pb-c.h>
Stefan Schuermans split event and proc_begin

Stefan Schuermans authored 4 years ago

liblwpttr/src/event.h 13) 
liblwpttr/src/event.h 14) #include <stdlib.h>
liblwpttr/src/event.h 15) 
liblwpttr/src/event.h 16) /**
liblwpttr/src/event.h 17)  * @brief pack event to a buffer
liblwpttr/src/event.h 18)  * @param[in] event the event to pack to a buffer
liblwpttr/src/event.h 19)  * @param[out] *data pointer to event data (malloc-ed)
liblwpttr/src/event.h 20)  * @param[out] *size size of data
liblwpttr/src/event.h 21)  * @param[in] cleaner cleaned up after building data buffer (also on error)
liblwpttr/src/event.h 22)  * @return 0 on success (*data, *size set),
liblwpttr/src/event.h 23)  *         -1 on error (*data = NULL, *size = 0)
liblwpttr/src/event.h 24)  */
Stefan Schuermans formatting

Stefan Schuermans authored 4 years ago

libuptev/src/event.h  25) int uptev_event_pack(struct _Uproctrace__Event *event, void **data,
libuptev/src/event.h  26)                      size_t *size, uptev_cleaner_t *cleaner);
Stefan Schuermans split event and proc_begin

Stefan Schuermans authored 4 years ago

liblwpttr/src/event.h 27)