X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Fcsdk%2Fconnectivity%2Fcommon%2Finc%2Fcaremotehandler.h;fp=resource%2Fcsdk%2Fconnectivity%2Finc%2Fcaremotehandler.h;h=c578a8973ccf66b3443c58a1a4de17a799efdb72;hb=8c01dff2c5bc5496f7dc1632c498943ec6ecb015;hp=002a6c500586997dc9bcca15542d1ed74328a1b2;hpb=935fdb9b67b6c10d007e652e9e2e028fd6ccfe09;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/csdk/connectivity/inc/caremotehandler.h b/resource/csdk/connectivity/common/inc/caremotehandler.h similarity index 66% rename from resource/csdk/connectivity/inc/caremotehandler.h rename to resource/csdk/connectivity/common/inc/caremotehandler.h index 002a6c5..c578a89 100644 --- a/resource/csdk/connectivity/inc/caremotehandler.h +++ b/resource/csdk/connectivity/common/inc/caremotehandler.h @@ -39,34 +39,24 @@ extern "C" * @param endpoint [IN] endpoint information where the data has to be sent * @return remote endpoint created */ -CARemoteEndpoint_t *CACloneRemoteEndpoint(const CARemoteEndpoint_t *endpoint); +CAEndpoint_t *CACloneEndpoint(const CAEndpoint_t *endpoint); /** - * @brief Creates a new remote endpoint from the input uri - * @param uri [IN] absolute uri information to create remote endpoint - * @param transportType [IN] transport type of the endpoint - * @return remote endpoint created - */ -CARemoteEndpoint_t *CACreateRemoteEndpointUriInternal(const CAURI_t uri, - const CATransportType_t transportType); - -/** - * @brief Creates a new remote endpoint from the input and other information - * @param resourceUri [IN] absolute uri information to create remote endpoint - * @param addr [IN] address of the endpoint - * @param type [IN] transport type of the endpoint - * @return remote endpoint created + * @brief Allocate CAEndpoint_t instance. + * @param flags [IN] Transport flag + * @param adapter [IN] Adapter type + * @param address [IN] Address + * @param port [IN] Port + * @return #CA_STATUS_OK or Appropriate error code */ -CARemoteEndpoint_t *CACreateRemoteEndpointInternal(const CAURI_t resourceUri, - const CAAddress_t addr, - const CATransportType_t type); - +CAEndpoint_t *CACreateEndpointObject(CATransportFlags_t flags, CATransportAdapter_t adapter, + const char *address, uint16_t port); /** * @brief Destroy remote endpoint * @param endpoint [IN] endpoint information where the data has to be sent * @return none */ -void CADestroyRemoteEndpointInternal(CARemoteEndpoint_t *rep); +void CAFreeEndpoint(CAEndpoint_t *rep); /** * @brief Creates a new request information