00001
00002
00003
00004
00005 #if !defined(_INCLUDED_SOS_UPDATES_H_HEADER__)
00006 #define _INCLUDED_SOS_UPDATES_H_HEADER__
00007
00014 typedef struct sos_vital_update_t
00015 {
00016 apr_pool_t *pool;
00017 sos_vital_t *vital;
00018 sos_status_t *f_status;
00019 sos_status_t *t_status;
00020 sos_fs_txn_t *txn;
00021 sos_node_t *node;
00022 sul_boolean_t changed;
00023 sul_boolean_t recovery;
00024 sos_vital_type_t *type;
00025 sos_vital_history_t *history;
00026 apr_hash_t *properties;
00027 const char *note;
00028
00029 } sos_vital_update_t;
00030
00044 SOS_DECLARE(void)
00045 sos_update_log(long level, sos_vital_update_t *update, apr_pool_t *pool,
00046 const char *msg, ...);
00047
00059 SOS_DECLARE(sos_vital_update_t *)
00060 sos_update_create(sos_vital_t *vital, sos_status_t *status, apr_pool_t *pool);
00061
00083 SOS_DECLARE(sul_error_t *)
00084 sos_update_execute(const char *addr, const char *name, const char *status,
00085 const char *type, const char *note,
00086 sul_boolean_t create, apr_hash_t *properties,
00087 sos_fs_txn_t *txn, apr_pool_t *pool);
00088
00091 #endif