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/target/register.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/target/register.h')
-rw-r--r-- | src/target/register.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/target/register.h b/src/target/register.h index e7904e58..3af81cad 100644 --- a/src/target/register.h +++ b/src/target/register.h @@ -62,7 +62,8 @@ typedef struct reg_arch_type_s struct reg_arch_type_s *next; } reg_arch_type_t; -reg_t* register_get_by_name(reg_cache_t *first, char *name, int search_all); +reg_t* register_get_by_name(reg_cache_t *first, + const char *name, bool search_all); reg_cache_t** register_get_last_cache_p(reg_cache_t **first); int register_reg_arch_type(int (*get)(reg_t *reg), |