Fix the get_new method

When calling the get_new() method to generate an Event object, the
::sd_event_new method should be used instead the ::sd_event_default
method.

Tested:
Before call get_default and get_new():
event_default = 0x646da0
event_new = 0x646da0

After call get_default and get_new():
event_default = 0x646da0
event_new = 0x646ff8

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I232f1167949ca9bbdedcd368092adf50bf268941
1 file changed
tree: 1be3d81fab042a4ae3e811595b3dab660623858d
  1. example/
  2. src/
  3. subprojects/
  4. test/
  5. .clang-format
  6. .clang-ignore
  7. .clang-tidy
  8. .gitignore
  9. .lcovrc
  10. LICENSE
  11. MAINTAINERS
  12. meson.build
  13. meson_options.txt
  14. README.md
README.md

sdeventplus

sdeventplus is a c++ wrapper around the systemd sd_event apis meant to provide c++ ergonomics to their usage.

Dependencies

The sdeventplus library requires a libsystemd development package on the system for sd-event.

Building

For a standard release build, you want something like:

meson setup -Dexamples=false -Dtests=disabled builddir
ninja -C builddir
ninja -C builddir install

For a test / debug build, a typical configuration is

meson setup -Dtests=enabled builddir
meson test -C builddir