net: Add helper function to context for getting recv queue

Needed only in net_init.c so did not put the prototype into .h file.

Change-Id: If84e835d32bcfafd8e403ffa4def51fa72e0aa3e
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
diff --git a/net/ip/net_context.c b/net/ip/net_context.c
index 240dcd8..2797e91 100644
--- a/net/ip/net_context.c
+++ b/net/ip/net_context.c
@@ -127,6 +127,14 @@
 	return &context->tuple;
 }
 
+struct nano_fifo *net_context_get_queue(struct net_context *context)
+{
+	if (!context)
+		return NULL;
+
+	return &context->rx_queue;
+}
+
 void net_context_init(void)
 {
 	int i;
diff --git a/net/ip/net_init.c b/net/ip/net_init.c
index d8e036a..ecaffde 100644
--- a/net/ip/net_init.c
+++ b/net/ip/net_init.c
@@ -53,6 +53,11 @@
 #include "contiki/uip-driver.h"
 #include "contiki/ipv6/uip-ds6.h"
 
+/* Declare some private functions only to be used in this file so the
+ * prototypes are not found in .h file.
+ */
+struct nano_fifo *net_context_get_queue(struct net_context *context);
+
 /* Stacks for the tx & rx fibers.
  * FIXME: stack size needs fine-tuning
  */