From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 1/4] voicecall: create generic dial function
Date: Tue, 17 May 2011 23:46:25 -0500 [thread overview]
Message-ID: <4DD34F21.1000101@gmail.com> (raw)
In-Reply-To: <1305211258-8189-2-git-send-email-frederic.danis@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 924 bytes --]
Hi Frédéric,
On 05/12/2011 09:40 AM, Frédéric Danis wrote:
> split manager_dial between generic and dbus parts
> ---
> src/voicecall.c | 106 +++++++++++++++++++++++++++++++++++++++++--------------
> 1 files changed, 79 insertions(+), 27 deletions(-)
>
> diff --git a/src/voicecall.c b/src/voicecall.c
> index d46f463..037caac 100644
> --- a/src/voicecall.c
> +++ b/src/voicecall.c
> @@ -42,6 +42,17 @@
>
> #define VOICECALL_FLAG_SIM_ECC_READY 0x1
>
> +enum dial_error {
> + DIAL_NO_ERROR,
> + DIAL_TOO_MANY_CALLS,
> + DIAL_INVALID_PHONE,
> + DIAL_NO_NETWORK,
> + DIAL_NOT_SUPPORTED,
> + DIAL_INCOMING,
> + DIAL_BUSY,
> + DIAL_ACTIVE
> +};
> +
Lets try to re-use errno.h for this.
e.g. NO_ERROR -> 0
TOO_MANY_CALLS -> -EPERM
INVALID_PHONE -> -EINVAL
NO_NETWORK -> -ENETDOWN
NOT_SUPPORTED -> -ENOTSUP
INCOMING, BUSY, ACTIVE -> -EBUSY or -EPERM
Regards,
-Denis
next prev parent reply other threads:[~2011-05-18 4:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-12 14:40 [PATCH 0/4] Add dial support for HFP emulator =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2011-05-12 14:40 ` [PATCH 1/4] voicecall: create generic dial function =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2011-05-18 4:46 ` Denis Kenzior [this message]
2011-05-12 14:40 ` [PATCH 2/4] voicecall: add ATD support for HFP emulator =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2011-05-18 4:53 ` Denis Kenzior
2011-05-18 15:33 ` Frederic Danis
2011-05-18 16:13 ` Denis Kenzior
2011-05-19 16:16 ` Frederic Danis
2011-05-19 16:39 ` Denis Kenzior
2011-05-12 14:40 ` [PATCH 3/4] voicecall: save last dialed number =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2011-05-12 14:40 ` [PATCH 4/4] voicecall: add +BLDN support for HFP emulator =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
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=4DD34F21.1000101@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