* [PATCH] genl: Add a genl_family getter for genl
@ 2016-12-20 22:37 Andrew Zaborowski
2016-12-21 18:09 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Zaborowski @ 2016-12-20 22:37 UTC (permalink / raw)
To: ell
[-- Attachment #1: Type: text/plain, Size: 1171 bytes --]
Add l_genl_family_get_genl function (redundant but accurate name)
---
ell/genl.c | 8 ++++++++
ell/genl.h | 1 +
2 files changed, 9 insertions(+)
diff --git a/ell/genl.c b/ell/genl.c
index c522ae7..cff3a9a 100644
--- a/ell/genl.c
+++ b/ell/genl.c
@@ -1173,6 +1173,14 @@ LIB_EXPORT uint32_t l_genl_family_get_version(struct l_genl_family *family)
return family->version;
}
+LIB_EXPORT struct l_genl *l_genl_family_get_genl(struct l_genl_family *family)
+{
+ if (unlikely(!family))
+ return 0;
+
+ return family->genl;
+}
+
static bool match_op_id(const void *a, const void *b)
{
const struct genl_op *op = a;
diff --git a/ell/genl.h b/ell/genl.h
index fe188d9..8597c8f 100644
--- a/ell/genl.h
+++ b/ell/genl.h
@@ -104,6 +104,7 @@ bool l_genl_set_unicast_handler(struct l_genl *genl,
l_genl_destroy_func_t destroy);
uint32_t l_genl_family_get_version(struct l_genl_family *family);
+struct l_genl *l_genl_family_get_genl(struct l_genl_family *family);
bool l_genl_family_can_send(struct l_genl_family *family, uint8_t cmd);
bool l_genl_family_can_dump(struct l_genl_family *family, uint8_t cmd);
--
2.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] genl: Add a genl_family getter for genl
2016-12-20 22:37 [PATCH] genl: Add a genl_family getter for genl Andrew Zaborowski
@ 2016-12-21 18:09 ` Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2016-12-21 18:09 UTC (permalink / raw)
To: ell
[-- Attachment #1: Type: text/plain, Size: 271 bytes --]
Hi Andrew,
On 12/20/2016 04:37 PM, Andrew Zaborowski wrote:
> Add l_genl_family_get_genl function (redundant but accurate name)
> ---
> ell/genl.c | 8 ++++++++
> ell/genl.h | 1 +
> 2 files changed, 9 insertions(+)
>
Applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-21 18:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-20 22:37 [PATCH] genl: Add a genl_family getter for genl Andrew Zaborowski
2016-12-21 18:09 ` 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.