All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 1/2] Add sim driver call for applications discovery.
Date: Thu, 13 Jan 2011 10:39:09 -0600	[thread overview]
Message-ID: <4D2F2AAD.8030208@gmail.com> (raw)
In-Reply-To: <1294834365-11029-1-git-send-email-andrew.zaborowski@intel.com>

[-- Attachment #1: Type: text/plain, Size: 1632 bytes --]

Hi Andrew,

On 01/12/2011 06:12 AM, Andrzej Zaborowski wrote:
> ---
>  include/sim.h |   11 +++++++++++
>  1 files changed, 11 insertions(+), 0 deletions(-)
> 
> diff --git a/include/sim.h b/include/sim.h
> index aab981c..e4176e3 100644
> --- a/include/sim.h
> +++ b/include/sim.h
> @@ -77,6 +77,12 @@ enum ofono_sim_state {
>  	OFONO_SIM_STATE_READY,
>  };
>  
> +struct ofono_sim_app_record {
> +	unsigned char aid[16];
> +	unsigned int aid_len;
> +	char *label;
> +};
> +
>  typedef void (*ofono_sim_file_info_cb_t)(const struct ofono_error *error,
>  					int filelength,
>  					enum ofono_sim_file_structure structure,
> @@ -114,6 +120,9 @@ typedef void (*ofono_sim_lock_unlock_cb_t)(const struct ofono_error *error,
>  typedef void (*ofono_sim_locked_cb_t)(const struct ofono_error *error,
>  					int locked, void *data);
>  
> +typedef void (*ofono_sim_apps_cb_t)(const struct ofono_error *error,
> +					GSList *apps, void *data);
> +

Please remember that we do not use G* types in the ofono public API.

>  typedef void (*ofono_sim_file_notify_t)(int id, void *userdata);
>  
>  struct ofono_sim_driver {
> @@ -159,6 +168,8 @@ struct ofono_sim_driver {
>  	void (*query_locked)(struct ofono_sim *sim,
>  			enum ofono_sim_password_type type,
>  			ofono_sim_locked_cb_t cb, void *data);
> +	void (*list_apps)(struct ofono_sim *sim, ofono_sim_apps_cb_t cb,
> +			void *data);
>  };

Do you think this belongs on a separate atom?  E.g. something like
Pekka's SimAuthentication ?

>  
>  int ofono_sim_driver_register(const struct ofono_sim_driver *d);

Regards,
-Denis

  parent reply	other threads:[~2011-01-13 16:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-12 12:12 [PATCH 1/2] Add sim driver call for applications discovery Andrzej Zaborowski
2011-01-12 12:12 ` [PATCH 2/2] atmodem: Use +CUAD to list SIM applications Andrzej Zaborowski
2011-01-13 16:39 ` Denis Kenzior [this message]
2011-01-17 14:42   ` [PATCH 1/2] Add sim driver call for applications discovery Pekka Pessi

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=4D2F2AAD.8030208@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.