~elementary-os/elementaryos/os-patch-gnome-bluetooth-bionic

« back to all changes in this revision

Viewing changes to lib/test-pin.c

  • Committer: RabbitBot
  • Date: 2018-02-05 12:57:34 UTC
  • Revision ID: rabbitbot@elementary.io-20180205125734-a49s78k7asb5pokc
Initial import, version 3.26.1-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "pin.c"
 
2
#include "bluetooth-enums.h"
 
3
 
 
4
int main (int argc, char **argv)
 
5
{
 
6
        guint max_digits;
 
7
        gboolean confirm;
 
8
        char *pin;
 
9
 
 
10
        g_setenv ("G_MESSAGES_DEBUG", "all", TRUE);
 
11
 
 
12
#if 0
 
13
        pin = get_pincode_for_device (BLUETOOTH_TYPE_KEYBOARD,
 
14
                                      "00:13:6C:00:00:00",
 
15
                                      "TomTom Remote",
 
16
                                      &max_digits,
 
17
                                      &confirm);
 
18
#endif
 
19
        pin = get_pincode_for_device (BLUETOOTH_TYPE_MOUSE,
 
20
                                      "0C:77:1A:00:00:00",
 
21
                                      "Some Apple mouse",
 
22
                                      &max_digits,
 
23
                                      &confirm);
 
24
 
 
25
        g_message ("pin: %s max digits: %d confirm: %d",
 
26
                   pin, max_digits, confirm);
 
27
 
 
28
        return 0;
 
29
}