44 const char *libunity_names[] = {
45 "libunity.so.4",
"libunity.so.6",
"libunity.so.9",
"libunity.so",
nullptr};
46 for (
int i = 0; libunity_names[i]; i++) {
58 "unity_launcher_entry_get_for_desktop_id");
60 fprintf(stderr,
"failed to load libunity: %s\n", dlerror());
64 "unity_launcher_entry_set_progress");
66 fprintf(stderr,
"failed to load libunity: %s\n", dlerror());
72 fprintf(stderr,
"failed to load libunity: %s\n", dlerror());
77 fprintf(stderr,
"failed to load libunity: %s\n", dlerror());
99 return (handle !=
nullptr);
typedef double(DMatrix)[4][4]
static unity_event_loop_t unity_event_loop
void(*)(void *, double) unity_set_progress_t
static bool libunity_available
int(*)(void *, int) unity_event_loop_t
void(*)(void *, int) unity_set_progress_visible_t
static unity_set_progress_visible_t unity_set_progress_visible
static bool libunity_initialized
void *(*)(const char *) unity_get_entry_t
static unity_set_progress_t unity_set_progress
static unity_get_entry_t unity_get_entry
static void * libunity_handle
GHOST_TaskBarX11(const char *name)
void set_progress(double progress)
void set_progress_enabled(bool enabled)
SyclQueue void void size_t num_bytes void