]> git.proxmox.com Git - libgit2.git/commitdiff
Move git_cvar_type to include/git2/config.h
authorCarlos Martín Nieto <cmn@elego.de>
Tue, 29 Mar 2011 15:35:02 +0000 (17:35 +0200)
committerCarlos Martín Nieto <cmn@elego.de>
Tue, 29 Mar 2011 15:35:02 +0000 (17:35 +0200)
Include it in src/config.h and fix the header name #define.

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
include/git2/types.h
src/config.h

index aa53909d2e43e1f72ac264b2181c34f80ac17b97..269c482492910bcb554d39bc776328b586ecb62d 100644 (file)
@@ -153,6 +153,13 @@ typedef enum {
        GIT_REF_HAS_PEEL = 8,
 } git_rtype;
 
+/** Config variable type */
+typedef enum {
+       GIT_VAR_INT,  /** Stores an integer value */
+       GIT_VAR_BOOL, /** Stores a boolean value */
+       GIT_VAR_STR   /** Stores a string */
+} git_cvar_type;
+
 /** @} */
 GIT_END_DECL
 
index 2aa9ec8045ada5572f89741cebeeadb2f514fa38..3b9da524175bc2b544361191380bc523f5790d5d 100644 (file)
@@ -1,5 +1,7 @@
-#ifndef INCLUDE_tag_h__
-#define INCLUDE_tag_h__
+#ifndef INCLUDE_config_h__
+#define INCLUDE_config_h__
+
+#include "git2/config.h"
 
 struct git_config {
        char *file_path;
@@ -14,12 +16,6 @@ struct git_config {
        git_hashtable *vars;
 };
 
-typedef enum {
-       GIT_VAR_INT,
-       GIT_VAR_BOOL,
-       GIT_VAR_STR
-} git_cvar_type;
-
 struct git_cvar {
        git_cvar_type type;
        char *name;