diff options
Diffstat (limited to 'glcddrivers/port.h')
-rw-r--r-- | glcddrivers/port.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/glcddrivers/port.h b/glcddrivers/port.h index 2920461..6fcd635 100644 --- a/glcddrivers/port.h +++ b/glcddrivers/port.h @@ -33,6 +33,7 @@ private: int fd; int port; bool usePPDev; + bool portClaimed; public: cParallelPort(); @@ -45,8 +46,9 @@ public: bool IsDirectIO() const { return (!usePPDev); } int GetPortHandle() const { return ((usePPDev) ? fd : port); } - void Claim(); + bool Claim(); void Release(); + bool IsPortClaimed() const { return (portClaimed); } void SetDirection(int direction); unsigned char ReadControl(); |