Hi,

On 13 June 2010 11:43, Yang Gu <[email protected]> wrote:
> +enum stk_me_status {
> +       STK_ME_STATUS_IDLE =            0x00,
> +       STK_ME_STATUS_NOT_IDLE =        0x01
> +};
> +
>  /* For data object that only has a byte array with undetermined length */
>  struct stk_common_byte_array {
>        unsigned char *array;
> @@ -671,6 +676,18 @@ struct stk_timer_value {
>        unsigned char second;
>  };
>
> +/* Defined in TS 31.111 Section 8.46 */
> +struct stk_timing_advance {
> +       ofono_bool_t has_value;
> +       unsigned char status;

Why change the status to char here?  I think using an enum here is
nicer because it gives a hint to users about what values are expected
and the compiler can emit warnings if needed.

Regards
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to