#pragma once #include struct lib { const char *src_fname; const char *sym_name; void *handle; void *sym; }; struct ccdl { struct lib libs[2], *lib; pthread_t watcher_thread; }; void ccdl_init(struct ccdl *, const char *src_fname, const char *sym_name); void *ccdl_get(struct ccdl *); int ccdl_watch(struct ccdl *); int ccdl_deinit(struct ccdl *);