Merge "Add function to reset a device."
diff --git a/libnos_datagram/include/nos/device.h b/libnos_datagram/include/nos/device.h
index 21366cc..9903707 100644
--- a/libnos_datagram/include/nos/device.h
+++ b/libnos_datagram/include/nos/device.h
@@ -47,6 +47,13 @@
void (*wait_for_interrupt)(void *ctx);
/**
+ * Reset the device.
+ *
+ * Return 0 on success and a negative value on failure.
+ */
+ int (*reset)(void *ctx);
+
+ /**
* Close the connection to the device.
*
* The device must not be used after closing.