BT_BIN = gnunet-helper-transport-bluetooth
BT_PLUGIN_LA = libgnunet_plugin_transport_bluetooth.la
BT_PLUGIN_TEST = test_plugin_bluetooth
- BT_API_TEST = test_transport_api_bluetooth
- BT_REL_TEST = test_transport_api_reliability_bluetooth
- BT_UREL_TEST = test_transport_api_unreliability_bluetooth
- BT_QUOTA_TEST = test_quota_compliance_bluetooth \
- test_quota_compliance_bluetooth_asymmetric
endif
endif
UINT8 mac[MAC_ADDR_SIZE];
};
- // {31191E56-FA7E-4517-870E-71B86BBCC52F}
+ /**
+ * The UUID used for the SDP service.
+ * {31191E56-FA7E-4517-870E-71B86BBCC52F}
+ */
#define GNUNET_BLUETOOTH_SDP_UUID \
{ \
0x31, 0x19, 0x1E, 0x56, \
print_last_error()
{
LPVOID lpMsgBuf = NULL;
- FormatMessage (FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
- NULL, GetLastError(), 0, (LPTSTR) &lpMsgBuf, 0, NULL);
- fprintf (stderr, "%s\n", (char *)lpMsgBuf) ;
- //FIXME : it crashes
- // if (lpMsgBuf)
- // free (lpMsgBuf);
+
+ if (FormatMessage (FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
+ NULL, GetLastError(), 0, (LPTSTR) &lpMsgBuf, 0, NULL))
+ fprintf (stderr, "%s\n", (char *)lpMsgBuf);
+ else
+ fprintf (stderr, "Failed to format the message for the last error! Error number : %d\n", GetLastError());
}
/**