# HG changeset patch # User Thinker K.F. Li # Date 1290357749 -28800 # Node ID bf0da8c7d03f5afc6c647c1124115c3f081610e7 # Parent c39d14139ca5015a8975fca0679ce48ea0dc2d8f Add default timer factory for X support diff -r c39d14139ca5 -r bf0da8c7d03f src/X_supp.c --- 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 */ };