summaryrefslogtreecommitdiffstats
path: root/friendfinder/receiver.h
blob: ae3f6e471f32ff5eb68f2d8686cb81beaa8757ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef __GUI_H_
#define __GUI_H_

struct position
{
	char *nick;
	char *lat;
	char *lon;
};

struct sender
{
	char *nick;
	char *lat;
	char *lon;

	int is_init;
	int lat_set;
	int lon_set;

	char* lat_first;
	char* lat_second;
	char* lon_first;
	char* lon_second;

	int lat_first_set;
	int lat_second_set;
	int lon_first_set;
	int lon_second_set;
};

/* calls main for receiver */
void receiver_main(void *user);

/* sets the ip of irc-server, to whom the receiver will connect */
void receiver_set_ip(char *_ip);

void set_sender_count(int number);

void disconnect_receiver();
#endif