Commit | Line | Data |
---|---|---|
db66e574 | 1 | /* |
ab5be9fa MJ |
2 | * Copyright (C) 2017 Julien Desfossez <jdesfossez@efficios.com> |
3 | * Copyright (C) 2018 Jérémie Galarneau <jeremie.galarneau@efficios.com> | |
db66e574 | 4 | * |
ab5be9fa | 5 | * SPDX-License-Identifier: GPL-2.0-only |
db66e574 | 6 | * |
db66e574 JD |
7 | */ |
8 | ||
9 | #ifndef ROTATE_H | |
10 | #define ROTATE_H | |
11 | ||
c9e313bc | 12 | #include "rotation-thread.hpp" |
92816cc3 | 13 | #include <stdint.h> |
db66e574 | 14 | |
90936dcf JD |
15 | /* |
16 | * Subscribe/unsubscribe the notification_channel from the rotation_thread to | |
17 | * session usage notifications to perform size-based rotations. | |
18 | */ | |
19 | int subscribe_session_consumed_size_rotation(struct ltt_session *session, | |
20 | uint64_t size, | |
21 | struct notification_thread_handle *notification_thread_handle); | |
22 | int unsubscribe_session_consumed_size_rotation(struct ltt_session *session, | |
23 | struct notification_thread_handle *notification_thread_handle); | |
24 | ||
db66e574 | 25 | #endif /* ROTATE_H */ |