summaryrefslogtreecommitdiff
path: root/src/main/gutenprint-internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/gutenprint-internal.h')
-rw-r--r--src/main/gutenprint-internal.h35
1 files changed, 32 insertions, 3 deletions
diff --git a/src/main/gutenprint-internal.h b/src/main/gutenprint-internal.h
index 32d1ae1..65fd10c 100644
--- a/src/main/gutenprint-internal.h
+++ b/src/main/gutenprint-internal.h
@@ -1,5 +1,5 @@
/*
- * "$Id: gutenprint-internal.h,v 1.1 2004/09/17 18:38:21 rleigh Exp $"
+ * "$Id: gutenprint-internal.h,v 1.3 2010/08/04 00:33:56 rlk Exp $"
*
* Print plug-in header file for the GIMP.
*
@@ -43,7 +43,36 @@ extern "C" {
#include <gutenprint/gutenprint-module.h>
-#include "util.h"
+/**
+ * Utility functions (internal).
+ *
+ * @defgroup util_internal util-internal
+ * @{
+ */
+
+extern void stpi_init_paper(void);
+extern void stpi_init_dither(void);
+extern void stpi_init_printer(void);
+#define BUFFER_FLAG_FLIP_X 0x1
+#define BUFFER_FLAG_FLIP_Y 0x2
+extern stp_image_t* stpi_buffer_image(stp_image_t* image, unsigned int flags);
+
+#define STPI_ASSERT(x,v) \
+do \
+{ \
+ if (stp_get_debug_level() & STP_DBG_ASSERTIONS) \
+ stp_erprintf("DEBUG: Testing assertion %s file %s line %d\n", \
+ #x, __FILE__, __LINE__); \
+ if (!(x)) \
+ { \
+ stp_erprintf("\nERROR: ***Gutenprint %s assertion %s failed!" \
+ " file %s, line %d. %s\n", PACKAGE_VERSION, \
+ #x, __FILE__, __LINE__, "Please report this bug!"); \
+ stp_abort(); \
+ } \
+} while (0)
+
+/** @} */
#ifdef __cplusplus
@@ -52,5 +81,5 @@ extern "C" {
#endif /* GUTENPRINT_INTERNAL_INTERNAL_H */
/*
- * End of "$Id: gutenprint-internal.h,v 1.1 2004/09/17 18:38:21 rleigh Exp $".
+ * End of "$Id: gutenprint-internal.h,v 1.3 2010/08/04 00:33:56 rlk Exp $".
*/