#include "stdafx.h"
#include "parseOpts.h"
#include "xmlprint.h"
#include <winsock2.h>
#include <bthdef.h>
#include <Bthsdpdef.h>
#include <BluetoothAPIs.h>
#include <string.h>
Go to the source code of this file.
Functions | |
BOOL | CtrlHandler (DWORD fdwCtrlType) |
close program when CTRL-C pressed | |
void | help (void) |
Print helps. | |
int | main (int argc, char *argv[]) |
Program starts here. | |
void | printBTClass (int btclass, int xml) |
This function print out device's class. | |
void | printDevice (BLUETOOTH_DEVICE_INFO bdi, struct parseoptsOptionStruct myOpts) |
Print device's details. | |
void | printDeviceXML (BLUETOOTH_DEVICE_INFO bdi, struct parseoptsOptionStruct myOpts) |
Print device's details. | |
void | printError (char message[], int xml) |
Print error message. | |
Variables | |
xmlprintOutput * | output = NULL |
BOOL CtrlHandler | ( | DWORD | fdwCtrlType | ) |
close program when CTRL-C pressed
Detailed description. This function does stuff by making things.
fdwCtrlType | - interrupt, when something pressed from keyboard |
void help | ( | void | ) |
Print helps.
This function print help to the screen.
- | no params |
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Program starts here.
This fuction do almost everything
argc | - value of argv size | |
argv | - string array from command line |
void printBTClass | ( | int | btclass, | |
int | xml | |||
) |
This function print out device's class.
This print and parsing device's class in hexadecimal and string.
btclass | - Integer of bluetooth device's class | |
xml | - Tell is xml printing wanted or not |
void printDevice | ( | BLUETOOTH_DEVICE_INFO | bdi, | |
struct parseoptsOptionStruct | myOpts | |||
) |
Print device's details.
This function print device's details as wanted
bdi | - bluetooth device's info which includen all detais that is needed | |
myOpts | - command line parameters |
void printDeviceXML | ( | BLUETOOTH_DEVICE_INFO | bdi, | |
struct parseoptsOptionStruct | myOpts | |||
) |
Print device's details.
This function print device's details as wanted
bdi | - bluetooth device's info which includen all detais that is needed | |
myOpts | - command line parameters |
void printError | ( | char | message[], | |
int | xml | |||
) |
Print error message.
This function print error message n wanted style.
message | - error message as string | |
xml | - tells that is XML style wanted |
xmlprintOutput* output = NULL |