|
CUPS rastertoql filter
1.0.4
Filter for the Brother QL family of label printers
|
Some useful helpers for the programmers and the compiler. More...
Macros | |
| #define | ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) |
| #define | __packed |
| #define | __unused |
| #define | __nonstring |
| #define | _(x) x |
| #define | caps_print_panic(fmt, ...) cups_message_print("DEBUG", PACKAGE, __func__, __LINE__, fmt, ##__VA_ARGS__) |
| #define | caps_print_error(fmt, ...) cups_message_print("DEBUG", PACKAGE, __func__, __LINE__, fmt, ##__VA_ARGS__) |
| #define | caps_print_warn(fmt, ...) cups_message_print("DEBUG", PACKAGE, __func__, __LINE__, fmt, ##__VA_ARGS__) |
| #define | caps_print_info(fmt, ...) cups_message_print("DEBUG", PACKAGE, __func__, __LINE__, fmt, ##__VA_ARGS__) |
| #define | caps_print_loud(fmt, ...) cups_message_print("DEBUG", PACKAGE, __func__, __LINE__, fmt, ##__VA_ARGS__) |
| #define | caps_print_noisy(fmt, ...) cups_message_print("DEBUG2", PACKAGE, __func__, __LINE__, fmt, ##__VA_ARGS__) |
| #define | caps_print_debug(fmt, ...) cups_message_print("DEBUG2", PACKAGE, __func__, __LINE__, fmt, ##__VA_ARGS__) |
Functions | |
| void | cups_message_print (const char *level, const char *scope, const char *fn, int ln, const char *format,...) |
Some useful helpers for the programmers and the compiler.
| #define _ | ( | x | ) | x |
Disable NLS for CUPS
| #define __nonstring |
| #define __packed |
| #define __unused |
| #define ARRAY_SIZE | ( | x | ) | (sizeof(x)/sizeof(x[0])) |
| #define caps_print_debug | ( | fmt, | |
| ... | |||
| ) | cups_message_print("DEBUG2", PACKAGE, __func__, __LINE__, fmt, ##__VA_ARGS__) |
Output of debug messages. Used to track program states in much more detail
| #define caps_print_error | ( | fmt, | |
| ... | |||
| ) | cups_message_print("DEBUG", PACKAGE, __func__, __LINE__, fmt, ##__VA_ARGS__) |
Output an error message. After this message, the program may continue
| #define caps_print_info | ( | fmt, | |
| ... | |||
| ) | cups_message_print("DEBUG", PACKAGE, __func__, __LINE__, fmt, ##__VA_ARGS__) |
Output an informational message. Its just for user's information. Do not use this excessive!
| #define caps_print_loud | ( | fmt, | |
| ... | |||
| ) | cups_message_print("DEBUG", PACKAGE, __func__, __LINE__, fmt, ##__VA_ARGS__) |
Output a major trace message. Used to track major program states
| #define caps_print_noisy | ( | fmt, | |
| ... | |||
| ) | cups_message_print("DEBUG2", PACKAGE, __func__, __LINE__, fmt, ##__VA_ARGS__) |
Output a minor trace message. Used to track program states in more detail
| #define caps_print_panic | ( | fmt, | |
| ... | |||
| ) | cups_message_print("DEBUG", PACKAGE, __func__, __LINE__, fmt, ##__VA_ARGS__) |
Output a panic message. After this message, the program should terminate
| #define caps_print_warn | ( | fmt, | |
| ... | |||
| ) | cups_message_print("DEBUG", PACKAGE, __func__, __LINE__, fmt, ##__VA_ARGS__) |
Output a warning message. After this message, the program continues at best it can
| void cups_message_print | ( | const char * | level, |
| const char * | scope, | ||
| const char * | fn, | ||
| int | ln, | ||
| const char * | format, | ||
| ... | |||
| ) |
State/error/warning/info reporting function
| [in] | level | Verbosity level of this message |
| [in] | scope | The message's scope, like it's package name |
| [in] | fn | Name of the function, this output is from |
| [in] | ln | Line number this call is from |
| [in] | format | The format string. Refer the printf() manual for further details |
1.8.17