Improve documentation

This commit is contained in:
Kyle Lemons
2012-03-27 00:09:18 -07:00
parent 78e551a40d
commit 8a56742c74
2 changed files with 33 additions and 5 deletions

View File

@@ -131,6 +131,9 @@ func newConfig(cfg *C.struct_libusb_config_descriptor) *Config {
// Close decrements the reference count for the device in the libusb driver
// code. It should be called exactly once!
//
// TODO(kevlar): This information can probably be cached at creation time
// and then immediately closed.
func (c *Config) Close() error {
if c.cfg != nil {
//log.Printf("config %p closed", c.cfg)