Exemple #1
0
/*
 *  a service attribute request.
 *
 *  INPUT :
 *
 *    uint32_t handle
 *      The handle of the service for which the attribute(s) are
 *      requested
 *
 *    sdp_attrreq_type_t reqtype
 *      Attribute identifiers are 16 bit unsigned integers specified
 *      in one of 2 ways described below :
 *      SDP_ATTR_REQ_INDIVIDUAL - 16bit individual identifiers
 *         They are the actual attribute identifiers in ascending order
 *
 *      SDP_ATTR_REQ_RANGE - 32bit identifier range
 *         The high-order 16bits is the start of range
 *         the low-order 16bits are the end of range
 *         0x0000 to 0xFFFF gets all attributes
 *
 *    sdp_list_t *attrid_list
 *      Singly linked list containing attribute identifiers desired.
 *      Every element is either a uint16_t(attrSpec = SDP_ATTR_REQ_INDIVIDUAL)
 *      or a uint32_t(attrSpec=SDP_ATTR_REQ_RANGE)
 *
 *  OUTPUT :
 *    int return value
 *      0
 *        The request completed successfully. This does not
 *        mean the requested services were found
 *      -1
 *        The request completed unsuccessfully due to a timeout
 */
        sdp_record_t *sdp_service_attr_req(sdp_session_t *session, uint32_t handle, sdp_attrreq_type_t reqtype, const sdp_list_t *attrid_list);
Exemple #2
0
        //..

        /*
         * a service search request.
         *
         *  INPUT :
         *
         *    sdp_list_t *search
         *      list containing elements of the search
         *      pattern. Each entry in the list is a UUID
         *      of the service to be searched
         *
         *    uint16_t max_rec_num
         *       An integer specifying the maximum number of
         *       entries that the client can handle in the response.
         *
         *  OUTPUT :
         *
         *    int return value
         *      0
         *        The request completed successfully. This does not
         *        mean the requested services were found
         *      -1
         *        The request completed unsuccessfully
         *
         *    sdp_list_t *rsp_list
         *      This variable is set on a successful return if there are
         *      non-zero service handles. It is a singly linked list of
         *      service record handles (uint16_t)
         */
        int sdp_service_search_req(sdp_session_t *session, const sdp_list_t *search, uint16_t max_rec_num, sdp_list_t **rsp_list);