summaryrefslogtreecommitdiff
path: root/index.h
diff options
context:
space:
mode:
Diffstat (limited to 'index.h')
-rw-r--r--index.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/index.h b/index.h
index 4b37534..e640514 100644
--- a/index.h
+++ b/index.h
@@ -3,7 +3,7 @@
#include <stdint.h>
-typedef struct index index;
+typedef struct index index_t;
struct index {
uint8_t type; /* Index type. (0 = Named index, 1 = Numbered index) */
@@ -11,12 +11,12 @@ struct index {
char *name; /* Named index. */
uint64_t num; /* Numbered index. */
};
- index *next; /* Next index. */
+ index_t *next; /* Next index. */
};
-extern int is_valid_index(index *idx);
-extern char *make_index_path(const char *root, index *idx, int path_type);
-extern char *index_to_str(index *idx);
-extern int index_path_exists(index *idx, const char *root, char **path);
+extern int is_valid_index(index_t *idx);
+extern char *make_index_path(const char *root, index_t *idx, int path_type);
+extern char *index_to_str(index_t *idx);
+extern int index_path_exists(index_t *idx, const char *root, char **path);
#endif