Junio C Hamano | 47a5918 | 2013-07-08 13:56:53 -0700 | [diff] [blame] | 1 | #ifndef CONNECT_H |
| 2 | #define CONNECT_H |
| 3 | |
| 4 | #define CONNECT_VERBOSE (1u << 0) |
Torsten Bögershausen | 5610b7c | 2013-11-28 20:49:17 +0100 | [diff] [blame] | 5 | #define CONNECT_DIAG_URL (1u << 1) |
Eric Wong | c915f11 | 2016-02-03 04:09:14 +0000 | [diff] [blame] | 6 | #define CONNECT_IPV4 (1u << 2) |
| 7 | #define CONNECT_IPV6 (1u << 3) |
Junio C Hamano | 47a5918 | 2013-07-08 13:56:53 -0700 | [diff] [blame] | 8 | extern struct child_process *git_connect(int fd[2], const char *url, const char *prog, int flags); |
| 9 | extern int finish_connect(struct child_process *conn); |
| 10 | extern int git_connection_is_socket(struct child_process *conn); |
| 11 | extern int server_supports(const char *feature); |
| 12 | extern int parse_feature_request(const char *features, const char *feature); |
| 13 | extern const char *server_feature_value(const char *feature, int *len_ret); |
Torsten Bögershausen | c59ab2e | 2013-11-28 20:50:03 +0100 | [diff] [blame] | 14 | extern int url_is_local_not_ssh(const char *url); |
Junio C Hamano | 47a5918 | 2013-07-08 13:56:53 -0700 | [diff] [blame] | 15 | |
| 16 | #endif |