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:
Zachary T Welch
2009-11-10 04:27:15 -08:00
parent 9741e126fd
commit ca594adb5a
15 changed files with 22 additions and 20 deletions

View File

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