38f7d8c0290d8888db426e6848720bf08b62f8a4
Stefan Schuermans rename: lwproctrace -> upro...

Stefan Schuermans authored 4 years ago

libuptev/src/cleaner.h   1) #ifndef UPTEV_CLEANER_H
libuptev/src/cleaner.h   2) #define UPTEV_CLEANER_H
Stefan Schuermans add exe and cwd to proc_begin

Stefan Schuermans authored 4 years ago

liblwpttr/src/cleaner.h  3) 
liblwpttr/src/cleaner.h  4) /**
liblwpttr/src/cleaner.h  5)  * @brief cleaner object
liblwpttr/src/cleaner.h  6)  *
liblwpttr/src/cleaner.h  7)  * collects pointers to be freed and frees them on request
liblwpttr/src/cleaner.h  8)  */
Stefan Schuermans rename: lwproctrace -> upro...

Stefan Schuermans authored 4 years ago

libuptev/src/cleaner.h   9) typedef struct uptev_cleaner_s uptev_cleaner_t;
Stefan Schuermans add exe and cwd to proc_begin

Stefan Schuermans authored 4 years ago

liblwpttr/src/cleaner.h 10) 
liblwpttr/src/cleaner.h 11) /**
liblwpttr/src/cleaner.h 12)  * @brief creater cleaner object
liblwpttr/src/cleaner.h 13)  * @return pointer to cleaner object or NULL on error
liblwpttr/src/cleaner.h 14)  */
Stefan Schuermans rename: lwproctrace -> upro...

Stefan Schuermans authored 4 years ago

libuptev/src/cleaner.h  15) uptev_cleaner_t * uptev_cleaner_new(void);
Stefan Schuermans add exe and cwd to proc_begin

Stefan Schuermans authored 4 years ago

liblwpttr/src/cleaner.h 16) 
liblwpttr/src/cleaner.h 17) /**
liblwpttr/src/cleaner.h 18)  * @brief add pointer to be freed to cleaner object
liblwpttr/src/cleaner.h 19)  * @param[in] cleaner cleaner object
liblwpttr/src/cleaner.h 20)  * @param[in] ptr the pointer to be freed on cleanup
liblwpttr/src/cleaner.h 21)  * @return 0 on success, -1 on error
liblwpttr/src/cleaner.h 22)  *         (on error, cleanup is done and cleaner is deallocated)
liblwpttr/src/cleaner.h 23)  */
Stefan Schuermans rename: lwproctrace -> upro...

Stefan Schuermans authored 4 years ago

libuptev/src/cleaner.h  24) int uptev_cleaner_add_ptr(uptev_cleaner_t *cleaner, void *ptr);
Stefan Schuermans add exe and cwd to proc_begin

Stefan Schuermans authored 4 years ago

liblwpttr/src/cleaner.h 25) 
liblwpttr/src/cleaner.h 26) /**
liblwpttr/src/cleaner.h 27)  * @brief cleanup all pointers in cleaner and free cleaner itself
liblwpttr/src/cleaner.h 28)  * @param[in] cleaner cleaner object
liblwpttr/src/cleaner.h 29)  */
Stefan Schuermans rename: lwproctrace -> upro...

Stefan Schuermans authored 4 years ago

libuptev/src/cleaner.h  30) void uptev_cleaner_cleanup(uptev_cleaner_t *cleaner);
Stefan Schuermans add exe and cwd to proc_begin

Stefan Schuermans authored 4 years ago

liblwpttr/src/cleaner.h 31)