summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-08-29 21:39:07 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-08-29 21:39:07 +0000
commit453a0cedb6c909047553ffc7145bcef26a3ae94c (patch)
tree2ba826158dcf2d3ac17708d9a1b7dcf9ffb4bd55 /include
parentc8e5a1464ff8edb068e7361a257ef4ae34674cf8 (diff)
Correct prototypes for async functions
Diffstat (limited to 'include')
-rw-r--r--include/sdp_lib.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/include/sdp_lib.h b/include/sdp_lib.h
index 64fe5b52..b1f839bc 100644
--- a/include/sdp_lib.h
+++ b/include/sdp_lib.h
@@ -111,13 +111,26 @@ int sdp_get_socket(const sdp_session_t *session);
uint16_t sdp_gen_tid(sdp_session_t *session);
+typedef enum {
+ /*
+ * Attributes are specified as individual elements
+ */
+ SDP_ATTR_REQ_INDIVIDUAL = 1,
+ /*
+ * Attributes are specified as a range
+ */
+ SDP_ATTR_REQ_RANGE
+} sdp_attrreq_type_t;
/*
* SDP transaction: functions for asynchronous search.
*/
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);
+int sdp_service_search_async(sdp_session_t *session, const sdp_list_t *search_list, 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);
/*
@@ -356,18 +369,6 @@ int sdp_service_search_req(sdp_session_t *session, const sdp_list_t *search_list
* -1
* The request completed unsuccessfully due to a timeout
*/
-
-typedef enum {
- /*
- * Attributes are specified as individual elements
- */
- SDP_ATTR_REQ_INDIVIDUAL = 1,
- /*
- * Attributes are specified as a range
- */
- SDP_ATTR_REQ_RANGE
-} sdp_attrreq_type_t;
-
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);
/*