summaryrefslogtreecommitdiff
path: root/hugin.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-12-13 10:15:52 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-12-13 10:15:52 +0100
commit312de68e259fe03d6df09f7c7f0f7271c2350532 (patch)
treebff5e0329fb3b0ad4d3825fbf2d9687ffb3a0c86 /hugin.h
parent8ab91e5c823cfe7205330cf730ebf38b7676f685 (diff)
Add new log-rotate feature and error handling on file log opening.20131213
Diffstat (limited to 'hugin.h')
-rw-r--r--hugin.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/hugin.h b/hugin.h
index 8aabcf1..393ce1c 100644
--- a/hugin.h
+++ b/hugin.h
@@ -131,12 +131,22 @@ enum HUG_OPTION {
* @param flags combination of HUG_FLAG values
* @param ... list of options (type-value pairs,
* terminated with HUG_OPTION_END).
- * @return 0 on success, 1 on error.
+ * @return HUG_STATUS_OK on success, 1 on error.
*/
hug_status_t hug_init(unsigned int flags, ...);
void hug_close();
/**
+ * Use this function if hugin is logging to a file and this file has just been
+ * rotated. Hugin will then close the filedescriptor to the file and open
+ * the a new file with the same name and location.
+ * Be aware that logrotate might need to create this new file first with
+ * the correct permissions in order for hugin to write to it.
+ * @return 0 on success. HUG_STATUS_ERROR on error (cannot open file).
+ */
+hug_status_t hugin_reopen_log();
+
+/**
* Example of usage (use mutex protected calls, send output to file):
*
* hug_status_t status;