summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlisses Furquim <ulissesf@gmail.com>2006-08-30 22:44:49 +0000
committerUlisses Furquim <ulissesf@gmail.com>2006-08-30 22:44:49 +0000
commit41064d605ba2f88f967c8388c9b20b92a7868a87 (patch)
tree255fadeb77e70277fe22f5daf3ac226fb5da079b
parente9527af7533e35a59580cda37ff58152cb356103 (diff)
downloadbluez-41064d605ba2f88f967c8388c9b20b92a7868a87.tar.gz
fix prototypes for sdp sync/async functions
-rw-r--r--include/sdp_lib.h11
-rw-r--r--src/sdp.c12
2 files changed, 11 insertions, 12 deletions
diff --git a/include/sdp_lib.h b/include/sdp_lib.h
index b1f839bc1..d61413c37 100644
--- a/include/sdp_lib.h
+++ b/include/sdp_lib.h
@@ -127,10 +127,9 @@ typedef enum {
typedef void sdp_callback_t(uint8_t type, uint16_t status, uint8_t *rsp, size_t size, void *udata);
sdp_session_t *sdp_create(int sk, uint32_t flags);
int sdp_set_notify(sdp_session_t *session, sdp_callback_t *func, void *udata);
-int sdp_service_search_async(sdp_session_t *session, const sdp_list_t *search_list, uint16_t max_rec_num);
+int sdp_service_search_async(sdp_session_t *session, const sdp_list_t *search, uint16_t max_rec_num);
int sdp_service_attr_async(sdp_session_t *session, uint32_t handle, sdp_attrreq_type_t reqtype, const sdp_list_t *attrid_list);
int sdp_service_search_attr_async(sdp_session_t *session, const sdp_list_t *search, sdp_attrreq_type_t reqtype, const sdp_list_t *attrid_list);
-int sdp_service_search_attr_async(sdp_session_t *session, const sdp_list_t *search_list, sdp_attrreq_type_t reqtype, const sdp_list_t *attrid_list);
int sdp_process(sdp_session_t *session);
/*
@@ -311,7 +310,7 @@ void sdp_set_url_attr(sdp_record_t *rec, const char *clientExecURL, const char *
*
* INPUT :
*
- * sdp_list_t *search_list
+ * 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
@@ -334,7 +333,7 @@ void sdp_set_url_attr(sdp_record_t *rec, const char *clientExecURL, const char *
* 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_list, uint16_t max_rec_num, sdp_list_t **rsp_list);
+int sdp_service_search_req(sdp_session_t *session, const sdp_list_t *search, uint16_t max_rec_num, sdp_list_t **rsp_list);
/*
* a service attribute request.
@@ -378,7 +377,7 @@ sdp_record_t *sdp_service_attr_req(sdp_session_t *session, uint32_t handle, sdp_
*
* INPUT :
*
- * sdp_list_t *search_list
+ * sdp_list_t *search
* Singly linked list containing elements of the search
* pattern. Each entry in the list is a UUID(DataTypeSDP_UUID16)
* of the service to be searched
@@ -412,7 +411,7 @@ sdp_record_t *sdp_service_attr_req(sdp_session_t *session, uint32_t handle, sdp_
* service(s) found. Each element of this list is of type
* sdp_record_t *.
*/
-int sdp_service_search_attr_req(sdp_session_t *session, const sdp_list_t *search_list, sdp_attrreq_type_t reqtype, const sdp_list_t *attrid_list, sdp_list_t **rsp_list);
+int sdp_service_search_attr_req(sdp_session_t *session, const sdp_list_t *search, sdp_attrreq_type_t reqtype, const sdp_list_t *attrid_list, sdp_list_t **rsp_list);
/*
* Allocate/free a service record and its attributes
diff --git a/src/sdp.c b/src/sdp.c
index c10737a5d..362dcfb19 100644
--- a/src/sdp.c
+++ b/src/sdp.c
@@ -2735,7 +2735,7 @@ static int copy_cstate(uint8_t *pdata, const sdp_cstate_t *cstate)
*
* INPUT :
*
- * sdp_list_t *search_list
+ * sdp_list_t *search
* Singly linked list containing elements of the search
* pattern. Each entry in the list is a UUID (DataTypeSDP_UUID16)
* of the service to be searched
@@ -3127,7 +3127,7 @@ int sdp_set_notify(sdp_session_t *session, sdp_callback_t *func, void *udata)
* sdp_session_t *session
* Current sdp session to be handled
*
- * sdp_list_t *search_list
+ * sdp_list_t *search
* Singly linked list containing elements of the search
* pattern. Each entry in the list is a UUID (DataTypeSDP_UUID16)
* of the service to be searched
@@ -3144,7 +3144,7 @@ int sdp_set_notify(sdp_session_t *session, sdp_callback_t *func, void *udata)
* -1 - On any failure and sets errno
*/
-int sdp_service_search_async(sdp_session_t *session, const sdp_list_t *search_list, uint16_t max_rec_num)
+int sdp_service_search_async(sdp_session_t *session, const sdp_list_t *search, uint16_t max_rec_num)
{
struct sdp_transaction *t;
sdp_pdu_hdr_t *reqhdr;
@@ -3175,7 +3175,7 @@ int sdp_service_search_async(sdp_session_t *session, const sdp_list_t *search_li
t->reqsize = sizeof(sdp_pdu_hdr_t);
// add service class IDs for search
- seqlen = gen_searchseq_pdu(pdata, search_list);
+ seqlen = gen_searchseq_pdu(pdata, search);
SDPDBG("Data seq added : %d\n", seqlen);
@@ -3357,7 +3357,7 @@ end:
* 0 - if the request has been sent properly
* -1 - On any failure
*/
-int sdp_service_search_attr_async(sdp_session_t *session, const sdp_list_t *search_list, sdp_attrreq_type_t reqtype, const sdp_list_t *attrid_list)
+int sdp_service_search_attr_async(sdp_session_t *session, const sdp_list_t *search, sdp_attrreq_type_t reqtype, const sdp_list_t *attrid_list)
{
struct sdp_transaction *t;
sdp_pdu_hdr_t *reqhdr;
@@ -3388,7 +3388,7 @@ int sdp_service_search_attr_async(sdp_session_t *session, const sdp_list_t *sear
t->reqsize = sizeof(sdp_pdu_hdr_t);
// add service class IDs for search
- seqlen = gen_searchseq_pdu(pdata, search_list);
+ seqlen = gen_searchseq_pdu(pdata, search);
SDPDBG("Data seq added : %d\n", seqlen);