[riot-notifications] [RIOT-OS/RIOT] netif: introduce generic network interface descriptor (#11879)

José Alamos notifications at github.com
Mon Sep 30 13:49:36 CEST 2019


jia200x commented on this pull request.



> +
+#include <string.h>
+
+#include "errno.h"
+#include "net/netif.h"
+#include "utlist.h"
+
+static netif_t *netif_list;
+
+int netif_register(netif_t *netif)
+{
+    if(netif == NULL) {
+        return -EINVAL;
+    }
+
+    LL_APPEND(netif_list, netif);

done

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11879#discussion_r329535412
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190930/b2800521/attachment.htm>


More information about the notifications mailing list