X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Fcsdk%2Fconnectivity%2Finc%2Fcamessagehandler.h;h=3f2fa6c9d6884c9e09a8d0020206880b6fbb3ce3;hb=390866079e285d2c74918432c0d597d5da52f8a0;hp=c84836c0567f8a07e50324881c2eb96e87e369d0;hpb=3e9402ad71cb3e93266a77796f44d17bab9853fd;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/csdk/connectivity/inc/camessagehandler.h b/resource/csdk/connectivity/inc/camessagehandler.h index c84836c..3f2fa6c 100644 --- a/resource/csdk/connectivity/inc/camessagehandler.h +++ b/resource/csdk/connectivity/inc/camessagehandler.h @@ -61,44 +61,15 @@ extern "C" #endif /** - * Detaches control from the caller for sending unicast request. + * Detaches control from the caller for sending message. * @param[in] endpoint endpoint information where the data has to be sent. - * @param[in] request request that needs to be sent. + * @param[in] sendMsg message that needs to be sent. + * @param[in] dataType type of the message(request/response). * @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h). */ -CAResult_t CADetachRequestMessage(const CAEndpoint_t *endpoint, - const CARequestInfo_t *request); - -/** - * Detaches control from the caller for sending multicast request. - * @param[in] object Group endpoint information where the data has to be sent. - * @param[in] request request that needs to be sent. - * @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h). - */ -CAResult_t CADetachRequestToAllMessage(const CAEndpoint_t *object, - const CARequestInfo_t *request); - -/** - * Detaches control from the caller for sending response. - * @param[in] endpoint endpoint information where the data has to be sent. - * @param[in] response response that needs to be sent. - * @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h). - */ -CAResult_t CADetachResponseMessage(const CAEndpoint_t *endpoint, - const CAResponseInfo_t *response); - -/** - * Detaches control from the caller for sending request. - * @param[in] resourceUri resource uri that needs to be sent in the request. - * @param[in] token token information of the request. - * @param[in] tokenLength length of the token. - * @param[in] options header options that need to be append in the request. - * @param[in] numOptions number of options be appended. - * @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h). - */ -CAResult_t CADetachMessageResourceUri(const CAURI_t resourceUri, const CAToken_t token, - uint8_t tokenLength, const CAHeaderOption_t *options, - uint8_t numOptions); +CAResult_t CADetachSendMessage(const CAEndpoint_t *endpoint, + const void *sendMsg, + CADataType_t dataType); /** * Setting the request and response callbacks for network packets. @@ -127,6 +98,12 @@ void CATerminateMessageHandler(); void CAHandleRequestResponseCallbacks(); /** + * Setting the Callback funtion for network state change callback. + * @param[in] nwMonitorHandler callback for network state change. + */ +void CASetNetworkMonitorCallback(CANetworkMonitorCallback nwMonitorHandler); + +/** * To log the PDU data. * @param[in] pdu pdu data. * @param[in] endpoint endpoint