diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-10 04:27:15 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-11 11:53:22 -0800 |
commit | ca594adb5a71f2bf60c1380172b8e61b075d9479 (patch) | |
tree | c4702f927f5991c0075479259e0562db1c941cc4 /src/pld/pld.h | |
parent | 9741e126fd854815460296ad47d027129c7f17bf (diff) |
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.
Diffstat (limited to 'src/pld/pld.h')
-rw-r--r-- | src/pld/pld.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pld/pld.h b/src/pld/pld.h index c6d3c924..3db4bad0 100644 --- a/src/pld/pld.h +++ b/src/pld/pld.h @@ -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 |