Main Page | Modules | Data Structures | File List | Data Fields

/extra/work/state-dev/src/sos/sos_soft.h

00001 /* ----------------------------------------------------------------------------
00002  * $Id: sos_soft.h,v 1.3 2003/10/06 20:47:47 jlewalle Exp $
00003  *
00004  * --------------------------------------------------------------------------*/
00005 #if !defined(_INCLUDED_SOS_SOFT_H_HEADER__)
00006 #define _INCLUDED_SOS_SOFT_H_HEADER__
00007 
00014 SUL_PEER_DECLARE(soft_states);
00015 
00019 typedef struct sos_soft_state_t
00020 {
00021   sul_key_t vital_id;
00022   sul_key_t soft_state_id;
00023   sul_key_t hard_state_id;
00024   apr_int32_t degree;
00025   apr_int32_t threshold;
00026   sul_boolean_t new;
00027 } sos_soft_state_t;
00028 
00038 SOS_DECLARE(sul_error_t *)
00039 sos_soft_state_get_vital(sos_soft_state_t **ss, sos_vital_t *vital,
00040                          sos_fs_txn_t *txn, apr_pool_t *pool);
00041 
00050 SOS_DECLARE(sul_error_t *)
00051 sos_soft_state_save(sos_soft_state_t *ss, sos_fs_txn_t *txn, apr_pool_t *pool);
00052 
00055 #endif

Generated on Wed Apr 28 09:38:33 2004 for State by doxygen 1.3.5