Merge pull request #341 from carlosmn/development Fixup network headers
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
diff --git a/include/git2/net.h b/include/git2/net.h
index 18dd2df..164f0ac 100644
--- a/include/git2/net.h
+++ b/include/git2/net.h
@@ -29,6 +29,14 @@
#include "oid.h"
#include "types.h"
+/**
+ * @file git2/net.h
+ * @brief Git networking declarations
+ * @ingroup Git
+ * @{
+ */
+GIT_BEGIN_DECL
+
#define GIT_DEFAULT_PORT "9418"
/*
@@ -41,14 +49,6 @@
#define GIT_DIR_PUSH 1
/**
- * @file git2/net.h
- * @brief Git networking declarations
- * @ingroup Git
- * @{
- */
-GIT_BEGIN_DECL
-
-/**
* Remote head description, given out on `ls` calls.
*/
struct git_remote_head {
@@ -64,6 +64,6 @@ struct git_headarray {
struct git_remote_head **heads;
};
+/** @} */
GIT_END_DECL
-
#endif
diff --git a/include/git2/remote.h b/include/git2/remote.h
index 7775070..723ff8f 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -28,6 +28,14 @@
#include "git2/common.h"
#include "git2/repository.h"
#include "git2/refspec.h"
+/**
+ * @file git2/remote.h
+ * @brief Git remote management functions
+ * @defgroup git_remote remote management functions
+ * @ingroup Git
+ * @{
+ */
+GIT_BEGIN_DECL
/*
* TODO: This functions still need to be implemented:
@@ -117,6 +125,6 @@ GIT_EXTERN(int) git_remote_ls(git_remote *remote, git_headarray *refs);
*/
GIT_EXTERN(void) git_remote_free(struct git_remote *remote);
+/** @} */
GIT_END_DECL
-
#endif