Re: [PATCH v2 6/8] sdpd: Remove 'register' and 'remove' requests
From: Marcel Holtmann <marcel@holtmann.org>
Date: 2013-09-21 17:25:18
Hi Szymon,
quoted hunk ↗ jump to hunk
sdpd is now controlled by adapters and should not be modified with other means. --- src/sdpd-request.c | 14 -------- src/sdpd-service.c | 100 ----------------------------------------------------- src/sdpd.h | 2 -- 3 files changed, 116 deletions(-)diff --git a/src/sdpd-request.c b/src/sdpd-request.c index fbeb488..5b88a10 100644 --- a/src/sdpd-request.c +++ b/src/sdpd-request.c@@ -997,13 +997,6 @@ static void process_request(sdp_req_t *req)rsphdr->pdu_id = SDP_SVC_SEARCH_ATTR_RSP; break; /* Following requests are allowed only for local connections */ - case SDP_SVC_REGISTER_REQ: - SDPDBG("Service register request"); - if (req->local) { - status = service_register_req(req, &rsp); - rsphdr->pdu_id = SDP_SVC_REGISTER_RSP; - } - break; case SDP_SVC_UPDATE_REQ: SDPDBG("Service update request"); if (req->local) {@@ -1011,13 +1004,6 @@ static void process_request(sdp_req_t *req)rsphdr->pdu_id = SDP_SVC_UPDATE_RSP; } break; - case SDP_SVC_REMOVE_REQ: - SDPDBG("Service removal request"); - if (req->local) { - status = service_remove_req(req, &rsp); - rsphdr->pdu_id = SDP_SVC_REMOVE_RSP; - } - break;
we can not take these out. We need a way to pass qualification. Regards Marcel