#include "parseOpts.h"#include <stdio.h>#include <winsock2.h>#include <bthdef.h>#include <Bthsdpdef.h>#include <BluetoothAPIs.h>#include <Ws2bth.h>#include "common_util.h"#include "xmlprint.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[]) |
| Main. | |
| void | printChannel (char addressAsString[], DWORD addressSize, int xml) |
| Print channel numbers. | |
| void | printChannelXML (char addressAsString[], DWORD addressSize) |
| Print channel numbers. | |
| void | printDevice (char addressAsString[1000], WSAQUERYSET *pretvalueStruct, int xml) |
| Print device's address and name. | |
| void | printERROR (char message[], int xml) |
| Print error message. | |
| void | printServiceName (char service[], int xml) |
| Print service name without strange marks. | |
| void | printServiceNameXML (char service[]) |
| Print service name without strange marks. | |
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 parameters |
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Main.
Program starts here.
| argc | - number of command line argumets | |
| argv | - array of commandline arguments as string |
| void printChannel | ( | char | addressAsString[], | |
| DWORD | addressSize, | |||
| int | xml | |||
| ) |
Print channel numbers.
This function parse address string and print channel number to the screen.
| addressAsString | - String array where is channel number | |
| addressSize | - Size of array, that we don't go over area | |
| xml | - tells that is xml style wanted |
| void printChannelXML | ( | char | addressAsString[], | |
| DWORD | addressSize | |||
| ) |
Print channel numbers.
This function parse address string and print channel number to the XML output.
| addressAsString | - String array where is channel number | |
| addressSize | - Size of array, that we don't go over area |
| void printDevice | ( | char | addressAsString[1000], | |
| WSAQUERYSET * | pretvalueStruct, | |||
| int | xml | |||
| ) |
Print device's address and name.
This function parse address string and print channel number to the screen.
| addressAsString | - String array where is channel number | |
| *pretvalueStruct | - pointer to the struct where is service's name | |
| xml | - tells that is xml style wanted |
| void printERROR | ( | char | message[], | |
| int | xml | |||
| ) |
Print error message.
This prints given error message in XML style or not.
| message | - error message | |
| xml | - tells that is xml style wanted |
| void printServiceName | ( | char | service[], | |
| int | xml | |||
| ) |
Print service name without strange marks.
This function parse address string and print channel number to the screen.
| service | - include service as string | |
| xml | - tells that is xml style wanted |
| void printServiceNameXML | ( | char | service[] | ) |
Print service name without strange marks.
This function parse address string and print channel number to the screen.
| service | - String array where is channel number |
| xmlprintOutput* output = NULL |