| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
#ifndef __PRINT_GIMP_H__ |
| 28 |
#define __PRINT_GIMP_H__ |
| 29 |
|
| 30 |
#ifdef __GNUC__ |
| 31 |
#ifndef inline |
| 32 |
#define inline __inline__ |
| 33 |
#endif |
| 34 |
#endif |
| 35 |
|
| 36 |
#include <gutenprint/gutenprint.h> |
| 37 |
#include <gutenprintui2/gutenprintui.h> |
| 38 |
|
| 39 |
#pragma GCC diagnostic push |
| 40 |
#pragma GCC diagnostic ignored "-Wpedantic" |
| 41 |
#include <libgimp/gimp.h> |
| 42 |
#include <libgimp/gimpui.h> |
| 43 |
#pragma GCC diagnostic pop |
| 44 |
|
| 45 |
|
| 46 |
extern stpui_image_t *Image_GimpDrawable_new(GimpDrawable *drawable, gint32); |
| 47 |
|
| 48 |
extern void do_gimp_install_procedure(const char *blurb, const char *help, |
| 49 |
const char *auth, const char *copy, |
| 50 |
const char *types, int n_args, |
| 51 |
GimpParamDef *args); |
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
#define BAD_CONST_CHAR char * |
| 60 |
|
| 61 |
#pragma GCC diagnostic push |
| 62 |
#pragma GCC diagnostic ignored "-Wpointer-to-int-cast" |
| 63 |
static inline gint |
| 64 |
p2gint(void *p) |
| 65 |
{ |
| 66 |
return (gint) p; |
| 67 |
} |
| 68 |
#pragma GCC diagnostic pop |
| 69 |
|
| 70 |
#pragma GCC diagnostic push |
| 71 |
#pragma GCC diagnostic ignored "-Wint-to-pointer-cast" |
| 72 |
static inline void * |
| 73 |
gint2p(int i) |
| 74 |
{ |
| 75 |
return (gpointer) i; |
| 76 |
} |
| 77 |
#pragma GCC diagnostic pop |
| 78 |
|
| 79 |
#pragma GCC diagnostic ignored "-Woverlength-strings" |
| 80 |
#pragma GCC diagnostic push |
| 81 |
#pragma GCC diagnostic ignored "-Wcast-qual" |
| 82 |
static inline void * |
| 83 |
cast_safe(const void *ptr) |
| 84 |
{ |
| 85 |
return (void *)ptr; |
| 86 |
} |
| 87 |
#pragma GCC diagnostic pop |
| 88 |
|
| 89 |
#endif |