forked from auracaster/openocd
add const keyword to some APIs
Add 'const' keyword to 'char *' parameters to allow command handlers to pass constant string arguments. These changes allow the 'args' command handler to be changed to 'const' in a subsequent patch.
This commit is contained in:
@@ -29,7 +29,7 @@ typedef struct pld_driver_s
|
||||
char *name;
|
||||
int (*register_commands)(struct command_context_s *cmd_ctx);
|
||||
int (*pld_device_command)(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc, struct pld_device_s *pld_device);
|
||||
int (*load)(struct pld_device_s *pld_device, char *filename);
|
||||
int (*load)(struct pld_device_s *pld_device, const char *filename);
|
||||
} pld_driver_t;
|
||||
|
||||
typedef struct pld_device_s
|
||||
|
||||
Reference in New Issue
Block a user