26 GString* bcastmacaddress;
28 GUPnPServiceInfo* sproxy;
29 GUPnPServiceInfo* sproxy_i;
32 GList* xdevlist= NULL;
33 GMainContext *main_context;
34 GUPnPControlPoint *cp_bgw,*cp;
36 #define ACCOUNTID_SIZE 30
37 char accountId[ACCOUNTID_SIZE];
40 GUPnPContext *context,*upnpContextDeviceProtect;
41 gboolean discovery_interval_configuration(guint seconds,guint loss_detection_window);
42 static char certFile[24],keyFile[24];
43 static GMainLoop *main_loop;
44 #define MAC_ADDR_SIZE 18
45 #define IPv4_ADDR_SIZE 16
46 #define IPv6_ADDR_SIZE 128
47 #define BOOL unsigned char
48 BOOL getAccountId(
char *outValue);
50 char Ipv4[IPv4_ADDR_SIZE];
51 char Ipv6[IPv6_ADDR_SIZE];
52 char mac[MAC_ADDR_SIZE];
55 unsigned int sleep_seconds=0;
59 unsigned int discovery_interval;
60 unsigned int loss_detection_window;
66 int idm_server_start(
char*interface,
char * mac);
68 void free_server_memory();