Commit f6e4a98a by Lambert CLARA

Finish to hide git_pkt from external API.

parent 283eeefb
...@@ -185,12 +185,6 @@ typedef int (*git_transport_cb)(git_transport **transport); ...@@ -185,12 +185,6 @@ typedef int (*git_transport_cb)(git_transport **transport);
typedef struct git_remote_head git_remote_head; typedef struct git_remote_head git_remote_head;
typedef struct git_headarray git_headarray; 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 GIT_END_DECL
......
...@@ -37,9 +37,9 @@ enum git_pkt_type { ...@@ -37,9 +37,9 @@ enum git_pkt_type {
}; };
/* This would be a flush pkt */ /* This would be a flush pkt */
struct git_pkt { typedef struct {
enum git_pkt_type type; enum git_pkt_type type;
}; } git_pkt;
struct git_pkt_cmd { struct git_pkt_cmd {
enum git_pkt_type type; enum git_pkt_type type;
...@@ -49,11 +49,11 @@ struct git_pkt_cmd { ...@@ -49,11 +49,11 @@ struct git_pkt_cmd {
}; };
/* This is a pkt-line with some info in it */ /* This is a pkt-line with some info in it */
struct git_pkt_ref { typedef struct {
enum git_pkt_type type; enum git_pkt_type type;
git_remote_head head; git_remote_head head;
char *capabilities; 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_parse_line(git_pkt **head, const char *line, const char **out, size_t len);
int git_pkt_send_flush(int s); int git_pkt_send_flush(int s);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment