]> git.proxmox.com Git - libgit2.git/blobdiff - src/git/common.h
Redesigned the walking/object lookup interface
[libgit2.git] / src / git / common.h
index 19c6a202cea3421fb72f7e4c4eb90fa35c391554..b43f4ee018bbacc80a510082ca100b6b47970454 100644 (file)
 /** Consult the OS error information. */
 #define GIT_EOSERR (GIT_ERROR - 4)
 
+/** The specified object is of invalid type */
+#define GIT_EOBJTYPE (GIT_ERROR - 5)
+
+/** The specified object has its data corrupted */
+#define GIT_EOBJCORRUPTED (GIT_ERROR - 6)
+
 GIT_BEGIN_DECL
 
-/** A revision traversal pool. */
-typedef struct git_revpool git_revpool;
+/** 
+ * Representation of an existing git repository,
+ * including all its object contents 
+ */
+typedef struct git_repository git_repository;
+
+/* Representation of a generic object in a repository */
+typedef struct git_repository_object git_repository_object;
+
+/** Parsed representation of a person */
+typedef struct git_person {
+       char name[64]; /**< Full name */
+       char email[64]; /**< Email address */
+       time_t time; /**< Time when this person commited the change */
+} git_person;
 
 /** @} */
 GIT_END_DECL