diff --git a/ril/v1_4/IRil.idl b/ril/v1_4/IRil.idl index 6ee8b700439b4074e22ac344bc103e5bca041fec..0df7715ed7895f9e589f0733244250fb75382e49 100644 --- a/ril/v1_4/IRil.idl +++ b/ril/v1_4/IRil.idl @@ -162,5 +162,33 @@ interface IRil extends ohos.hdi.ril.v1_3.IRil { */ [oneway] ActivatePdpContextWithApnTypesforSlice([in] int slotId, [in] int serialId, [in] struct DataCallInfoWithApnTypesforSlice dataCallInfo); + + /** + * @brief Get the data service main card slot + * + * @param slotId Card slot ID. + * @param serialId Serial ID of a request. + * + * @return Returns 0 if the operation is successful. + * @return Returns a non-0 value if the operation fails. + * + * @since 6.0 + * @version 1.0 + */ + [oneway] GetPrimarySlot([in] int slotId, [in] int serialId); + + /** + * @brief Set the data service main card slot when the modem does not require a software power on/off. + * + * @param slotId Card slot ID. + * @param serialId Serial ID of a request. + * + * @return Returns 0 if the operation is successful. + * @return Returns a non-0 value if the operation fails. + * + * @since 6.0 + * @version 1.0 + */ + [oneway] SetPrimarySlot([in] int slotId, [in] int serialId); } /** @} */ diff --git a/ril/v1_4/IRilCallback.idl b/ril/v1_4/IRilCallback.idl index ae9f00fe8dd90d7e9fd21c2f5da9f5201fab1d1d..5ff6560adfdeda11bc518d7e9c1514e23993d0fe 100644 --- a/ril/v1_4/IRilCallback.idl +++ b/ril/v1_4/IRilCallback.idl @@ -107,5 +107,29 @@ import ohos.hdi.ril.v1_4.Types; */ [oneway] NetworkSliceEhplmnRpt([in] struct RilRadioResponseInfo responseInfo, [in] struct NetworkSliceEhplmnInfo networksliceEhplmnInfo); + + /** + * @brief Callback for the response of getting the data service main card slot + * + * @param responseInfo Common response information, such as the card slot ID and request sequence ID. + * For details, see {@link RilRadioResponseInfo}. + * @param primarySlotId. + * + * @since 6.0 + * @version 1.0 + */ + [oneway] GetPrimarySlotResponse([in] struct RilRadioResponseInfo responseInfo, [in] int primarySlotId); + + /** + * @brief Callback for the response of setting the data service main card slot when the modem does not require a + * software power on/off. + * + * @param responseInfo Common response information, such as the card slot ID and request sequence ID. + * For details, see {@link RilRadioResponseInfo}. + * + * @since 6.0 + * @version 1.0 + */ + [oneway] SetPrimarySlotResponse([in] struct RilRadioResponseInfo responseInfo); } /** @} */ \ No newline at end of file