Dynamically load avahi libraries if they are available

This commit is contained in:
loki
2021-06-26 15:36:56 +02:00
parent 27d4f6063f
commit ed5de34800
5 changed files with 389 additions and 112 deletions

View File

@@ -0,0 +1,14 @@
#ifndef SUNSHINE_PLATFORM_MISC_H
#define SUNSHINE_PLATFORM_MISC_H
#include <vector>
namespace dyn {
typedef void (*apiproc)(void);
int load(void *handle, const std::vector<std::tuple<apiproc *, const char *>> &funcs, bool strict = true);
void *handle(const std::vector<const char *> &libs);
} // namespace dyn
#endif