common: the 'dyesub_backend' structure is now const everywhere.

master
Solomon Peachy 2 years ago
parent 5f4d87fd41
commit cfe0fd8004
  1. 2
      backend_canonselphy.c
  2. 4
      backend_canonselphyneo.c
  3. 2
      backend_common.c
  4. 2
      backend_common.h
  5. 2
      backend_dnpds40.c
  6. 2
      backend_hiti.c
  7. 2
      backend_kodak1400.c
  8. 2
      backend_kodak605.c
  9. 2
      backend_kodak6800.c
  10. 2
      backend_magicard.c
  11. 2
      backend_mitsu70x.c
  12. 2
      backend_mitsu9550.c
  13. 2
      backend_mitsud90.c
  14. 2
      backend_mitsup95d.c
  15. 2
      backend_shinkos1245.c
  16. 2
      backend_shinkos2145.c
  17. 2
      backend_shinkos6145.c
  18. 2
      backend_shinkos6245.c
  19. 2
      backend_sonyupd.c
  20. 2
      backend_sonyupdneo.c

@ -1123,7 +1123,7 @@ static const char *canonselphy_prefixes[] = {
NULL
};
struct dyesub_backend canonselphy_backend = {
const struct dyesub_backend canonselphy_backend = {
.name = "Canon SELPHY CP/ES (legacy)",
.version = "0.106",
.uri_prefixes = canonselphy_prefixes,

@ -178,8 +178,6 @@ static void *selphyneo_init(void)
return ctx;
}
extern struct dyesub_backend selphyneo_backend;
static int selphyneo_attach(void *vctx, struct dyesub_connection *conn, uint8_t jobid)
{
struct selphyneo_ctx *ctx = vctx;
@ -510,7 +508,7 @@ static const char *canonselphyneo_prefixes[] = {
NULL
};
struct dyesub_backend canonselphyneo_backend = {
const struct dyesub_backend canonselphyneo_backend = {
.name = "Canon SELPHY CP (new)",
.version = "0.21",
.uri_prefixes = canonselphyneo_prefixes,

@ -29,7 +29,7 @@
#include <signal.h>
#include <strings.h> /* For strncasecmp */
#define BACKEND_VERSION "0.109"
#define BACKEND_VERSION "0.110"
#ifndef URI_PREFIX
#error "Must Define URI_PREFIX"
#endif

@ -301,7 +301,7 @@ enum {
};
#if defined(BACKEND)
extern struct dyesub_backend BACKEND;
extern const struct dyesub_backend BACKEND;
#endif
/* CUPS compatibility */

@ -3415,7 +3415,7 @@ static const char *dnpds40_prefixes[] = {
#define USB_PID_DNP_QW410 0x9201
/* Exported */
struct dyesub_backend dnpds40_backend = {
const struct dyesub_backend dnpds40_backend = {
.name = "DNP DS-series / Citizen C-series",
.version = "0.136",
.uri_prefixes = dnpds40_prefixes,

@ -2334,7 +2334,7 @@ static const char *hiti_prefixes[] = {
#define USB_PID_HITI_P310W 0x050A
#define USB_PID_HITI_X610 0x0800
struct dyesub_backend hiti_backend = {
const struct dyesub_backend hiti_backend = {
.name = "HiTi Photo Printers",
.version = "0.22",
.uri_prefixes = hiti_prefixes,

@ -620,7 +620,7 @@ static const char *kodak1400_prefixes[] = {
NULL,
};
struct dyesub_backend kodak1400_backend = {
const struct dyesub_backend kodak1400_backend = {
.name = "Kodak 1400/805",
.version = "0.41",
.uri_prefixes = kodak1400_prefixes,

@ -892,7 +892,7 @@ static const char *kodak605_prefixes[] = {
};
/* Exported */
struct dyesub_backend kodak605_backend = {
const struct dyesub_backend kodak605_backend = {
.name = "Kodak 605/70xx",
.version = "0.55" " (lib " LIBSINFONIA_VER ")",
.uri_prefixes = kodak605_prefixes,

@ -1064,7 +1064,7 @@ static const char *kodak6800_prefixes[] = {
};
/* Exported */
struct dyesub_backend kodak6800_backend = {
const struct dyesub_backend kodak6800_backend = {
.name = "Kodak 6800/6850",
.version = "0.80" " (lib " LIBSINFONIA_VER ")",
.uri_prefixes = kodak6800_prefixes,

@ -924,7 +924,7 @@ static const char *magicard_prefixes[] = {
NULL
};
struct dyesub_backend magicard_backend = {
const struct dyesub_backend magicard_backend = {
.name = "Magicard family",
.version = "0.17",
.uri_prefixes = magicard_prefixes,

@ -2334,7 +2334,7 @@ static const char *mitsu70x_prefixes[] = {
};
/* Exported */
struct dyesub_backend mitsu70x_backend = {
const struct dyesub_backend mitsu70x_backend = {
.name = "Mitsubishi CP-D70 family",
.version = "0.100" " (lib " LIBMITSU_VER ")",
.flags = BACKEND_FLAG_DUMMYPRINT,

@ -1488,7 +1488,7 @@ static const char *mitsu9550_prefixes[] = {
};
/* Exported */
struct dyesub_backend mitsu9550_backend = {
const struct dyesub_backend mitsu9550_backend = {
.name = "Mitsubishi CP9xxx family",
.version = "0.56" " (lib " LIBMITSU_VER ")",
.uri_prefixes = mitsu9550_prefixes,

@ -1685,7 +1685,7 @@ static const char *mitsud90_prefixes[] = {
};
/* Exported */
struct dyesub_backend mitsud90_backend = {
const struct dyesub_backend mitsud90_backend = {
.name = "Mitsubishi CP-D90/CP-M1",
.version = "0.29" " (lib " LIBMITSU_VER ")",
.uri_prefixes = mitsud90_prefixes,

@ -604,7 +604,7 @@ static const char *mitsup95d_prefixes[] = {
};
/* Exported */
struct dyesub_backend mitsup95d_backend = {
const struct dyesub_backend mitsup95d_backend = {
.name = "Mitsubishi P93D/P95D",
.version = "0.15",
.uri_prefixes = mitsup95d_prefixes,

@ -1284,7 +1284,7 @@ static const char *shinkos1245_prefixes[] = {
NULL
};
struct dyesub_backend shinkos1245_backend = {
const struct dyesub_backend shinkos1245_backend = {
.name = "Shinko/Sinfonia CHC-S1245/E1",
.version = "0.34" " (lib " LIBSINFONIA_VER ")",
.uri_prefixes = shinkos1245_prefixes,

@ -1226,7 +1226,7 @@ static const char *shinkos2145_prefixes[] = {
NULL
};
struct dyesub_backend shinkos2145_backend = {
const struct dyesub_backend shinkos2145_backend = {
.name = "Shinko/Sinfonia CHC-S2145/S2",
.version = "0.66" " (lib " LIBSINFONIA_VER ")",
.uri_prefixes = shinkos2145_prefixes,

@ -2038,7 +2038,7 @@ static const char *shinkos6145_prefixes[] = {
NULL
};
struct dyesub_backend shinkos6145_backend = {
const struct dyesub_backend shinkos6145_backend = {
.name = "Shinko/Sinfonia CHC-S6145/CS2/S2245/S3",
.version = "0.45" " (lib " LIBSINFONIA_VER ")",
.uri_prefixes = shinkos6145_prefixes,

@ -1460,7 +1460,7 @@ static const char *shinkos6245_prefixes[] = {
NULL
};
struct dyesub_backend shinkos6245_backend = {
const struct dyesub_backend shinkos6245_backend = {
.name = "Sinfonia CHC-S6245 / Kodak 8810",
.version = "0.36" " (lib " LIBSINFONIA_VER ")",
.uri_prefixes = shinkos6245_prefixes,

@ -595,7 +595,7 @@ static const char *sonyupd_prefixes[] = {
#define USB_PID_SONY_UPD895 0x0049
#define USB_PID_SONY_UPD897 0x01E7
struct dyesub_backend sonyupd_backend = {
const struct dyesub_backend sonyupd_backend = {
.name = "Sony UP-D",
.version = "0.40",
.uri_prefixes = sonyupd_prefixes,

@ -614,7 +614,7 @@ static const char *sonyupdneo_prefixes[] = {
#define USB_PID_SONY_UPDR80 0x03c5
#define USB_PID_SONY_UPCX1 0x02d4
struct dyesub_backend sonyupdneo_backend = {
const struct dyesub_backend sonyupdneo_backend = {
.name = "Sony UP-D Neo",
.version = "0.11",
.uri_prefixes = sonyupdneo_prefixes,

Loading…
Cancel
Save