GNOME Bugzilla – Bug 611219
Make lib/test-plugins accept address and UUIDs on the command line
Last modified: 2010-07-27 13:53:03 UTC
Created attachment 154786 [details] [review] Read Bluetooth address and UUIDs from command line With this patch, Bluetooth device address and UUIDs must be passed on the command line instead of being written in the source before compiling.
Review of attachment 154786 [details] [review]: I would probably want examples of UUIDs in the help output, otherwise I'm going to be struggling ;)
Review of attachment 154786 [details] [review]: ::: lib/test-plugins.c @@ +36,3 @@ + if (argc > 2) { + bdaddr = argv[1]; + uuids = &argv[2]; And if we were doing a proper application, we'd probably be using GOption for parsing instead of this ad-hoc code.
Created attachment 164081 [details] [review] Use gtk_init_with_args() and show list of UUIDs on request Good points, expecially remembering the UUIDs convinced me ;-) I changed command line argument parsing to use gtk_init_with_args() and I added a list of alfanumeric UUIDs copied from lib/bluetooth-client.c