*/
extern struct jtag_interface *jtag_interface;
-const char *jtag_only[] = { "jtag", NULL };
+const char * const jtag_only[] = { "jtag", NULL };
static int jim_adapter_name(Jim_Interp *interp, int argc, Jim_Obj * const *argv)
{
#define DEBUG_CAP_TMS_SEQ (1 << 0)
/** transports supported in C code (NULL terminated vector) */
- const char **transports;
+ const char * const *transports;
const struct swd_driver *swd;
int (*srst_asserted)(int *srst_asserted);
};
-extern const char *jtag_only[];
+extern const char * const jtag_only[];
void adapter_assert_reset(void);
void adapter_deassert_reset(void);
* currently selected debug adapter supports. This is declared
* by the time that adapter is fully set up.
*/
-static const char **allowed_transports;
+static const char * const *allowed_transports;
/** * The transport being used for the current OpenOCD session. */
static struct transport *session;
* to declare the set of transports supported by an adapter. When
* there is only one member of that set, it is automatically selected.
*/
-int allow_transports(struct command_context *ctx, const char **vector)
+int allow_transports(struct command_context *ctx, const char * const *vector)
{
/* NOTE: caller is required to provide only a list
* of *valid* transport names
LOG_ERROR("session's transport is not selected.");
/* no session transport configured, print transports then fail */
- const char **vector = allowed_transports;
+ const char * const *vector = allowed_transports;
while (*vector) {
LOG_ERROR("allow transport '%s'", *vector);
vector++;
COMMAND_HELPER(transport_list_parse, char ***vector);
-int allow_transports(struct command_context *ctx, const char **vector);
+int allow_transports(struct command_context *ctx, const char * const *vector);
bool transports_are_declared(void);