summaryrefslogtreecommitdiff
path: root/main.h
diff options
context:
space:
mode:
authorAnsa89 <ansalonistefano@gmail.com>2016-05-02 10:53:59 +0200
committerAnsa89 <ansalonistefano@gmail.com>2016-05-02 12:21:51 +0200
commit91d9ad27d4a7ca77c615bcf9d928f11b9d3b3c77 (patch)
tree983f439fe74e33e873a7325b68e5e3d6fd1cf630 /main.h
parentec84ddcf7ae148117fc0c5edb82d02eb98ee9db3 (diff)
Fix some warnings
Diffstat (limited to 'main.h')
-rw-r--r--main.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/main.h b/main.h
index 41a7995..a2ae751 100644
--- a/main.h
+++ b/main.h
@@ -51,7 +51,7 @@ typedef struct tunnel_t {
51 /* Connection ID, must be int because of uthash */ 51 /* Connection ID, must be int because of uthash */
52 int connid; 52 int connid;
53 /* Friend number of remote end */ 53 /* Friend number of remote end */
54 int32_t friendnumber; 54 uint32_t friendnumber;
55 55
56 UT_hash_handle hh; 56 UT_hash_handle hh;
57} tunnel; 57} tunnel;
@@ -81,7 +81,7 @@ extern int client_local_port_mode;
81/* Forward stdin/stdout to remote machine - SSH ProxyCommand mode */ 81/* Forward stdin/stdout to remote machine - SSH ProxyCommand mode */
82extern int client_pipe_mode; 82extern int client_pipe_mode;
83/* Remote Tox ID in client mode */ 83/* Remote Tox ID in client mode */
84extern char *remote_tox_id; 84extern uint8_t *remote_tox_id;
85/* Ports and hostname for port forwarding */ 85/* Ports and hostname for port forwarding */
86extern int remote_port; 86extern int remote_port;
87extern char *remote_host; 87extern char *remote_host;
@@ -97,5 +97,9 @@ void parse_lossless_packet(Tox *tox, uint32_t friendnumber, const uint8_t *data,
97tunnel *tunnel_create(int sockfd, int connid, uint32_t friendnumber); 97tunnel *tunnel_create(int sockfd, int connid, uint32_t friendnumber);
98void tunnel_delete(tunnel *t); 98void tunnel_delete(tunnel *t);
99 99
100void update_select_nfds(int fd);
101int send_frame(protocol_frame *frame, uint8_t *data);
102int send_tunnel_request_packet(char *remote_host, int remote_port, int friend_number);
103
100void print_version(void); 104void print_version(void);
101#endif 105#endif