API Reference

Complete API documentation for libevpl organized by functional area.

Core APIs

Protocol Modules

Quick Reference

Including Headers

All core APIs are accessed through a single header:

#include <evpl/evpl.h>

Protocols have their own additional header:

#include <evpl/evpl_http.h>
#include <evpl/evpl_rpc2.h>

Error Handling

Most functions return:

  • Pointers: NULL on failure
  • Integers: -1 or negative on error, 0 or positive on success
  • void: No return value (errors signaled via callbacks)

Always check return values and handle errors appropriately.

Thread Safety

  • Each event loop is single-threaded
  • Use async events for thread processing, don’t block in the event loop.
  • Use doorbells for inter-thread communication
  • Listeners can be attached to multiple threads

See Also


Table of contents