From e779036fe278eb8396ae095fc6a9cf04c85de3bd Mon Sep 17 00:00:00 2001
From: helge <helgewurst@web.de>
Date: 摹曛, 04 11月 2021 22:12:27 +0800
Subject: [PATCH] introduce weak connectivity and error events

---
 examples/test-LwIP-netconn/scpi_server.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/examples/test-LwIP-netconn/scpi_server.h b/examples/test-LwIP-netconn/scpi_server.h
index 1c04dda..50e677c 100644
--- a/examples/test-LwIP-netconn/scpi_server.h
+++ b/examples/test-LwIP-netconn/scpi_server.h
@@ -42,6 +42,12 @@
 void SCPI_AddError(int16_t err);
 void SCPI_RequestControl(void);
 
+// optional event handlers
+void SCPI_Event_DeviceConnected(struct netconn * conn);
+void SCPI_Event_DeviceDisconnected(struct netconn * conn);
+void SCPI_Event_ErrorIndicatorOn(scpi_t * context, int_fast16_t err);
+void SCPI_Event_ErrorIndicatorOff(scpi_t * context, int_fast16_t err);
+
 #ifdef __cplusplus
 }
 #endif

--
Gitblit v1.9.1