summaryrefslogtreecommitdiff
path: root/lib/test-pin.c
blob: 405d1e4f857568d0694e41eac43c7e01e09da3ed (plain)
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
#include "bluetooth-enums.h"
#include "pin.h"

int main (int argc, char **argv)
{
	guint max_digits;
	gboolean confirm;
	char *pin;

	g_setenv ("G_MESSAGES_DEBUG", "all", TRUE);

#if 0
	pin = get_pincode_for_device (BLUETOOTH_TYPE_KEYBOARD,
				      "00:13:6C:00:00:00",
				      "TomTom Remote",
				      &max_digits,
				      &confirm);
#endif
	pin = get_pincode_for_device (BLUETOOTH_TYPE_MOUSE,
				      "0C:77:1A:00:00:00",
				      "Some Apple mouse",
				      &max_digits,
				      &confirm);

	g_message ("pin: %s max digits: %d confirm: %d",
		   pin, max_digits, confirm);

	return 0;
}