timed tail for logfiles. Display loglines given a minimum date and/or a maximum date.
c
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ttail.h 479B

1234567891011121314151617181920212223242526272829
  1. #ifndef _ttail_h__
  2. #define _ttail_h__
  3. #include <errno.h>
  4. #include <stdio.h>
  5. #include "options.h"
  6. #include "dateformats.h"
  7. struct _ttail_runtime_s
  8. {
  9. ///<! Date formats
  10. ttail_datefmt *fmt_l;
  11. ///<! Formats count
  12. size_t fmt_sz;
  13. ///<! Runtime options
  14. ttail_options *options;
  15. };
  16. typedef struct _ttail_runtime_s ttail_runtime_t;
  17. /**@brief Init ttail lib
  18. *
  19. *Initialise the TTAIL_date_fmts and set the options
  20. */
  21. ttail_runtime_t *ttail_init(int argc, char **argv);
  22. #endif