beautypg.com

Philips Bluetooth QuickStart Kit User Manual

Page 45

background image

Bluetooth QuickStart Kit Version 1.0 - User’s Guide

Page 45

Copyright 2004-2005 © Embedded Artists AB

#define m_get_query_string( pConn ) func( pConn )

Where

func

is a function with the following prototype:

tU8* func( tConnect* pConn )

Get the query string (e.g. "x=10&y=34") for a specific connection and request.

Parameters:

[in] pConn - control block for the connection.

Returns:

The query string or NULL if none available.

B.3.5 m_conn_isused

The macro

m_conn_isused

is defined as:

#define m_conn_isused( pConn ) func( pConn )

Where

func

is a function with the following prototype:

tU8* func( tConnect* pConn )

Check if a control block is in use or not.

Parameters:

[in] pConn - control block for the connection.

Returns:

TRUE if the connection is used; otherwise FALSE.

B.3.6 m_get_content_length

The macro

m_get_content_length

is defined as:

#define m_get_content_length( pConn ) func( pConn )

Where

func

is a function with the following prototype:

tU8* func( tConnect* pConn )

Get the content length header from a specific connection and request.

Parameters:

[in] pConn - control block for the connection.

Returns:

The content length or NULL inf none available.

B.3.7 m_get_egi_state

The macro

m_get_egi_state

is defined as:

#define m_get_egi_state( pConn ) func( pConn )

Where

func

is a function with the following prototype:

tU8* func( tConnect* pConn )

Get the egi state. This variable is not manipulated by the Web Server, but can be used to
implement a state machine in an EGI function.