28 typedef void *(*unity_get_entry_t)(
const char *);
58 const char *libunity_names[] = {
59 "libunity.so.4",
"libunity.so.6",
"libunity.so.9",
"libunity.so",
NULL};
60 for (
int i = 0; libunity_names[i]; i++) {
72 "unity_launcher_entry_get_for_desktop_id");
74 fprintf(stderr,
"failed to load libunity: %s\n", dlerror());
78 "unity_launcher_entry_set_progress");
80 fprintf(stderr,
"failed to load libunity: %s\n", dlerror());
86 fprintf(stderr,
"failed to load libunity: %s\n", dlerror());
91 fprintf(stderr,
"failed to load libunity: %s\n", dlerror());
113 return (handle !=
NULL);
typedef double(DMatrix)[4][4]
static unity_event_loop_t unity_event_loop
static bool libunity_available
int(* unity_event_loop_t)(void *, int)
static unity_set_progress_visible_t unity_set_progress_visible
static bool libunity_initialized
static unity_set_progress_t unity_set_progress
void *(* unity_get_entry_t)(const char *)
static unity_get_entry_t unity_get_entry
void(* unity_set_progress_visible_t)(void *, int)
void(* unity_set_progress_t)(void *, double)
static void * libunity_handle
GHOST_TaskBarX11(const char *name)
void set_progress(double progress)
void set_progress_enabled(bool enabled)