X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=io.h;h=af7e662ae4d8dcc2b911b4b24e5b4ef51d88e922;hb=62f28c55d444d846579159133dbe091809a2c08b;hp=2bb678200b826e8f25f7b29a0723f4142739be6a;hpb=6adc886e1fa296f67aacef0c01994e302e8caf86;p=nssm.git diff --git a/io.h b/io.h index 2bb6782..af7e662 100644 --- a/io.h +++ b/io.h @@ -22,10 +22,14 @@ typedef struct { __int64 size; unsigned long *tid_ptr; unsigned long *rotate_online; + bool timestamp_log; + __int64 line_length; bool copy_and_truncate; unsigned long rotate_delay; } logger_t; +void close_handle(HANDLE *, HANDLE *); +void close_handle(HANDLE *); int get_createfile_parameters(HKEY, TCHAR *, TCHAR *, unsigned long *, unsigned long, unsigned long *, unsigned long, unsigned long *, unsigned long, bool *); int set_createfile_parameter(HKEY, TCHAR *, TCHAR *, unsigned long); int delete_createfile_parameter(HKEY, TCHAR *, TCHAR *); @@ -34,6 +38,7 @@ void rotate_file(TCHAR *, TCHAR *, unsigned long, unsigned long, unsigned long, int get_output_handles(nssm_service_t *, STARTUPINFO *); int use_output_handles(nssm_service_t *, STARTUPINFO *); void close_output_handles(STARTUPINFO *); +void cleanup_loggers(nssm_service_t *); unsigned long WINAPI log_and_rotate(void *); #endif