extern int event_init(struct lgsm_handle *lh);