Skip to content

Instantly share code, notes, and snippets.

View misyltoad's full-sized avatar
🎄
under the misyl toad

Autumn misyltoad

🎄
under the misyl toad
View GitHub Profile
#include <pipewire/pipewire.h>
#include <pthread.h>
#include <dlfcn.h>
static pthread_once_t lib_once = PTHREAD_ONCE_INIT;
static void *pw_lib = NULL;
static void load_pw_lib(void)
{
pw_lib = dlopen("/usr/lib/libpipewire-0.3.so", RTLD_NOW);
}