Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLambert CLARA <lambert.clara@yahoo.fr>2011-07-11 15:04:36 +0400
committerLambert CLARA <lambert.clara@yahoo.fr>2011-07-11 15:05:13 +0400
commitf6e4a98a957a1246afce3e5226ee37a50da78b9a (patch)
tree5583ced82a45bb148b8416d8dc81e4f0fdb91695
parent283eeefb0988f2981c846773e715b7e67a559b39 (diff)
Finish to hide git_pkt from external API.
-rw-r--r--include/git2/types.h6
-rw-r--r--src/pkt.h8
2 files changed, 4 insertions, 10 deletions
diff --git a/include/git2/types.h b/include/git2/types.h
index 256393e72..9d14c3e2f 100644
--- a/include/git2/types.h
+++ b/include/git2/types.h
@@ -185,12 +185,6 @@ typedef int (*git_transport_cb)(git_transport **transport);
typedef struct git_remote_head git_remote_head;
typedef struct git_headarray git_headarray;
-/* Several types of packets */
-typedef enum git_pkt_type git_pkt_type;
-typedef struct git_pkt git_pkt;
-typedef struct git_pkt_cmd git_pkt_cmd;
-typedef struct git_pkt_ref git_pkt_ref;
-
/** @} */
GIT_END_DECL
diff --git a/src/pkt.h b/src/pkt.h
index 28cad7c5e..6dc5486cd 100644
--- a/src/pkt.h
+++ b/src/pkt.h
@@ -37,9 +37,9 @@ enum git_pkt_type {
};
/* This would be a flush pkt */
-struct git_pkt {
+typedef struct {
enum git_pkt_type type;
-};
+} git_pkt;
struct git_pkt_cmd {
enum git_pkt_type type;
@@ -49,11 +49,11 @@ struct git_pkt_cmd {
};
/* This is a pkt-line with some info in it */
-struct git_pkt_ref {
+typedef struct {
enum git_pkt_type type;
git_remote_head head;
char *capabilities;
-};
+} git_pkt_ref;
int git_pkt_parse_line(git_pkt **head, const char *line, const char **out, size_t len);
int git_pkt_send_flush(int s);