From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 2/4] include: Add method to list RATs to radio-settings
Date: Sun, 07 Dec 2014 22:24:55 -0600 [thread overview]
Message-ID: <54852817.5050501@gmail.com> (raw)
In-Reply-To: <1417797991-19700-3-git-send-email-alfonso.sanchez-beato@canonical.com>
[-- Attachment #1: Type: text/plain, Size: 2048 bytes --]
Hi Alfonso,
On 12/05/2014 10:46 AM, Alfonso Sanchez-Beato wrote:
> ---
> include/radio-settings.h | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/include/radio-settings.h b/include/radio-settings.h
> index 1d0ca3e..d7481b3 100644
> --- a/include/radio-settings.h
> +++ b/include/radio-settings.h
> @@ -35,6 +35,9 @@ enum ofono_radio_access_mode {
> OFONO_RADIO_ACCESS_MODE_LTE = 3,
> };
>
> +/* Set this to latest in ofono_radio_access_mode + 1 */
> +#define OFONO_RADIO_ACCESS_MODE_LAST (OFONO_RADIO_ACCESS_MODE_LTE + 1)
> +
I would actually change radio_access_mode into a bit field, that way the
available access modes can be passed as an unsigned integer.
e.g. something like:
OFONO_RADIO_ACCESS_MODE_ANY = 0,
OFONO_RADIO_ACCESS_MODE_GSM = 0x1,
OFONO_RADIO_ACCESS_MODE_UMTS = 0x2,
OFONO_RADIO_ACCESS_MODE_LTE = 0x4,
> enum ofono_radio_band_gsm {
> OFONO_RADIO_BAND_GSM_ANY,
> OFONO_RADIO_BAND_GSM_850,
> @@ -80,6 +83,11 @@ typedef void (*ofono_radio_settings_fast_dormancy_query_cb_t)(
> ofono_bool_t enable,
> void *data);
>
> +typedef void (*ofono_radio_settings_modem_rats_query_cb_t)(
> + const struct ofono_error *error,
> + const ofono_bool_t rats[],
> + void *data);
> +
Then this becomes:
typedef void (*ofono_radio_settings_available_rats_query_cb_t)(
const struct ofono_error *error,
unsigned int available_rats,
void *data);
> struct ofono_radio_settings_driver {
> const char *name;
> int (*probe)(struct ofono_radio_settings *rs, unsigned int vendor,
> @@ -107,6 +115,9 @@ struct ofono_radio_settings_driver {
> ofono_bool_t enable,
> ofono_radio_settings_fast_dormancy_set_cb_t,
> void *data);
> + void (*query_modem_rats)(struct ofono_radio_settings *rs,
> + ofono_radio_settings_modem_rats_query_cb_t cb,
> + void *data);
name this query_available_rats please.
> };
>
> int ofono_radio_settings_driver_register(
>
Regards,
-Denis
next prev parent reply other threads:[~2014-12-08 4:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-05 16:46 [PATCH 0/4] Add ModemTechnologies property to RadioSettings Alfonso Sanchez-Beato
2014-12-05 16:46 ` [PATCH 1/4] doc: Add ModemTechnologies property Alfonso Sanchez-Beato
2014-12-08 4:11 ` Denis Kenzior
2014-12-05 16:46 ` [PATCH 2/4] include: Add method to list RATs to radio-settings Alfonso Sanchez-Beato
2014-12-08 4:24 ` Denis Kenzior [this message]
2014-12-05 16:46 ` [PATCH 3/4] src: Implement RAT list property Alfonso Sanchez-Beato
2014-12-08 4:46 ` Denis Kenzior
2014-12-05 16:46 ` [PATCH 4/4] test: Add ModemTechnologies to list-modems Alfonso Sanchez-Beato
2014-12-08 4:47 ` Denis Kenzior
2014-12-08 4:51 ` [PATCH 0/4] Add ModemTechnologies property to RadioSettings Denis Kenzior
2014-12-09 12:34 ` Alfonso Sanchez-Beato
-- strict thread matches above, loose matches on Subject: below --
2014-12-09 12:34 [PATCH 0/4] Add AvailableTechnologies " Alfonso Sanchez-Beato
2014-12-09 12:34 ` [PATCH 2/4] include: Add method to list RATs to radio-settings Alfonso Sanchez-Beato
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=54852817.5050501@gmail.com \
--to=denkenz@gmail.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