* [PATCH] coding-style: Add exception to M12 rule for external enums
@ 2010-11-17 7:09 Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2010-11-17 7:09 ` [PATCH] todo: Add Location Service (AGPS) task Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Sjur =?unknown-8bit?q?Br=C3=A6ndeland?= @ 2010-11-17 7:09 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 656 bytes --]
From: Sjur Brændeland <sjur.brandeland@stericsson.com>
---
doc/coding-style.txt | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/doc/coding-style.txt b/doc/coding-style.txt
index 6fa355e..fb43891 100644
--- a/doc/coding-style.txt
+++ b/doc/coding-style.txt
@@ -205,6 +205,10 @@ default: // wrong
break;
}
+However if the enum comes from an external header file outside ofono
+we cannot make any assumption of how the enum is defined and this
+rule might not apply.
+
O1: Shorten the name
====================
Better to use abbreviation, rather than full name, to name a variable,
--
1.7.0.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH] todo: Add Location Service (AGPS) task.
2010-11-17 7:09 [PATCH] coding-style: Add exception to M12 rule for external enums Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
@ 2010-11-17 7:09 ` Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2010-11-17 14:29 ` Denis Kenzior
2010-11-17 7:09 ` [PATCH] stemodem: Change use of types Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2010-11-17 14:28 ` [PATCH] coding-style: Add exception to M12 rule for external enums Denis Kenzior
2 siblings, 1 reply; 5+ messages in thread
From: Sjur =?unknown-8bit?q?Br=C3=A6ndeland?= @ 2010-11-17 7:09 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 605 bytes --]
From: Sjur Brændeland <sjur.brandeland@stericsson.com>
---
TODO | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/TODO b/TODO
index bf2305b..dec43fd 100644
--- a/TODO
+++ b/TODO
@@ -496,3 +496,11 @@ Miscellaneous
Priority: Low
Complexity: C4
+
+- Add Location Service API for providing basic E911 suport.
+ This will be based on the 27.007 defined AT commands using
+ XML for transport of positioning request and responses.
+
+ Priority: Medium
+ Complexity: C2
+ Owner: Sjur Brændeland <sjur.brandeland@stericsson.com>
--
1.7.0.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH] stemodem: Change use of types
2010-11-17 7:09 [PATCH] coding-style: Add exception to M12 rule for external enums Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2010-11-17 7:09 ` [PATCH] todo: Add Location Service (AGPS) task Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
@ 2010-11-17 7:09 ` Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2010-11-17 14:28 ` [PATCH] coding-style: Add exception to M12 rule for external enums Denis Kenzior
2 siblings, 0 replies; 5+ messages in thread
From: Sjur =?unknown-8bit?q?Br=C3=A6ndeland?= @ 2010-11-17 7:09 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 2007 bytes --]
From: Sjur Brændeland <sjur.brandeland@stericsson.com>
Use the type __u32 for sequence counting rather than guint32,
and "void *" instead of gpointer.
Reduce the size of RTNL message buffer from 4096 to 1024,
as this should be sufficient to hold the NEWLINK message.
---
drivers/stemodem/caif_rtnl.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/stemodem/caif_rtnl.c b/drivers/stemodem/caif_rtnl.c
index 5d4073a..4c00446 100644
--- a/drivers/stemodem/caif_rtnl.c
+++ b/drivers/stemodem/caif_rtnl.c
@@ -41,7 +41,7 @@
#define NLMSG_TAIL(nmsg) \
((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len)))
-#define RTNL_MSG_SIZE 4096
+#define RTNL_MSG_SIZE 1024
struct rtnl_msg {
struct nlmsghdr n;
@@ -50,17 +50,17 @@ struct rtnl_msg {
};
struct iplink_req {
- guint32 rtnlmsg_seqnr;
- gpointer user_data;
+ __u32 rtnlmsg_seqnr;
+ void *user_data;
caif_rtnl_create_cb_t callback;
};
static GSList *pending_requests;
-static guint32 rtnl_seqnr;
+static __u32 rtnl_seqnr;
static guint rtnl_watch;
static GIOChannel *rtnl_channel;
-static struct iplink_req *find_request(guint32 seq)
+static struct iplink_req *find_request(__u32 seq)
{
GSList *list;
@@ -169,7 +169,7 @@ static int add_attribute(struct nlmsghdr *n, unsigned int maxlen, int type,
return 0;
}
-static inline void prep_rtnl_req(struct rtnl_msg *msg, int reqtype, guint seqnr)
+static inline void prep_rtnl_req(struct rtnl_msg *msg, int reqtype, __u32 seqnr)
{
msg->n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg));
msg->n.nlmsg_flags = NLM_F_REQUEST|NLM_F_CREATE|NLM_F_EXCL;
@@ -179,7 +179,7 @@ static inline void prep_rtnl_req(struct rtnl_msg *msg, int reqtype, guint seqnr)
}
static gboolean netlink_event(GIOChannel *chan,
- GIOCondition cond, gpointer data)
+ GIOCondition cond, void *data)
{
unsigned char buf[RTNL_MSG_SIZE];
int len, sk;
--
1.7.0.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] coding-style: Add exception to M12 rule for external enums
2010-11-17 7:09 [PATCH] coding-style: Add exception to M12 rule for external enums Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2010-11-17 7:09 ` [PATCH] todo: Add Location Service (AGPS) task Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2010-11-17 7:09 ` [PATCH] stemodem: Change use of types Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
@ 2010-11-17 14:28 ` Denis Kenzior
2 siblings, 0 replies; 5+ messages in thread
From: Denis Kenzior @ 2010-11-17 14:28 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 281 bytes --]
Hi Sjur,
On 11/17/2010 01:09 AM, Sjur Brændeland wrote:
> From: Sjur Brændeland <sjur.brandeland@stericsson.com>
>
> ---
> doc/coding-style.txt | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
Patch has been applied. Thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] todo: Add Location Service (AGPS) task.
2010-11-17 7:09 ` [PATCH] todo: Add Location Service (AGPS) task Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
@ 2010-11-17 14:29 ` Denis Kenzior
0 siblings, 0 replies; 5+ messages in thread
From: Denis Kenzior @ 2010-11-17 14:29 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 268 bytes --]
Hi Sjur,
On 11/17/2010 01:09 AM, Sjur Brændeland wrote:
> From: Sjur Brændeland <sjur.brandeland@stericsson.com>
>
> ---
> TODO | 8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)
>
Patch has been applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-11-17 14:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-17 7:09 [PATCH] coding-style: Add exception to M12 rule for external enums Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2010-11-17 7:09 ` [PATCH] todo: Add Location Service (AGPS) task Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2010-11-17 14:29 ` Denis Kenzior
2010-11-17 7:09 ` [PATCH] stemodem: Change use of types Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2010-11-17 14:28 ` [PATCH] coding-style: Add exception to M12 rule for external enums Denis Kenzior
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.