diff options
author | Russell Belfer <rb@github.com> | 2013-05-24 10:35:58 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-05-24 10:35:58 -0700 |
commit | 16adc9fade52b49e2bc13cb52407cc0025a93c8b (patch) | |
tree | 4e4e46a8d370237a766e9edd5a277520c4f43aef /include/git2/sys/config.h | |
parent | 2e62e7c23ce69d89d495a2c42458c7e185a3120a (diff) | |
download | libgit2-16adc9fade52b49e2bc13cb52407cc0025a93c8b.tar.gz |
Typedef git_config_level_t and use it everywhere
The GIT_CONFIG_LEVEL constants actually work well as an enum
because they are mutually exclusive, so this adds a typedef to
the enum and uses that everywhere that one of these constants are
expected, instead of the old code that typically used an unsigned
int.
Diffstat (limited to 'include/git2/sys/config.h')
-rw-r--r-- | include/git2/sys/config.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/git2/sys/config.h b/include/git2/sys/config.h index 1c9deba7c..11e59cf03 100644 --- a/include/git2/sys/config.h +++ b/include/git2/sys/config.h @@ -29,7 +29,7 @@ struct git_config_backend { struct git_config *cfg; /* Open means open the file/database and parse if necessary */ - int (*open)(struct git_config_backend *, unsigned int level); + int (*open)(struct git_config_backend *, git_config_level_t level); int (*get)(const struct git_config_backend *, const char *key, const git_config_entry **entry); int (*get_multivar)(struct git_config_backend *, const char *key, const char *regexp, git_config_foreach_cb callback, void *payload); int (*set)(struct git_config_backend *, const char *key, const char *value); @@ -63,7 +63,7 @@ struct git_config_backend { GIT_EXTERN(int) git_config_add_backend( git_config *cfg, git_config_backend *file, - unsigned int level, + git_config_level_t level, int force); /** @} */ |