X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=resource%2Fcsdk%2Fconnectivity%2Fapi%2Fcainterface.h;h=b6677660212c072e582547cb4effa3b86eba4ab5;hb=3c093548382bb2542c87a67e6e5fa32552c29cb3;hp=1c2bbfa9ce2e9b47acb1e96ad869d3d9825b5df5;hpb=fa393dc92a9ea0e8809d4474d54d916e845b2d0e;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/csdk/connectivity/api/cainterface.h b/resource/csdk/connectivity/api/cainterface.h index 1c2bbfa..b667766 100644 --- a/resource/csdk/connectivity/api/cainterface.h +++ b/resource/csdk/connectivity/api/cainterface.h @@ -68,8 +68,11 @@ typedef struct /** * Callback function to pass the connection information from CA to RI. * @param[out] object remote device information. + * @param[out] isConnected Whether keepalive message needs to be sent. + * @param[out] isClient Host Mode of Operation. */ -typedef void (*CAKeepAliveConnectionCallback)(const CAEndpoint_t *object, bool isConnected); +typedef void (*CAKeepAliveConnectionCallback)(const CAEndpoint_t *object, bool isConnected, + bool isClient); /** * Register connection status changes callback to process KeepAlive. @@ -82,10 +85,10 @@ void CARegisterKeepAliveHandler(CAKeepAliveConnectionCallback ConnHandler); * Initialize the connectivity abstraction module. * It will initialize adapters, thread pool and other modules based on the platform * compilation options. - * + * @param[in] transportType transport type to initialize. * @return ::CA_STATUS_OK or ::CA_STATUS_FAILED or ::CA_MEMORY_ALLOC_FAILED */ -CAResult_t CAInitialize(); +CAResult_t CAInitialize(CATransportAdapter_t transportType); /** * Terminate the connectivity abstraction module.