00001
00002
00003
00004
00005 #if !defined(_INCLUDED_SUMMARY_H_HEADER__)
00006 #define _INCLUDED_SUMMARY_H_HEADER__
00007
00008 typedef struct trd_state_summary_t
00009 {
00010 time_t duration;
00011 long state;
00012 } trd_state_summary_t;
00013
00014 typedef struct trd_summary_t
00015 {
00016 apr_pool_t *pool;
00017 time_t total_duration;
00018 apr_array_header_t *states;
00019 } trd_summary_t;
00020
00021 trd_summary_t *
00022 trd_summary_create(trd_state_change_t *history, apr_size_t number_entries,
00023 apr_pool_t *pool);
00024
00025 trd_state_summary_t *
00026 trd_summary_find_state(trd_summary_t *summary, long state);
00027
00028 #endif