aboutsummaryrefslogtreecommitdiff
path: root/usblp.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-15 13:30:52 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-15 13:30:52 +0200
commit70785ed7332d2673ba2234d451b713e6a7167f2f (patch)
tree7d06e03a31a37ab33d8fd03a8903d3edeee31e61 /usblp.go
parentb2bfa9c8f48fced0776986c68135a75f9c3f3a46 (diff)
Rename
Diffstat (limited to 'usblp.go')
-rw-r--r--usblp.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/usblp.go b/usblp.go
deleted file mode 100644
index da0dfd0..0000000
--- a/usblp.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package main
-
-import (
- "bufio"
- "os"
-)
-
-type LPDevice struct {
- *os.File
-}
-
-func NewLPDevice(path string) (Devicer, error) {
- f, err := os.OpenFile(path, os.O_RDWR, 0666)
- return LPDevice{f}, err
-}
-
-func (d LPDevice) Close() {
- d.File.Close()
-}
-
-func (d LPDevice) Handle() *bufio.ReadWriter {
- r := bufio.NewReader(d.File)
- w := bufio.NewWriter(d.File)
- return bufio.NewReadWriter(r, w)
-}