Skip to content

v4.1.0

Compare
Choose a tag to compare
@FedeDP FedeDP released this 17 Mar 10:05
· 414 commits to master since this release

Hi there!
Here is another libmodule release, with some new features and a couple of bugfixes.

Please note that libmodule switched to MIT license in a strive to gain some more interest!

New features:

  • Cpack DEB and RPM support in Cmake: you can now create deb/rpm pkgs instead of "make install"; thus libmodule will be installed as a system package, and will be much more easily trackable
  • Libmodule can now be built as static library, by setting STATIC_MODULE to true in cmake

New API:

  • modules_ctx_get_fd() to retrieve a pollable fd for a given context
  • modules_ctx_dispatch() to dispatch messages in a non-blocking way for a given context

This two new API let developers integrate libmodule into their own loop.

Fixes:

  • Avoid unsetting dtor in map/stack_clear functions
  • module_unbecome now properly returns MOD_OK if stack is not empty (and thus it was able to pop recv)

Tests:

  • Added module_unbecome() and modules_ctx_dispatch() tests
  • Added CI builds and tests on fedora and ubuntu too

Samples:

  • Added a new "Poll" sample, that is equal to Easy sample, but integrates libmodule's loop inside a poll loop.