OSDN Git Service

Update comment for CDMA_SEND_SMS in ril.h
authorjohnwang <johnwang@google.com>
Fri, 11 Sep 2009 22:20:38 +0000 (15:20 -0700)
committerjohnwang <johnwang@google.com>
Fri, 11 Sep 2009 22:54:14 +0000 (15:54 -0700)
Update the comment of error class in CDMA_SEND_SMS to better document possible errors.

include/telephony/ril.h

index a2203cb..3b436cc 100644 (file)
@@ -2552,6 +2552,12 @@ typedef struct {
  *
  * "response" is a const RIL_SMS_Response *
  *
+ * Based on the return error, caller decides to resend if sending sms
+ * fails. The CDMA error class is derived as follows,
+ * SUCCESS is error class 0 (no error)
+ * SMS_SEND_FAIL_RETRY is error class 2 (temporary failure)
+ * and GENERIC_FAILURE is error class 3 (permanent and no retry)
+ *
  * Valid errors:
  *  SUCCESS
  *  RADIO_NOT_AVAILABLE