From: Vasu Dasari <vdasari@gmail.com>
[mpls-ldp-portable.git] / common / mpls_timer_impl.h
blob60583971606f3df38d35ba27a6bfd56855141169
2 /*
3 * Copyright (C) James R. Leu 2000
4 * jleu@mindspring.com
6 * This software is covered under the LGPL, for more
7 * info check out http://www.gnu.org/copyleft/lgpl.html
8 */
10 #ifndef _MPLS_TIMER_IMPL_H_
11 #define _MPLS_TIMER_IMPL_H_
13 #include "mpls_struct.h"
16 * in: handle
17 * return: mpls_timer_mgr_handle
19 extern mpls_timer_mgr_handle mpls_timer_open(mpls_instance_handle handle);
22 * in: handle
24 extern void mpls_timer_close(mpls_timer_mgr_handle handle);
27 * in: handle, unit, duration, object, cfg, callback
28 * return: mpls_timer_handle
30 extern mpls_timer_handle mpls_timer_create(const mpls_timer_mgr_handle handle,
31 const mpls_time_unit_enum unit, const int duration, void *object,
32 const mpls_cfg_handle cfg, void (*callback) (mpls_timer_handle timer,
33 void *object, mpls_cfg_handle cfg));
36 * in: handle, timer
38 extern void mpls_timer_delete(const mpls_timer_mgr_handle handle,
39 const mpls_timer_handle timer);
42 * in: handle, timer, unit, duration, object, cfg, callback
43 * out: mpls_return_enum
45 extern mpls_return_enum mpls_timer_modify(const mpls_timer_mgr_handle handle,
46 const mpls_timer_handle timer, const int duration);
49 * in: handle, timer, type
50 * return: mpls_return_enum
52 extern mpls_return_enum mpls_timer_start(const mpls_timer_mgr_handle handle,
53 const mpls_timer_handle timer, const mpls_timer_type_enum type);
56 * in: handle, timer
58 extern void mpls_timer_stop(const mpls_timer_mgr_handle handle,
59 const mpls_timer_handle timer);
61 #endif