summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2011-07-11 04:19:46 -0700
committerVicent Martí <tanoku@gmail.com>2011-07-11 04:19:46 -0700
commit9b6fccc9ba6107870daa4ac71db06e83e2a3f6cc (patch)
tree5583ced82a45bb148b8416d8dc81e4f0fdb91695 /src
parent283eeefb0988f2981c846773e715b7e67a559b39 (diff)
parentf6e4a98a957a1246afce3e5226ee37a50da78b9a (diff)
downloadlibgit2-9b6fccc9ba6107870daa4ac71db06e83e2a3f6cc.tar.gz
Merge pull request #315 from belkiss/development
Finish to hide git_pkt from external API.
Diffstat (limited to 'src')
-rw-r--r--src/pkt.h8
1 files changed, 4 insertions, 4 deletions
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);