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

This commit is contained in:
Solomon Peachy 2020-10-05 22:26:39 -04:00
parent 5f4d87fd41
commit cfe0fd8004
20 changed files with 20 additions and 22 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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

View File

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

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,