X-Git-Url: http://git.liburcu.org/?p=lttng-ust.git;a=blobdiff_plain;f=include%2Fust-fd.h;h=a0155251f4a55a2918e078880e3682dc92a47dc8;hp=7cbcf47c8ba0ebb0a4a41262535b85fcd3699d95;hb=793d29c9367a58c2a368bc1ccb11b01c2d2bdac2;hpb=6548fca464f68be5ded73be6b9a479daf08e62d6 diff --git a/include/ust-fd.h b/include/ust-fd.h index 7cbcf47c..a0155251 100644 --- a/include/ust-fd.h +++ b/include/ust-fd.h @@ -24,13 +24,16 @@ * These declarations should NOT be considered stable API. */ +#include + void lttng_ust_init_fd_tracker(void); -void lttng_ust_add_fd_to_tracker(int fd); +int lttng_ust_add_fd_to_tracker(int fd); void lttng_ust_delete_fd_from_tracker(int fd); void lttng_ust_lock_fd_tracker(void); void lttng_ust_unlock_fd_tracker(void); int lttng_ust_safe_close_fd(int fd, int (*close_cb)(int)); +int lttng_ust_safe_fclose_stream(FILE *stream, int (*fclose_cb)(FILE *stream)); int lttng_ust_safe_closefrom_fd(int lowfd, int (*close_cb)(int)); #endif /* _LTTNG_UST_FD_H */