All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 4/8] Add skeleton of src/emulator.c
Date: Fri, 16 Apr 2010 15:17:17 -0500	[thread overview]
Message-ID: <201004161517.17861.denkenz@gmail.com> (raw)
In-Reply-To: <1271168299-4862-5-git-send-email-zhenhua.zhang@intel.com>

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

Hi Zhenhua,

> ---
>  Makefile.am        |    7 +-
>  include/dbus.h     |    1 +
>  include/emulator.h |   75 +++++++++++++++++++
>  src/emulator.c     |  203
>  ++++++++++++++++++++++++++++++++++++++++++++++++++++ src/ofono.h        
| 
>    4 +
>  5 files changed, 287 insertions(+), 3 deletions(-)
>  create mode 100644 include/emulator.h
>  create mode 100644 src/emulator.c
> 

I suggest we handle this one a bit differently.  Let us create an Emulator atom 
that has no driver (similar to how MessageWaiting atom works).  Then have each 
interested atom declare an atom watch on the Emulator atom.  When one is 
created, let the atom get notified and register any AT command handlers it 
wishes.  If the atom itself goes away, it needs to de-register at commands 
from all relevant emulators.

Potentially there might be several emulators at once in the system (e.g. one 
for DUN, one for HFP, one for SPP, etc)

Regards,
-Denis

      parent reply	other threads:[~2010-04-16 20:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-13 14:18 [PATCH 0/8] Prototype to integrate gatserver with oFono Zhenhua Zhang
2010-04-13 14:18 ` [PATCH 1/8] Add signal watches for atom Zhenhua Zhang
2010-04-13 14:18   ` [PATCH 2/8] Refactor netreg watchlist with atom watchlist Zhenhua Zhang
2010-04-13 14:18     ` [PATCH 3/8] Refactor sim " Zhenhua Zhang
2010-04-13 14:18       ` [PATCH 4/8] Add skeleton of src/emulator.c Zhenhua Zhang
2010-04-13 14:18         ` [PATCH 5/8] Add emulator dialing call support Zhenhua Zhang
2010-04-13 14:18           ` [PATCH 6/8] Add prototype to watch voicecall Zhenhua Zhang
2010-04-13 14:18             ` [PATCH 7/8] Add atemulator plugin Zhenhua Zhang
2010-04-13 14:18               ` [PATCH 8/8] Add emulator interface for phonesim Zhenhua Zhang
2010-04-16 20:17         ` Denis Kenzior [this message]

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=201004161517.17861.denkenz@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.