libev adapter