all: Add a common lib version too.

This commit is contained in:
Solomon Peachy 2013-06-30 13:01:17 -04:00
parent 7177b142e0
commit 6c0e25ae4b
4 changed files with 5 additions and 3 deletions

View file

@ -28,6 +28,8 @@
#include <libusb-1.0/libusb.h>
#include <arpa/inet.h>
#define BACKEND_VERSION "0.1"
#define STR_LEN_MAX 64
#define DEBUG( ... ) fprintf(stderr, "DEBUG: " __VA_ARGS__ )
#define DEBUG2( ... ) fprintf(stderr, __VA_ARGS__ )

View file

@ -212,7 +212,7 @@ int main (int argc, char **argv)
uint8_t rdbuf[READBACK_LEN], rdbuf2[READBACK_LEN];
int last_state = -1, state = S_IDLE;
DEBUG("Kodak 1400 CUPS backend version " VERSION " \n");
DEBUG("Kodak 1400 CUPS backend version " VERSION "/" BACKEND_VERSION " \n");
/* Cmdline help */
if (argc < 2) {

View file

@ -135,7 +135,7 @@ int main (int argc, char **argv)
uint8_t rdbuf2[READBACK_LEN];
int last_state = -1, state = S_IDLE;
DEBUG("Kodak 6800 CUPS backend version " VERSION " \n");
DEBUG("Kodak 6800 CUPS backend version " VERSION "/" BACKEND_VERSION " \n");
/* Cmdline help */
if (argc < 2) {

View file

@ -494,7 +494,7 @@ int main (int argc, char **argv)
/* Static initialization */
setup_paper_codes();
DEBUG("Canon SELPHY ES/CP CUPS backend version " VERSION " \n");
DEBUG("Canon SELPHY ES/CP CUPS backend version " VERSION "/" BACKEND_VERSION " \n");
/* Cmdline help */
if (argc < 2) {