Mercurial > MadButterfly
diff src/X_supp.c @ 987:bf0da8c7d03f refine_backend_if
Add default timer factory for X support
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Mon, 22 Nov 2010 00:42:29 +0800 |
parents | c39d14139ca5 |
children | bc8cfcd40d0e |
line wrap: on
line diff
--- a/src/X_supp.c Mon Nov 22 00:42:29 2010 +0800 +++ b/src/X_supp.c Mon Nov 22 00:42:29 2010 +0800 @@ -74,6 +74,26 @@ int mbut_state; /* Button state of last motion event */ }; +/*! \defgroup x_mb_timer Timer manager for X. + * @{ + */ +struct _X_supp_timer_man { + mb_timer_man_t timer_man; + mb_tman_t *tman; +}; + +static struct _X_supp_timer_man _X_supp_default_timer_man = { + {_x_supp_timer_man_timeout, _x_supp_timer_man_remove}, + NULL +}; + +static mb_timer_factory_t _X_supp_default_timer_factory = { + _X_supp_timer_fact_new, + _X_supp_timer_fact_free +} + +/* @} */ + /*! \defgroup x_mb_io IO manager for X. * @{ */ @@ -106,7 +126,7 @@ static struct _X_MB_IO_man _default_io_man = { {_x_mb_io_man_reg, _x_mb_io_man_unreg}, - , /* monitors */ + {}, /* monitors */ 0 /* n_monitor */ };