};
-char *protolayer_protocol_names[PROTOLAYER_PROTOCOL_COUNT] = {
+const char *protolayer_protocol_names[PROTOLAYER_PROTOCOL_COUNT] = {
[PROTOLAYER_NULL] = "(null)",
#define XX(cid) [PROTOLAYER_##cid] = #cid,
PROTOLAYER_PROTOCOL_MAP(XX)
};
/** Human-readable names for protocol layer groups. */
-char *protolayer_grp_names[PROTOLAYER_GRP_COUNT] = {
+const char *protolayer_grp_names[PROTOLAYER_GRP_COUNT] = {
[PROTOLAYER_GRP_NULL] = "(null)",
#define XX(cid, vid, name, alpn) [PROTOLAYER_GRP_##cid] = name,
PROTOLAYER_GRP_MAP(XX)
};
/** Human-readable names for events. */
-char *protolayer_event_names[PROTOLAYER_EVENT_COUNT] = {
+const char *protolayer_event_names[PROTOLAYER_EVENT_COUNT] = {
[PROTOLAYER_EVENT_NULL] = "(null)",
#define XX(cid) [PROTOLAYER_EVENT_##cid] = #cid,
PROTOLAYER_EVENT_MAP(XX)
};
/** Human-readable names for payloads. */
-char *protolayer_payload_names[PROTOLAYER_PAYLOAD_COUNT] = {
+const char *protolayer_payload_names[PROTOLAYER_PAYLOAD_COUNT] = {
[PROTOLAYER_PAYLOAD_NULL] = "(null)",
#define XX(cid, name) [PROTOLAYER_PAYLOAD_##cid] = name,
PROTOLAYER_PAYLOAD_MAP(XX)
/** Maps protocol layer type IDs to string names.
* E.g. PROTOLAYER_HTTP has name 'HTTP'. */
-extern char *protolayer_protocol_names[];
+extern const char *protolayer_protocol_names[];
/** Protocol layer groups. Each of these represents a sequence of layers in the
* unwrap direction (wrap direction being the opposite). The sequence dictates
/** Maps protocol layer group IDs to human-readable descriptions.
* E.g. PROTOLAYER_GRP_DOH has description 'DNS-over-HTTPS'. */
-extern char *protolayer_grp_names[];
+extern const char *protolayer_grp_names[];
/** Flow control indicators for protocol layer `wrap` and `unwrap` callbacks.
* Use via `protolayer_continue`, `protolayer_break`, and `protolayer_push`
PROTOLAYER_EVENT_COUNT
};
-extern char *protolayer_event_names[];
+extern const char *protolayer_event_names[];
/** Payload types.
PROTOLAYER_PAYLOAD_COUNT
};
-extern char *protolayer_payload_names[];
+extern const char *protolayer_payload_names[];
/** Data processed by the sequence of layers. All pointed-to memory is always
* owned by its creator. It is also the layer (group) implementor's