jsbindings/jscontroller-jsbindings.cpp
/**
 * @brief Callback invoked from JS to get the session id property
 *
 * @param[in] context JS execution context
 * @param[in] thisObject JSObject to search for the property
 * @param[in] propertyName JSString containing the name of the property to get
 * @param[out] exception pointer to a JSValueRef in which to return an exception, if any
 *
 * @retval property's value if object has the property, otherwise NULL
 */


@retval property's value if object has the property, otherwise NULL
@retval property ' s value if object has the property otherwise NULL
static JSValueRef AAMPJSC_getProperty_aampSessionID(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef* exception)
{
	LOG("[AAMP_JSController] %s() \n", __FUNCTION__);
	AAMP_JSController *aampObj = (AAMP_JSController *) JSObjectGetPrivate(thisObject);
	if (aampObj == NULL)
	{
		return JSValueMakeUndefined(context);
	}
	if (aampObj->_aampSessionID == 0)
	{
		return JSValueMakeUndefined(context);
	}
	return JSValueMakeNumber(context, aampObj->_aampSessionID);
}
static JSValueRef AAMPJSC_getProperty_aampSessionID ( JSContextRef context , JSObjectRef thisObject , JSStringRef propertyName , JSValueRef * exception ) { LOG ( " \n " , __FUNCTION__ ) ; AAMP_JSController * aampObj = ( AAMP_JSController * ) JSObjectGetPrivate ( thisObject ) ; if ( aampObj == NULL ) { return JSValueMakeUndefined ( context ) ; } if ( aampObj -> _aampSessionID == 0 ) { return JSValueMakeUndefined ( context ) ; } return JSValueMakeNumber ( context , aampObj -> _aampSessionID ) ; }
@brief Callback invoked from JS to get the session id property
 @param[in] context JS execution context
 @param[in] thisObject JSObject to search for the property
 @param[in] propertyName JSString containing the name of the property to get
 @param[out] exception pointer to a JSValueRef in which to return an exception, if any
@brief Callback invoked from JS to get the session id property @param [ in ] context JS execution context @param [ in ] thisObject JSObject to search for the property @param [ in ] propertyName JSString containing the name of the property to get @param [ out ] exception pointer to a JSValueRef in which to return an exception if any