#include <stdio.h>#include <stdint.h>#include <stdlib.h>#include <string.h>#include "mb_timer.h"#include "mb_tools.h"Go to the source code of this file.
Classes | |
| struct | _mb_timer |
| struct | _mb_tman |
Defines | |
| #define | OK 0 |
| #define | ERR -1 |
Functions | |
| mb_tman_t * | mb_tman_new (void) |
| void | mb_tman_free (mb_tman_t *tman) |
| mb_timer_t * | mb_tman_timeout (mb_tman_t *tman, const mb_timeval_t *tmo, mb_tmo_hdlr hdlr, void *arg) |
| int | mb_tman_remove (mb_tman_t *tman, mb_timer_t *timer) |
| int | mb_tman_next_timeout (mb_tman_t *tman, const mb_timeval_t *now, mb_timeval_t *tmo_after) |
| Get how long to next timeout from this monent. | |
| int | mb_tman_handle_timeout (mb_tman_t *tman, mb_timeval_t *now) |
| int mb_tman_handle_timeout | ( | mb_tman_t * | tman, | |
| mb_timeval_t * | now | |||
| ) |
| int mb_tman_next_timeout | ( | mb_tman_t * | tman, | |
| const mb_timeval_t * | now, | |||
| mb_timeval_t * | tmo_after | |||
| ) |
| int mb_tman_remove | ( | mb_tman_t * | tman, | |
| mb_timer_t * | timer | |||
| ) |
| mb_timer_t* mb_tman_timeout | ( | mb_tman_t * | tman, | |
| const mb_timeval_t * | tmo, | |||
| mb_tmo_hdlr | hdlr, | |||
| void * | arg | |||
| ) |