scanner.h File Reference

#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

xmlprintOutputoutput = NULL


Function Documentation

BOOL CtrlHandler ( DWORD  fdwCtrlType  ) 

close program when CTRL-C pressed

Detailed description. This function does stuff by making things.

Parameters:
fdwCtrlType - interrupt, when something pressed from keyboard
Returns:
- zero if everything went right

void help ( void   ) 

Print helps.

This function print help to the screen.

Parameters:
- no params
Returns:
- no returns

int main ( int  argc,
char *  argv[] 
)

Program starts here.

This fuction do almost everything

Parameters:
argc - value of argv size
argv - string array from command line
Returns:
Functions returns the result of doing things and stuff to the parameter or ERROR if function fails.

void printBTClass ( int  btclass,
int  xml 
)

This function print out device's class.

This print and parsing device's class in hexadecimal and string.

Parameters:
btclass - Integer of bluetooth device's class
xml - Tell is xml printing wanted or not
Returns:
nothing

void printDevice ( BLUETOOTH_DEVICE_INFO  bdi,
struct parseoptsOptionStruct  myOpts 
)

Print device's details.

This function print device's details as wanted

Parameters:
bdi - bluetooth device's info which includen all detais that is needed
myOpts - command line parameters
Returns:
- no returns

void printDeviceXML ( BLUETOOTH_DEVICE_INFO  bdi,
struct parseoptsOptionStruct  myOpts 
)

Print device's details.

This function print device's details as wanted

Parameters:
bdi - bluetooth device's info which includen all detais that is needed
myOpts - command line parameters
Returns:
- no returns

void printError ( char  message[],
int  xml 
)

Print error message.

This function print error message n wanted style.

Parameters:
message - error message as string
xml - tells that is XML style wanted
Returns:
- no returns


Variable Documentation

xmlprintOutput* output = NULL

Definition at line 88 of file scanner.h.

footer


 SourceForge.net Logo