diff options
Diffstat (limited to 'stack/dun/dun_int.h')
-rw-r--r-- | stack/dun/dun_int.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/stack/dun/dun_int.h b/stack/dun/dun_int.h new file mode 100644 index 0000000..1e23bdc --- /dev/null +++ b/stack/dun/dun_int.h @@ -0,0 +1,63 @@ +/***************************************************************************** +** +** Name: dun_int.h +** +** File: dun/fax type definitions +** +** Copyright (c) 2002-2004, WIDCOMM Inc., All Rights Reserved. +** WIDCOMM Bluetooth Core. Proprietary and confidential. +** +*****************************************************************************/ +#ifndef DUN_INT_H +#define DUN_INT_H + +#include "dun_api.h" +#include "sdp_api.h" + +/***************************************************************************** +** Constants +*****************************************************************************/ + +/***************************************************************************** +** DUN Control Blocks +******************************************************************************/ +/***************************************************************************** +** Type definitions +*****************************************************************************/ +/* Control block used by DUN_FindService(). */ +typedef struct +{ + tDUN_FIND_CBACK *p_cback; /* pointer to application callback */ + tSDP_DISCOVERY_DB *p_db; /* pointer to discovery database */ + UINT16 service_uuid; /* service UUID of search */ +} tDUN_FIND_CB; + +typedef struct +{ + tDUN_FIND_CB find_cb; + UINT8 trace_level; +} tDUN_CB; + +/***************************************************************************** +** External Definitions +*****************************************************************************/ +#ifdef __cplusplus +extern "C" +{ +#endif +/* +** Define prototypes for global data +*/ +#if DUN_DYNAMIC_MEMORY == FALSE +DUN_API extern tDUN_CB dun_cb; +#else +DUN_API extern tDUN_CB *dun_cb_ptr; +#define dun_cb (*dun_cb_ptr) +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* DUN_INT_H */ + |