/* * Copyright (C) James R. Leu 2000 * jleu@mindspring.com * * This software is covered under the LGPL, for more * info check out http://www.gnu.org/copyleft/lgpl.html */ #ifndef _LDP_TIMER_IMPL_H_ #define _LDP_TIMER_IMPL_H_ #include "ldp_struct.h" /* * in: handle * return: ldp_bool */ extern ldp_bool ldp_timer_mgr_handle_verify(ldp_timer_mgr_handle handle); /* * in: handle, timer * return: ldp_bool */ extern ldp_bool ldp_timer_handle_verify(ldp_timer_mgr_handle handle, ldp_timer_handle timer); /* * in: handle * return: ldp_timer_mgr_handle */ extern ldp_timer_mgr_handle ldp_timer_open(ldp_instance_handle handle); /* * in: handle */ extern void ldp_timer_close(ldp_timer_mgr_handle handle); /* * in: handle, unit, duration, object, cfg, callback * return: ldp_timer_handle */ extern ldp_timer_handle ldp_timer_create(const ldp_timer_mgr_handle handle, const ldp_time_unit_enum unit,const int duration,void* object, const ldp_cfg_handle cfg,void (*callback)(ldp_timer_handle timer, void* object, ldp_cfg_handle cfg)); /* * in: handle, timer */ extern void ldp_timer_delete(const ldp_timer_mgr_handle handle, const ldp_timer_handle timer); /* * in: handle, timer, unit, duration, object, cfg, callback * out: ldp_return_enum */ extern ldp_return_enum ldp_timer_modify(const ldp_timer_mgr_handle handle, const ldp_timer_handle timer,const int duration); /* * in: handle, timer, type * return: ldp_return_enum */ extern ldp_return_enum ldp_timer_start(const ldp_timer_mgr_handle handle, const ldp_timer_handle timer,const ldp_timer_type_enum type); /* * in: handle, timer */ extern void ldp_timer_stop(const ldp_timer_mgr_handle handle, const ldp_timer_handle timer); /* * in: handle, timer, unit, duration, object * return: ldp_return_enum */ extern ldp_return_enum ldp_timer_get(const ldp_timer_mgr_handle handle, const ldp_timer_handle timer,int* duration); #endif