00001
00002
00003
00004
00005 #if !defined(_INCLUDED_SOS_HISTORY_H_HEADER__)
00006 #define _INCLUDED_SOS_HISTORY_H_HEADER__
00007
00014 SUL_PEER_DECLARE(vitals_history);
00015
00021 typedef struct sos_vital_history_t
00022 {
00023 sul_key_t identifier;
00024 sul_key_t vital_id;
00025 sul_key_t f_status_id;
00026 sul_key_t t_status_id;
00027 apr_time_t stamp;
00028 char *note;
00029 } sos_vital_history_t;
00030
00039 SOS_DECLARE(sos_vital_history_t *)
00040 sos_vital_history_create(sos_vital_t *vital, sos_status_t *f_status,
00041 sos_status_t *t_status, apr_pool_t *pool);
00042
00052 SOS_DECLARE(sul_error_t *)
00053 sos_vital_history_get_key(sos_vital_history_t **history,
00054 sul_key_t identifier, sos_fs_txn_t *txn,
00055 apr_pool_t *pool);
00056
00062 SOS_DECLARE(sul_error_t *)
00063 sos_vital_history_get_vitals(apr_array_header_t **history,
00064 apr_array_header_t *vital_ids, sos_fs_txn_t *txn,
00065 apr_pool_t *pool);
00066
00076 SOS_DECLARE(sul_error_t *)
00077 sos_vital_history_get_vital(apr_array_header_t **history, sul_key_t vital_id,
00078 sos_fs_txn_t *txn, apr_pool_t *pool);
00079
00088 SOS_DECLARE(sul_error_t *)
00089 sos_vital_history_save(sos_vital_history_t *history, sos_fs_txn_t *txn,
00090 apr_pool_t *pool);
00091
00101 SOS_DECLARE(sul_error_t *)
00102 sos_vital_history_get_node_group(apr_array_header_t **history,
00103 sul_key_t group_id, sos_fs_txn_t *txn,
00104 apr_pool_t *pool);
00105
00108 #endif