]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/comms.h
USB comms: part 2 towards @micolous PR#463 (#595)
[proxmark3-svn] / client / comms.h
index 405760187e9d399f58d480b4eabaa4447087f89d..51a1467dc883db8e0e5ca2708071813fd131d848 100644 (file)
@@ -30,6 +30,11 @@ typedef struct {
        pthread_mutex_t recv_lock;
 } receiver_arg;
 
+
+// Wrappers required as static variables can only be used in one file.
+void SetOffline(bool new_offline);
+bool IsOffline();
+
 void SendCommand(UsbCommand *c);
 
 void *uart_receiver(void *targ);
@@ -40,6 +45,5 @@ bool WaitForResponseTimeout(uint32_t cmd, UsbCommand* response, size_t ms_timeou
 bool WaitForResponse(uint32_t cmd, UsbCommand* response);
 
 extern serial_port sp;
-extern bool offline;
 
 #endif // COMMS_H_
Impressum, Datenschutz