From f8af548dbcfe28eea029051e4ecd1c6ca0a2fbe7 Mon Sep 17 00:00:00 2001
From: Jakob Olsson <jakobols@kth.se>
Date: Tue, 5 Jun 2018 10:51:11 +0200
Subject: [PATCH] header dongle_pin change

---
 dongle.c     | 2 ++
 dongle_pin.h | 6 +++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/dongle.c b/dongle.c
index 13e4134..19951ce 100644
--- a/dongle.c
+++ b/dongle.c
@@ -170,6 +170,7 @@ void free_device(struct device *dev)
 {
 	if (!dev)
 		return;
+
 	free(dev->ip);
 	free(&(dev->usb));
 }
@@ -178,6 +179,7 @@ void free_usb(struct USB *usb)
 {
 	if (!usb)
 		return;
+
 	free(usb->product);
 	free(usb->product_id);
 	free(usb->vendor_id);
diff --git a/dongle_pin.h b/dongle_pin.h
index 8259165..77c2361 100644
--- a/dongle_pin.h
+++ b/dongle_pin.h
@@ -2,5 +2,9 @@
 #define PIN_H
 #include "common.h"
 
-int expose_pin_object(struct ubus_context *ctx);
+static int isdigits(const char *pin);
+static int validate_puk_format(char *puk);
+static int validate_pin_format(char *pin);
+int pin_status(struct blob_buf *bb)
+int check_response(struct json_object *response)
 #endif
-- 
GitLab