From bde336ea51df071de922827ae322df7b01b059ce Mon Sep 17 00:00:00 2001 From: Ben Straub Date: Thu, 29 Nov 2012 12:26:09 -0800 Subject: Add version fields and init macros for public input structs. --- include/git2/config.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/git2/config.h') diff --git a/include/git2/config.h b/include/git2/config.h index af4d54044..4855babec 100644 --- a/include/git2/config.h +++ b/include/git2/config.h @@ -49,6 +49,7 @@ typedef int (*git_config_foreach_cb)(const git_config_entry *, void *); * access a configuration file */ struct git_config_backend { + unsigned int version; struct git_config *cfg; /* Open means open the file/database and parse if necessary */ @@ -62,6 +63,8 @@ struct git_config_backend { int (*refresh)(struct git_config_backend *); void (*free)(struct git_config_backend *); }; +#define GIT_CONFIG_BACKEND_VERSION 1 +#define GIT_CONFIG_BACKEND_INIT {GIT_CONFIG_BACKEND_VERSION, 0} typedef enum { GIT_CVAR_FALSE = 0, -- cgit v1.2.1