Hi Andrzej,

> There are two cases:
>  * Get Inkey/Get Input, where the answer is actual text, in this case
> the dcs can be determined automatically,
>
>  * Send USSD where we're sending the "8.15 Text string" but the
> contents don't actually have to contain a string, it may be any data
> that the network sends us.  So to me it makes more sense to handle
> this using a separate structure like you did in your original patch,
> which contains len, dcs and contents.

Yes, I undestand for the Get Inkey/Get Input, dcs is determined
automatically. Currently, we are providing one function for building
each data object specificed in 3GPP specification. If we provide a new
structure, then we need to provide a new function for building the
text string data object. This will result in having 2
build_dataobj_text( existing one for handling Get Inkey and Get Input)
and build_dataobj_ussdtext(new one for handling the section 8.15),
which is deviating from the existing ones. If we extend the existing
structure and add generalised handling which is done now in this
patch, we won't be deviating from the existing things.

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

Reply via email to