* [PATCH v3] gatserver: ATS6 command handler added
@ 2011-01-17 11:18 Olivier Guiter
2011-01-18 15:11 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: Olivier Guiter @ 2011-01-17 11:18 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1751 bytes --]
Use integer to be compliant with existing function prototypes.
---
gatchat/gatserver.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c
index 11eaac6..be9f79a 100644
--- a/gatchat/gatserver.c
+++ b/gatchat/gatserver.c
@@ -83,6 +83,7 @@ struct v250_settings {
char s3; /* set by S3=<val> */
char s4; /* set by S4=<val> */
char s5; /* set by S5=<val> */
+ int s6; /* set by S6=<val> */
gboolean echo; /* set by E<val> */
gboolean quiet; /* set by Q<val> */
gboolean is_v1; /* set by V<val>, v0 or v1 */
@@ -412,6 +413,13 @@ static void at_x_cb(GAtServerRequestType type, GAtResult *result,
"X", 0, 4, 4);
}
+static void at_s6_cb(GAtServerRequestType type, GAtResult *result,
+ gpointer user_data)
+{
+ GAtServer *server = user_data;
+ at_template_cb(type, result, server, &server->v250.s6, "S6", 0, 1, 1);
+}
+
static void at_c109_cb(GAtServerRequestType type, GAtResult *result,
gpointer user_data)
{
@@ -1031,6 +1039,7 @@ static void v250_settings_create(struct v250_settings *v250)
v250->s3 = '\r';
v250->s4 = '\n';
v250->s5 = '\b';
+ v250->s6 = 2;
v250->echo = TRUE;
v250->quiet = FALSE;
v250->is_v1 = TRUE;
@@ -1058,6 +1067,7 @@ static void basic_command_register(GAtServer *server)
g_at_server_register(server, "Q", at_q_cb, server, NULL);
g_at_server_register(server, "V", at_v_cb, server, NULL);
g_at_server_register(server, "X", at_x_cb, server, NULL);
+ g_at_server_register(server, "S6", at_s6_cb, server, NULL);
g_at_server_register(server, "&C", at_c109_cb, server, NULL);
g_at_server_register(server, "&D", at_c108_cb, server, NULL);
}
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v3] gatserver: ATS6 command handler added
2011-01-17 11:18 [PATCH v3] gatserver: ATS6 command handler added Olivier Guiter
@ 2011-01-18 15:11 ` Marcel Holtmann
0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2011-01-18 15:11 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 451 bytes --]
Hi Olivier,
> Use integer to be compliant with existing function prototypes.
patch has been applied, but I did remove this comment from the commit
message. If you see it within git log it made no sense and was only
relevant for the review.
> ---
So such a comment for review belongs between --- and the diffstat.
> gatchat/gatserver.c | 10 ++++++++++
> 1 files changed, 10 insertions(+), 0 deletions(-)
Regards
Marcel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-18 15:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-17 11:18 [PATCH v3] gatserver: ATS6 command handler added Olivier Guiter
2011-01-18 15:11 ` Marcel Holtmann
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.