int smd_ev_wait(tSMEventId eventId)
Wait until given event occurs.
Application developers may prefer to use the underlying operating system calls instead of this call, allowing them to exploit event wait timeouts, waiting for multiple events etc. The use of events on each operating system is described in Prosody events.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody generic API.