Permalink
Browse files

Add File.SetId().

  • Loading branch information...
1 parent 154c1a4 commit 4ec511eb2156ff6480d71ba29f8e7ca6d9ce22c0 @hanwen committed Jun 14, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 mtp.go
View
4 mtp.go
@@ -332,6 +332,10 @@ func (d *File) Id() uint32 {
return uint32(d.item_id)
}
+func (d *File) SetId(id uint32) {
+ d.item_id = C.uint32_t(id)
+}
+
func (d *File) Filetype() int {
return int(d.filetype)
}

0 comments on commit 4ec511e

Please sign in to comment.