Frediano Ziglio
982d14dd69
dispatcher: Move some private functions to DispatcherPrivate
...
Reduce declaration in the header.
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Acked-by: Julien Ropé <jrope@gmail.com>
2020-06-17 10:59:38 +02:00
Frediano Ziglio
09e01153b7
utils: Fix typo in comment
2020-05-05 05:14:53 +01:00
Frediano Ziglio
be5bda4d4f
utils: Add red::weak_ptr and red::shared_ptr_counted_weak
...
Implements weak pointers and helper to implement them.
They will be used for RedCharDevice.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
2020-05-01 06:58:09 +01:00
Frediano Ziglio
597461e443
Add and use red::make_shared
...
Allow to create an object already contained in a shared pointer
to avoid having not owned objects.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
2020-05-01 06:58:09 +01:00
Frediano Ziglio
bf04d7d721
utils: Very skinny share_ptr implementation for our references
...
It will be used to refactor reference counting code.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
2020-05-01 06:58:09 +01:00
Frediano Ziglio
435ea33540
Reduce C++ symbols visibility
...
This allows the compiler to do some more optimisations on the
produced binary.
To allows possible future portability include header/footer in
some helper header files.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
2020-05-01 06:58:09 +01:00
Frediano Ziglio
b86f6e9a53
utils: Add red::unique_ptr
...
red::unique_link will be used to manage "priv" fields.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
2020-05-01 06:58:09 +01:00
Frediano Ziglio
3a05720eaa
Introduce some utilities for C++
...
red::add_ref will be used to increment a reference counter
and return the object pointer.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
2020-05-01 06:58:09 +01:00