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

Stefan Schuermans authored 4 years ago

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

Stefan Schuermans authored 4 years ago

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

Stefan Schuermans authored 4 years ago

liblwpttr/src/cleaner.h  9) 
liblwpttr/src/cleaner.h 10) /**
liblwpttr/src/cleaner.h 11)  * @brief cleaner object
liblwpttr/src/cleaner.h 12)  *
liblwpttr/src/cleaner.h 13)  * collects pointers to be freed and frees them on request
liblwpttr/src/cleaner.h 14)  */
Stefan Schuermans rename: lwproctrace -> upro...

Stefan Schuermans authored 4 years ago

libuptev/src/cleaner.h  15) 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 16) 
liblwpttr/src/cleaner.h 17) /**
liblwpttr/src/cleaner.h 18)  * @brief creater cleaner object
liblwpttr/src/cleaner.h 19)  * @return pointer to cleaner object or NULL on error
liblwpttr/src/cleaner.h 20)  */
Stefan Schuermans formatting

Stefan Schuermans authored 4 years ago

libuptev/src/cleaner.h  21) 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 22) 
liblwpttr/src/cleaner.h 23) /**
liblwpttr/src/cleaner.h 24)  * @brief add pointer to be freed to cleaner object
liblwpttr/src/cleaner.h 25)  * @param[in] cleaner cleaner object
liblwpttr/src/cleaner.h 26)  * @param[in] ptr the pointer to be freed on cleanup
liblwpttr/src/cleaner.h 27)  * @return 0 on success, -1 on error
liblwpttr/src/cleaner.h 28)  *         (on error, cleanup is done and cleaner is deallocated)
liblwpttr/src/cleaner.h 29)  */
Stefan Schuermans rename: lwproctrace -> upro...

Stefan Schuermans authored 4 years ago

libuptev/src/cleaner.h  30) 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 31) 
liblwpttr/src/cleaner.h 32) /**
liblwpttr/src/cleaner.h 33)  * @brief cleanup all pointers in cleaner and free cleaner itself
liblwpttr/src/cleaner.h 34)  * @param[in] cleaner cleaner object
liblwpttr/src/cleaner.h 35)  */
Stefan Schuermans rename: lwproctrace -> upro...

Stefan Schuermans authored 4 years ago

libuptev/src/cleaner.h  36) 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 37)