sdptool.h File Reference

#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

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 parameters
Returns:
- no returns

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

Main.

Program starts here.

Parameters:
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.

Parameters:
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
Returns:
- no returns

void printChannelXML ( char  addressAsString[],
DWORD  addressSize 
)

Print channel numbers.

This function parse address string and print channel number to the XML output.

Parameters:
addressAsString - String array where is channel number
addressSize - Size of array, that we don't go over area
Returns:
- no returns

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.

Parameters:
addressAsString - String array where is channel number
*pretvalueStruct - pointer to the struct where is service's name
xml - tells that is xml style wanted
Returns:
- no returns

void printERROR ( char  message[],
int  xml 
)

Print error message.

This prints given error message in XML style or not.

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

void printServiceName ( char  service[],
int  xml 
)

Print service name without strange marks.

This function parse address string and print channel number to the screen.

Parameters:
service - include service as string
xml - tells that is xml style wanted
Returns:
- no returns

void printServiceNameXML ( char  service[]  ) 

Print service name without strange marks.

This function parse address string and print channel number to the screen.

Parameters:
service - String array where is channel number
Returns:
- no returns


Variable Documentation

xmlprintOutput* output = NULL

Definition at line 89 of file sdptool.h.

footer


 SourceForge.net Logo