Rename FunctionAttributes.h to Attributes.h, as some attributes are applicable to...
[pub/USBasp.git] / Demos / Host / Incomplete / BluetoothHost / Lib / ServiceDiscoveryProtocol.h
index ed528e9..b17cc2b 100644 (file)
                } SDP_PDUHeader_t;\r
                \r
        /* Function Prototypes: */\r
-               void ServiceDiscovery_ProcessPacket(void* Data, uint16_t Length, Bluetooth_Channel_t* Channel);\r
+               void ServiceDiscovery_ProcessPacket(void* Data, Bluetooth_Channel_t* Channel);\r
+\r
+               #if defined(INCLUDE_FROM_SERVICEDISCOVERYPROTOCOL_C)\r
+                       static void ServiceDiscovery_ProcessServiceSearch(SDP_PDUHeader_t* SDPHeader);\r
+                       static void ServiceDiscovery_ProcessServiceAttribute(SDP_PDUHeader_t* SDPHeader);\r
+                       static void ServiceDiscovery_ProcessServiceSearchAttribute(SDP_PDUHeader_t* SDPHeader);\r
+                       \r
+                       static inline uint16_t ServiceDiscovery_Read16BitParameter(void* AttributeHeader)\r
+                       {\r
+                               return *((uint16_t*)AttributeHeader++);\r
+                       }\r
+\r
+                       static uint32_t ServiceDiscovery_GetDataElementSize(void* AttributeHeader);\r
+               #endif\r
 \r
 #endif\r