mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Added tox_ to 2 typedefs.
This commit is contained in:
parent
658bfab41e
commit
0f77a2d131
|
@ -41,14 +41,14 @@ typedef union {
|
|||
uint8_t c[4];
|
||||
uint16_t s[2];
|
||||
uint32_t i;
|
||||
} IP;
|
||||
} tox_IP;
|
||||
|
||||
typedef struct {
|
||||
IP ip;
|
||||
tox_IP ip;
|
||||
uint16_t port;
|
||||
/* not used for anything right now */
|
||||
uint16_t padding;
|
||||
} IP_Port;
|
||||
} tox_IP_Port;
|
||||
|
||||
/* status definitions */
|
||||
enum {
|
||||
|
@ -252,7 +252,7 @@ void tox_callback_connectionstatus(Tox *tox, void (*function)(Tox *tox, int, uin
|
|||
|
||||
/* Use this function to bootstrap the client
|
||||
Sends a get nodes request to the given node with ip port and public_key */
|
||||
void tox_bootstrap(Tox *tox, IP_Port ip_port, uint8_t *public_key);
|
||||
void tox_bootstrap(Tox *tox, tox_IP_Port ip_port, uint8_t *public_key);
|
||||
|
||||
/* returns 0 if we are not connected to the DHT
|
||||
returns 1 if we are */
|
||||
|
|
|
@ -511,7 +511,7 @@ int main(int argc, char *argv[])
|
|||
new_lines(idstring);
|
||||
strcpy(line, "");
|
||||
|
||||
IP_Port bootstrap_ip_port;
|
||||
tox_IP_Port bootstrap_ip_port;
|
||||
bootstrap_ip_port.port = htons(atoi(argv[2]));
|
||||
int resolved_address = resolve_addr(argv[1]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user