From: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
To: ofono@ofono.org
Subject: Re: [PATCHv5 3/3] Mobile broadband provider info plugin
Date: Wed, 07 Sep 2011 15:38:58 +0300 [thread overview]
Message-ID: <4E6765E2.3020503@intel.com> (raw)
In-Reply-To: <4E5C9C95.1000105@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1876 bytes --]
Hello Denis,
On 08/30/2011 11:17 AM, Denis Kenzior wrote:
> The mobile-broadband-provider-info database would probably need to be
> extended with a fully-fledged SPN element to store this information.
> The current database is simply not setup this way. To give you an
> example, in Australia most providers have the SPN structured something
> like this:
> '<ProviderName> AU'
>
> So it is quite obvious why your logic above will fail ;)
>
> Other times the SPN name is a shortened / stylized name of the provider,
> e.g. Virgin Mobile -> Virgin
>
> The current<name> tag under the<provider> tag is really for the user's
> benefit.
If the provider name isn't sufficient to serve as the SPN, shall we add optional
SPN element on the same level?
<provider>
<name>...</name>
<spn>...</spn>
<network-id mcc="123" mnc="12"/>
<apn>...</apn>
</provider>
Can we drop this check until such SPN element can be upstreamed into the database?
>> For some tags, the parser calls body multiple times, first few times
>> supplying just '\n' and '\t's. Also, some tags have such a body that
>> DBG() has trouble to print without escaping. So, what's the method to
>> protect against the latter?
>
> This might be easier if you only run the parser on the bodies of the
> tags you really care about. e.g. this problem might just go away when
> you use g_markup_parse_context_push/pop.
This place in the parser is already run only on bodies we care about, i.e.
within mcc/mnc match. If the diagnostics on body is required, this problem won't
go away if we use g_markup_parse_context_push/pop. So, do we keep the escaping
or drop diagnostics of the element body? Or, propose a solution?
Regards,
Oleg
--
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki
Business Identity Code: 0357606 - 4
Domiciled in Helsinki
next prev parent reply other threads:[~2011-09-07 12:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-30 12:56 [PATCHv5 0/3] Mobile broadband provider info plugin Oleg Zhurakivskyy
2011-08-30 12:56 ` [PATCHv5 1/3] Mobile broadband provider info plugin makefile changes Oleg Zhurakivskyy
2011-08-30 12:56 ` [PATCHv5 2/3] Mobile broadband provider info plugin autoconf support Oleg Zhurakivskyy
2011-08-30 12:56 ` [PATCHv5 3/3] Mobile broadband provider info plugin Oleg Zhurakivskyy
2011-08-27 12:12 ` Denis Kenzior
2011-09-06 11:59 ` Oleg Zhurakivskyy
2011-08-30 8:17 ` Denis Kenzior
2011-09-07 12:38 ` Oleg Zhurakivskyy [this message]
2011-08-31 8:25 ` Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E6765E2.3020503@intel.com \
--to=oleg.zhurakivskyy@intel.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox