| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
#include <stdint.h> |
| 7 |
|
| 8 |
#define libdecor_unref libdecor_unref_dylibloader_orig_libdecor |
| 9 |
#define libdecor_new libdecor_new_dylibloader_orig_libdecor |
| 10 |
#define libdecor_get_fd libdecor_get_fd_dylibloader_orig_libdecor |
| 11 |
#define libdecor_dispatch libdecor_dispatch_dylibloader_orig_libdecor |
| 12 |
#define libdecor_decorate libdecor_decorate_dylibloader_orig_libdecor |
| 13 |
#define libdecor_frame_ref libdecor_frame_ref_dylibloader_orig_libdecor |
| 14 |
#define libdecor_frame_unref libdecor_frame_unref_dylibloader_orig_libdecor |
| 15 |
#define libdecor_frame_set_visibility libdecor_frame_set_visibility_dylibloader_orig_libdecor |
| 16 |
#define libdecor_frame_is_visible libdecor_frame_is_visible_dylibloader_orig_libdecor |
| 17 |
#define libdecor_frame_set_parent libdecor_frame_set_parent_dylibloader_orig_libdecor |
| 18 |
#define libdecor_frame_set_title libdecor_frame_set_title_dylibloader_orig_libdecor |
| 19 |
#define libdecor_frame_get_title libdecor_frame_get_title_dylibloader_orig_libdecor |
| 20 |
#define libdecor_frame_set_app_id libdecor_frame_set_app_id_dylibloader_orig_libdecor |
| 21 |
#define libdecor_frame_set_capabilities libdecor_frame_set_capabilities_dylibloader_orig_libdecor |
| 22 |
#define libdecor_frame_unset_capabilities libdecor_frame_unset_capabilities_dylibloader_orig_libdecor |
| 23 |
#define libdecor_frame_has_capability libdecor_frame_has_capability_dylibloader_orig_libdecor |
| 24 |
#define libdecor_frame_show_window_menu libdecor_frame_show_window_menu_dylibloader_orig_libdecor |
| 25 |
#define libdecor_frame_popup_grab libdecor_frame_popup_grab_dylibloader_orig_libdecor |
| 26 |
#define libdecor_frame_popup_ungrab libdecor_frame_popup_ungrab_dylibloader_orig_libdecor |
| 27 |
#define libdecor_frame_translate_coordinate libdecor_frame_translate_coordinate_dylibloader_orig_libdecor |
| 28 |
#define libdecor_frame_set_min_content_size libdecor_frame_set_min_content_size_dylibloader_orig_libdecor |
| 29 |
#define libdecor_frame_set_max_content_size libdecor_frame_set_max_content_size_dylibloader_orig_libdecor |
| 30 |
#define libdecor_frame_get_min_content_size libdecor_frame_get_min_content_size_dylibloader_orig_libdecor |
| 31 |
#define libdecor_frame_get_max_content_size libdecor_frame_get_max_content_size_dylibloader_orig_libdecor |
| 32 |
#define libdecor_frame_resize libdecor_frame_resize_dylibloader_orig_libdecor |
| 33 |
#define libdecor_frame_move libdecor_frame_move_dylibloader_orig_libdecor |
| 34 |
#define libdecor_frame_commit libdecor_frame_commit_dylibloader_orig_libdecor |
| 35 |
#define libdecor_frame_set_minimized libdecor_frame_set_minimized_dylibloader_orig_libdecor |
| 36 |
#define libdecor_frame_set_maximized libdecor_frame_set_maximized_dylibloader_orig_libdecor |
| 37 |
#define libdecor_frame_unset_maximized libdecor_frame_unset_maximized_dylibloader_orig_libdecor |
| 38 |
#define libdecor_frame_set_fullscreen libdecor_frame_set_fullscreen_dylibloader_orig_libdecor |
| 39 |
#define libdecor_frame_unset_fullscreen libdecor_frame_unset_fullscreen_dylibloader_orig_libdecor |
| 40 |
#define libdecor_frame_is_floating libdecor_frame_is_floating_dylibloader_orig_libdecor |
| 41 |
#define libdecor_frame_close libdecor_frame_close_dylibloader_orig_libdecor |
| 42 |
#define libdecor_frame_map libdecor_frame_map_dylibloader_orig_libdecor |
| 43 |
#define libdecor_frame_get_xdg_surface libdecor_frame_get_xdg_surface_dylibloader_orig_libdecor |
| 44 |
#define libdecor_frame_get_xdg_toplevel libdecor_frame_get_xdg_toplevel_dylibloader_orig_libdecor |
| 45 |
#define libdecor_state_new libdecor_state_new_dylibloader_orig_libdecor |
| 46 |
#define libdecor_state_free libdecor_state_free_dylibloader_orig_libdecor |
| 47 |
#define libdecor_configuration_get_content_size libdecor_configuration_get_content_size_dylibloader_orig_libdecor |
| 48 |
#define libdecor_configuration_get_window_state libdecor_configuration_get_window_state_dylibloader_orig_libdecor |
| 49 |
#include "./thirdparty/linuxbsd_headers/libdecor-0/libdecor.h" |
| 50 |
#undef libdecor_unref |
| 51 |
#undef libdecor_new |
| 52 |
#undef libdecor_get_fd |
| 53 |
#undef libdecor_dispatch |
| 54 |
#undef libdecor_decorate |
| 55 |
#undef libdecor_frame_ref |
| 56 |
#undef libdecor_frame_unref |
| 57 |
#undef libdecor_frame_set_visibility |
| 58 |
#undef libdecor_frame_is_visible |
| 59 |
#undef libdecor_frame_set_parent |
| 60 |
#undef libdecor_frame_set_title |
| 61 |
#undef libdecor_frame_get_title |
| 62 |
#undef libdecor_frame_set_app_id |
| 63 |
#undef libdecor_frame_set_capabilities |
| 64 |
#undef libdecor_frame_unset_capabilities |
| 65 |
#undef libdecor_frame_has_capability |
| 66 |
#undef libdecor_frame_show_window_menu |
| 67 |
#undef libdecor_frame_popup_grab |
| 68 |
#undef libdecor_frame_popup_ungrab |
| 69 |
#undef libdecor_frame_translate_coordinate |
| 70 |
#undef libdecor_frame_set_min_content_size |
| 71 |
#undef libdecor_frame_set_max_content_size |
| 72 |
#undef libdecor_frame_get_min_content_size |
| 73 |
#undef libdecor_frame_get_max_content_size |
| 74 |
#undef libdecor_frame_resize |
| 75 |
#undef libdecor_frame_move |
| 76 |
#undef libdecor_frame_commit |
| 77 |
#undef libdecor_frame_set_minimized |
| 78 |
#undef libdecor_frame_set_maximized |
| 79 |
#undef libdecor_frame_unset_maximized |
| 80 |
#undef libdecor_frame_set_fullscreen |
| 81 |
#undef libdecor_frame_unset_fullscreen |
| 82 |
#undef libdecor_frame_is_floating |
| 83 |
#undef libdecor_frame_close |
| 84 |
#undef libdecor_frame_map |
| 85 |
#undef libdecor_frame_get_xdg_surface |
| 86 |
#undef libdecor_frame_get_xdg_toplevel |
| 87 |
#undef libdecor_state_new |
| 88 |
#undef libdecor_state_free |
| 89 |
#undef libdecor_configuration_get_content_size |
| 90 |
#undef libdecor_configuration_get_window_state |
| 91 |
#include <dlfcn.h> |
| 92 |
#include <stdio.h> |
| 93 |
void (*libdecor_unref_dylibloader_wrapper_libdecor)(struct libdecor *); |
| 94 |
struct libdecor *(*libdecor_new_dylibloader_wrapper_libdecor)(struct wl_display *, struct libdecor_interface *); |
| 95 |
int (*libdecor_get_fd_dylibloader_wrapper_libdecor)(struct libdecor *); |
| 96 |
int (*libdecor_dispatch_dylibloader_wrapper_libdecor)(struct libdecor *, int); |
| 97 |
struct libdecor_frame *(*libdecor_decorate_dylibloader_wrapper_libdecor)(struct libdecor *, struct wl_surface *, struct libdecor_frame_interface *, void *); |
| 98 |
void (*libdecor_frame_ref_dylibloader_wrapper_libdecor)(struct libdecor_frame *); |
| 99 |
void (*libdecor_frame_unref_dylibloader_wrapper_libdecor)(struct libdecor_frame *); |
| 100 |
void (*libdecor_frame_set_visibility_dylibloader_wrapper_libdecor)(struct libdecor_frame *, bool); |
| 101 |
bool (*libdecor_frame_is_visible_dylibloader_wrapper_libdecor)(struct libdecor_frame *); |
| 102 |
void (*libdecor_frame_set_parent_dylibloader_wrapper_libdecor)(struct libdecor_frame *, struct libdecor_frame *); |
| 103 |
void (*libdecor_frame_set_title_dylibloader_wrapper_libdecor)(struct libdecor_frame *, const char *); |
| 104 |
const char *(*libdecor_frame_get_title_dylibloader_wrapper_libdecor)(struct libdecor_frame *); |
| 105 |
void (*libdecor_frame_set_app_id_dylibloader_wrapper_libdecor)(struct libdecor_frame *, const char *); |
| 106 |
void (*libdecor_frame_set_capabilities_dylibloader_wrapper_libdecor)(struct libdecor_frame *, enum libdecor_capabilities); |
| 107 |
void (*libdecor_frame_unset_capabilities_dylibloader_wrapper_libdecor)(struct libdecor_frame *, enum libdecor_capabilities); |
| 108 |
bool (*libdecor_frame_has_capability_dylibloader_wrapper_libdecor)(struct libdecor_frame *, enum libdecor_capabilities); |
| 109 |
void (*libdecor_frame_show_window_menu_dylibloader_wrapper_libdecor)(struct libdecor_frame *, struct wl_seat *, uint32_t, int, int); |
| 110 |
void (*libdecor_frame_popup_grab_dylibloader_wrapper_libdecor)(struct libdecor_frame *, const char *); |
| 111 |
void (*libdecor_frame_popup_ungrab_dylibloader_wrapper_libdecor)(struct libdecor_frame *, const char *); |
| 112 |
void (*libdecor_frame_translate_coordinate_dylibloader_wrapper_libdecor)(struct libdecor_frame *, int, int, int *, int *); |
| 113 |
void (*libdecor_frame_set_min_content_size_dylibloader_wrapper_libdecor)(struct libdecor_frame *, int, int); |
| 114 |
void (*libdecor_frame_set_max_content_size_dylibloader_wrapper_libdecor)(struct libdecor_frame *, int, int); |
| 115 |
void (*libdecor_frame_get_min_content_size_dylibloader_wrapper_libdecor)(const struct libdecor_frame *, int *, int *); |
| 116 |
void (*libdecor_frame_get_max_content_size_dylibloader_wrapper_libdecor)(const struct libdecor_frame *, int *, int *); |
| 117 |
void (*libdecor_frame_resize_dylibloader_wrapper_libdecor)(struct libdecor_frame *, struct wl_seat *, uint32_t, enum libdecor_resize_edge); |
| 118 |
void (*libdecor_frame_move_dylibloader_wrapper_libdecor)(struct libdecor_frame *, struct wl_seat *, uint32_t); |
| 119 |
void (*libdecor_frame_commit_dylibloader_wrapper_libdecor)(struct libdecor_frame *, struct libdecor_state *, struct libdecor_configuration *); |
| 120 |
void (*libdecor_frame_set_minimized_dylibloader_wrapper_libdecor)(struct libdecor_frame *); |
| 121 |
void (*libdecor_frame_set_maximized_dylibloader_wrapper_libdecor)(struct libdecor_frame *); |
| 122 |
void (*libdecor_frame_unset_maximized_dylibloader_wrapper_libdecor)(struct libdecor_frame *); |
| 123 |
void (*libdecor_frame_set_fullscreen_dylibloader_wrapper_libdecor)(struct libdecor_frame *, struct wl_output *); |
| 124 |
void (*libdecor_frame_unset_fullscreen_dylibloader_wrapper_libdecor)(struct libdecor_frame *); |
| 125 |
bool (*libdecor_frame_is_floating_dylibloader_wrapper_libdecor)(struct libdecor_frame *); |
| 126 |
void (*libdecor_frame_close_dylibloader_wrapper_libdecor)(struct libdecor_frame *); |
| 127 |
void (*libdecor_frame_map_dylibloader_wrapper_libdecor)(struct libdecor_frame *); |
| 128 |
struct xdg_surface *(*libdecor_frame_get_xdg_surface_dylibloader_wrapper_libdecor)(struct libdecor_frame *); |
| 129 |
struct xdg_toplevel *(*libdecor_frame_get_xdg_toplevel_dylibloader_wrapper_libdecor)(struct libdecor_frame *); |
| 130 |
struct libdecor_state *(*libdecor_state_new_dylibloader_wrapper_libdecor)(int, int); |
| 131 |
void (*libdecor_state_free_dylibloader_wrapper_libdecor)(struct libdecor_state *); |
| 132 |
bool (*libdecor_configuration_get_content_size_dylibloader_wrapper_libdecor)(struct libdecor_configuration *, struct libdecor_frame *, int *, int *); |
| 133 |
bool (*libdecor_configuration_get_window_state_dylibloader_wrapper_libdecor)(struct libdecor_configuration *, enum libdecor_window_state *); |
| 134 |
int initialize_libdecor(int verbose) { |
| 135 |
void *handle; |
| 136 |
char *error; |
| 137 |
handle = dlopen("libdecor-0.so.0", RTLD_LAZY); |
| 138 |
if (!handle) { |
| 139 |
if (verbose) { |
| 140 |
fprintf(stderr, "%s\n", dlerror()); |
| 141 |
} |
| 142 |
return(1); |
| 143 |
} |
| 144 |
dlerror(); |
| 145 |
|
| 146 |
*(void **) (&libdecor_unref_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_unref"); |
| 147 |
if (verbose) { |
| 148 |
error = dlerror(); |
| 149 |
if (error != NULL) { |
| 150 |
fprintf(stderr, "%s\n", error); |
| 151 |
} |
| 152 |
} |
| 153 |
|
| 154 |
*(void **) (&libdecor_new_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_new"); |
| 155 |
if (verbose) { |
| 156 |
error = dlerror(); |
| 157 |
if (error != NULL) { |
| 158 |
fprintf(stderr, "%s\n", error); |
| 159 |
} |
| 160 |
} |
| 161 |
|
| 162 |
*(void **) (&libdecor_get_fd_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_get_fd"); |
| 163 |
if (verbose) { |
| 164 |
error = dlerror(); |
| 165 |
if (error != NULL) { |
| 166 |
fprintf(stderr, "%s\n", error); |
| 167 |
} |
| 168 |
} |
| 169 |
|
| 170 |
*(void **) (&libdecor_dispatch_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_dispatch"); |
| 171 |
if (verbose) { |
| 172 |
error = dlerror(); |
| 173 |
if (error != NULL) { |
| 174 |
fprintf(stderr, "%s\n", error); |
| 175 |
} |
| 176 |
} |
| 177 |
|
| 178 |
*(void **) (&libdecor_decorate_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_decorate"); |
| 179 |
if (verbose) { |
| 180 |
error = dlerror(); |
| 181 |
if (error != NULL) { |
| 182 |
fprintf(stderr, "%s\n", error); |
| 183 |
} |
| 184 |
} |
| 185 |
|
| 186 |
*(void **) (&libdecor_frame_ref_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_ref"); |
| 187 |
if (verbose) { |
| 188 |
error = dlerror(); |
| 189 |
if (error != NULL) { |
| 190 |
fprintf(stderr, "%s\n", error); |
| 191 |
} |
| 192 |
} |
| 193 |
|
| 194 |
*(void **) (&libdecor_frame_unref_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_unref"); |
| 195 |
if (verbose) { |
| 196 |
error = dlerror(); |
| 197 |
if (error != NULL) { |
| 198 |
fprintf(stderr, "%s\n", error); |
| 199 |
} |
| 200 |
} |
| 201 |
|
| 202 |
*(void **) (&libdecor_frame_set_visibility_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_set_visibility"); |
| 203 |
if (verbose) { |
| 204 |
error = dlerror(); |
| 205 |
if (error != NULL) { |
| 206 |
fprintf(stderr, "%s\n", error); |
| 207 |
} |
| 208 |
} |
| 209 |
|
| 210 |
*(void **) (&libdecor_frame_is_visible_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_is_visible"); |
| 211 |
if (verbose) { |
| 212 |
error = dlerror(); |
| 213 |
if (error != NULL) { |
| 214 |
fprintf(stderr, "%s\n", error); |
| 215 |
} |
| 216 |
} |
| 217 |
|
| 218 |
*(void **) (&libdecor_frame_set_parent_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_set_parent"); |
| 219 |
if (verbose) { |
| 220 |
error = dlerror(); |
| 221 |
if (error != NULL) { |
| 222 |
fprintf(stderr, "%s\n", error); |
| 223 |
} |
| 224 |
} |
| 225 |
|
| 226 |
*(void **) (&libdecor_frame_set_title_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_set_title"); |
| 227 |
if (verbose) { |
| 228 |
error = dlerror(); |
| 229 |
if (error != NULL) { |
| 230 |
fprintf(stderr, "%s\n", error); |
| 231 |
} |
| 232 |
} |
| 233 |
|
| 234 |
*(void **) (&libdecor_frame_get_title_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_get_title"); |
| 235 |
if (verbose) { |
| 236 |
error = dlerror(); |
| 237 |
if (error != NULL) { |
| 238 |
fprintf(stderr, "%s\n", error); |
| 239 |
} |
| 240 |
} |
| 241 |
|
| 242 |
*(void **) (&libdecor_frame_set_app_id_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_set_app_id"); |
| 243 |
if (verbose) { |
| 244 |
error = dlerror(); |
| 245 |
if (error != NULL) { |
| 246 |
fprintf(stderr, "%s\n", error); |
| 247 |
} |
| 248 |
} |
| 249 |
|
| 250 |
*(void **) (&libdecor_frame_set_capabilities_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_set_capabilities"); |
| 251 |
if (verbose) { |
| 252 |
error = dlerror(); |
| 253 |
if (error != NULL) { |
| 254 |
fprintf(stderr, "%s\n", error); |
| 255 |
} |
| 256 |
} |
| 257 |
|
| 258 |
*(void **) (&libdecor_frame_unset_capabilities_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_unset_capabilities"); |
| 259 |
if (verbose) { |
| 260 |
error = dlerror(); |
| 261 |
if (error != NULL) { |
| 262 |
fprintf(stderr, "%s\n", error); |
| 263 |
} |
| 264 |
} |
| 265 |
|
| 266 |
*(void **) (&libdecor_frame_has_capability_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_has_capability"); |
| 267 |
if (verbose) { |
| 268 |
error = dlerror(); |
| 269 |
if (error != NULL) { |
| 270 |
fprintf(stderr, "%s\n", error); |
| 271 |
} |
| 272 |
} |
| 273 |
|
| 274 |
*(void **) (&libdecor_frame_show_window_menu_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_show_window_menu"); |
| 275 |
if (verbose) { |
| 276 |
error = dlerror(); |
| 277 |
if (error != NULL) { |
| 278 |
fprintf(stderr, "%s\n", error); |
| 279 |
} |
| 280 |
} |
| 281 |
|
| 282 |
*(void **) (&libdecor_frame_popup_grab_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_popup_grab"); |
| 283 |
if (verbose) { |
| 284 |
error = dlerror(); |
| 285 |
if (error != NULL) { |
| 286 |
fprintf(stderr, "%s\n", error); |
| 287 |
} |
| 288 |
} |
| 289 |
|
| 290 |
*(void **) (&libdecor_frame_popup_ungrab_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_popup_ungrab"); |
| 291 |
if (verbose) { |
| 292 |
error = dlerror(); |
| 293 |
if (error != NULL) { |
| 294 |
fprintf(stderr, "%s\n", error); |
| 295 |
} |
| 296 |
} |
| 297 |
|
| 298 |
*(void **) (&libdecor_frame_translate_coordinate_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_translate_coordinate"); |
| 299 |
if (verbose) { |
| 300 |
error = dlerror(); |
| 301 |
if (error != NULL) { |
| 302 |
fprintf(stderr, "%s\n", error); |
| 303 |
} |
| 304 |
} |
| 305 |
|
| 306 |
*(void **) (&libdecor_frame_set_min_content_size_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_set_min_content_size"); |
| 307 |
if (verbose) { |
| 308 |
error = dlerror(); |
| 309 |
if (error != NULL) { |
| 310 |
fprintf(stderr, "%s\n", error); |
| 311 |
} |
| 312 |
} |
| 313 |
|
| 314 |
*(void **) (&libdecor_frame_set_max_content_size_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_set_max_content_size"); |
| 315 |
if (verbose) { |
| 316 |
error = dlerror(); |
| 317 |
if (error != NULL) { |
| 318 |
fprintf(stderr, "%s\n", error); |
| 319 |
} |
| 320 |
} |
| 321 |
|
| 322 |
*(void **) (&libdecor_frame_get_min_content_size_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_get_min_content_size"); |
| 323 |
if (verbose) { |
| 324 |
error = dlerror(); |
| 325 |
if (error != NULL) { |
| 326 |
fprintf(stderr, "%s\n", error); |
| 327 |
} |
| 328 |
} |
| 329 |
|
| 330 |
*(void **) (&libdecor_frame_get_max_content_size_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_get_max_content_size"); |
| 331 |
if (verbose) { |
| 332 |
error = dlerror(); |
| 333 |
if (error != NULL) { |
| 334 |
fprintf(stderr, "%s\n", error); |
| 335 |
} |
| 336 |
} |
| 337 |
|
| 338 |
*(void **) (&libdecor_frame_resize_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_resize"); |
| 339 |
if (verbose) { |
| 340 |
error = dlerror(); |
| 341 |
if (error != NULL) { |
| 342 |
fprintf(stderr, "%s\n", error); |
| 343 |
} |
| 344 |
} |
| 345 |
|
| 346 |
*(void **) (&libdecor_frame_move_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_move"); |
| 347 |
if (verbose) { |
| 348 |
error = dlerror(); |
| 349 |
if (error != NULL) { |
| 350 |
fprintf(stderr, "%s\n", error); |
| 351 |
} |
| 352 |
} |
| 353 |
|
| 354 |
*(void **) (&libdecor_frame_commit_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_commit"); |
| 355 |
if (verbose) { |
| 356 |
error = dlerror(); |
| 357 |
if (error != NULL) { |
| 358 |
fprintf(stderr, "%s\n", error); |
| 359 |
} |
| 360 |
} |
| 361 |
|
| 362 |
*(void **) (&libdecor_frame_set_minimized_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_set_minimized"); |
| 363 |
if (verbose) { |
| 364 |
error = dlerror(); |
| 365 |
if (error != NULL) { |
| 366 |
fprintf(stderr, "%s\n", error); |
| 367 |
} |
| 368 |
} |
| 369 |
|
| 370 |
*(void **) (&libdecor_frame_set_maximized_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_set_maximized"); |
| 371 |
if (verbose) { |
| 372 |
error = dlerror(); |
| 373 |
if (error != NULL) { |
| 374 |
fprintf(stderr, "%s\n", error); |
| 375 |
} |
| 376 |
} |
| 377 |
|
| 378 |
*(void **) (&libdecor_frame_unset_maximized_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_unset_maximized"); |
| 379 |
if (verbose) { |
| 380 |
error = dlerror(); |
| 381 |
if (error != NULL) { |
| 382 |
fprintf(stderr, "%s\n", error); |
| 383 |
} |
| 384 |
} |
| 385 |
|
| 386 |
*(void **) (&libdecor_frame_set_fullscreen_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_set_fullscreen"); |
| 387 |
if (verbose) { |
| 388 |
error = dlerror(); |
| 389 |
if (error != NULL) { |
| 390 |
fprintf(stderr, "%s\n", error); |
| 391 |
} |
| 392 |
} |
| 393 |
|
| 394 |
*(void **) (&libdecor_frame_unset_fullscreen_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_unset_fullscreen"); |
| 395 |
if (verbose) { |
| 396 |
error = dlerror(); |
| 397 |
if (error != NULL) { |
| 398 |
fprintf(stderr, "%s\n", error); |
| 399 |
} |
| 400 |
} |
| 401 |
|
| 402 |
*(void **) (&libdecor_frame_is_floating_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_is_floating"); |
| 403 |
if (verbose) { |
| 404 |
error = dlerror(); |
| 405 |
if (error != NULL) { |
| 406 |
fprintf(stderr, "%s\n", error); |
| 407 |
} |
| 408 |
} |
| 409 |
|
| 410 |
*(void **) (&libdecor_frame_close_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_close"); |
| 411 |
if (verbose) { |
| 412 |
error = dlerror(); |
| 413 |
if (error != NULL) { |
| 414 |
fprintf(stderr, "%s\n", error); |
| 415 |
} |
| 416 |
} |
| 417 |
|
| 418 |
*(void **) (&libdecor_frame_map_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_map"); |
| 419 |
if (verbose) { |
| 420 |
error = dlerror(); |
| 421 |
if (error != NULL) { |
| 422 |
fprintf(stderr, "%s\n", error); |
| 423 |
} |
| 424 |
} |
| 425 |
|
| 426 |
*(void **) (&libdecor_frame_get_xdg_surface_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_get_xdg_surface"); |
| 427 |
if (verbose) { |
| 428 |
error = dlerror(); |
| 429 |
if (error != NULL) { |
| 430 |
fprintf(stderr, "%s\n", error); |
| 431 |
} |
| 432 |
} |
| 433 |
|
| 434 |
*(void **) (&libdecor_frame_get_xdg_toplevel_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_frame_get_xdg_toplevel"); |
| 435 |
if (verbose) { |
| 436 |
error = dlerror(); |
| 437 |
if (error != NULL) { |
| 438 |
fprintf(stderr, "%s\n", error); |
| 439 |
} |
| 440 |
} |
| 441 |
|
| 442 |
*(void **) (&libdecor_state_new_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_state_new"); |
| 443 |
if (verbose) { |
| 444 |
error = dlerror(); |
| 445 |
if (error != NULL) { |
| 446 |
fprintf(stderr, "%s\n", error); |
| 447 |
} |
| 448 |
} |
| 449 |
|
| 450 |
*(void **) (&libdecor_state_free_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_state_free"); |
| 451 |
if (verbose) { |
| 452 |
error = dlerror(); |
| 453 |
if (error != NULL) { |
| 454 |
fprintf(stderr, "%s\n", error); |
| 455 |
} |
| 456 |
} |
| 457 |
|
| 458 |
*(void **) (&libdecor_configuration_get_content_size_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_configuration_get_content_size"); |
| 459 |
if (verbose) { |
| 460 |
error = dlerror(); |
| 461 |
if (error != NULL) { |
| 462 |
fprintf(stderr, "%s\n", error); |
| 463 |
} |
| 464 |
} |
| 465 |
|
| 466 |
*(void **) (&libdecor_configuration_get_window_state_dylibloader_wrapper_libdecor) = dlsym(handle, "libdecor_configuration_get_window_state"); |
| 467 |
if (verbose) { |
| 468 |
error = dlerror(); |
| 469 |
if (error != NULL) { |
| 470 |
fprintf(stderr, "%s\n", error); |
| 471 |
} |
| 472 |
} |
| 473 |
return 0; |
| 474 |
} |