summaryrefslogtreecommitdiff
path: root/main.h
diff options
context:
space:
mode:
authorGDR! <gdr@gdr.name>2016-12-07 15:37:06 +0100
committerGDR! <gdr@gdr.name>2016-12-07 15:37:06 +0100
commit798e20be9d3b51d3fe1e2112c218ddf6ea02e497 (patch)
treea75c4a0a48874b8776aa2afce65d600aae3353f8 /main.h
parentb3b0e345a94830a186168a4ecd53e0259a00b0c0 (diff)
parentdb012b1311c5ca46d5784376ad0c05b5c241f817 (diff)
No warnings in -wall
Diffstat (limited to 'main.h')
-rw-r--r--main.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/main.h b/main.h
index fdffa11..106525f 100644
--- a/main.h
+++ b/main.h
@@ -52,13 +52,13 @@ typedef struct tunnel_t {
52 /* Connection ID, must be int because of uthash */ 52 /* Connection ID, must be int because of uthash */
53 int connid; 53 int connid;
54 /* Friend number of remote end */ 54 /* Friend number of remote end */
55 int32_t friendnumber; 55 uint32_t friendnumber;
56 56
57 UT_hash_handle hh; 57 UT_hash_handle hh;
58} tunnel; 58} tunnel;
59 59
60typedef struct allowed_toxid { 60typedef struct allowed_toxid {
61 char toxid[TOX_ADDRESS_SIZE]; 61 uint8_t toxid[TOX_ADDRESS_SIZE];
62 struct allowed_toxid *next; 62 struct allowed_toxid *next;
63} allowed_toxid; 63} allowed_toxid;
64 64
@@ -94,7 +94,7 @@ extern int client_local_port_mode;
94/* Forward stdin/stdout to remote machine - SSH ProxyCommand mode */ 94/* Forward stdin/stdout to remote machine - SSH ProxyCommand mode */
95extern int client_pipe_mode; 95extern int client_pipe_mode;
96/* Remote Tox ID in client mode */ 96/* Remote Tox ID in client mode */
97extern char *remote_tox_id; 97extern uint8_t *remote_tox_id;
98/* Ports and hostname for port forwarding */ 98/* Ports and hostname for port forwarding */
99extern int remote_port; 99extern int remote_port;
100extern char *remote_host; 100extern char *remote_host;
@@ -113,5 +113,9 @@ void update_select_nfds(int fd);
113int send_frame(protocol_frame *frame, uint8_t *data); 113int send_frame(protocol_frame *frame, uint8_t *data);
114int send_tunnel_request_packet(char *remote_host, int remote_port, int friend_number); 114int send_tunnel_request_packet(char *remote_host, int remote_port, int friend_number);
115 115
116void update_select_nfds(int fd);
117int send_frame(protocol_frame *frame, uint8_t *data);
118int send_tunnel_request_packet(char *remote_host, int remote_port, int friend_number);
119
116void print_version(void); 120void print_version(void);
117#endif 121#endif