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

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

00001 /* ----------------------------------------------------------------------------
00002  * $Id: sos_tschs.h,v 1.8 2004/01/21 21:14:39 jlewalle Exp $
00003  *
00004  * --------------------------------------------------------------------------*/
00005 #if !defined(_INCLUDED_SOS_TSCHS_H_HEADER__)
00006 #define _INCLUDED_SOS_TSCHS_H_HEADER__
00007 
00014 SUL_PEER_DECLARE(task_schedules);
00015 
00019 typedef struct sos_task_schedule_t
00020 {
00021   char *task_name;
00022   apr_time_t exec_time;
00023   apr_int32_t interval;
00024   apr_int32_t num_execs;
00025   double run_time;
00026   sul_boolean_t paused;
00027   sul_boolean_t is_new;
00028 } sos_task_schedule_t;
00029 
00040 SOS_DECLARE(sul_error_t *)
00041 sos_task_schedule_get_task(sos_task_schedule_t **ts, const char *task_name,
00042                            sos_fs_txn_t *txn, apr_pool_t *pool);
00043 
00052 SOS_DECLARE(sul_error_t *)
00053 sos_task_schedule_save(sos_task_schedule_t *ts, sos_fs_txn_t *txn,
00054                        apr_pool_t *pool);
00055 
00064 SOS_DECLARE(sul_error_t *)
00065 sos_task_schedule_update(sos_task_schedule_t *ts, sos_fs_txn_t *txn, 
00066                          apr_pool_t *pool);
00067 
00076 SOS_DECLARE(sul_error_t *)
00077 sos_task_schedule_get_pending(apr_array_header_t **array, sos_fs_txn_t *txn,
00078                               apr_pool_t *pool);
00079 
00082 #endif
00083 

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