1
0

nativemodel_unix.go 1010 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright (C) 2014 The Protocol Authors.
  2. // +build !windows,!darwin
  3. package protocol
  4. // Normal Unixes uses NFC and slashes, which is the wire format.
  5. type nativeModel struct {
  6. next Model
  7. }
  8. func (m nativeModel) Index(deviceID DeviceID, folder string, files []FileInfo, flags uint32, options []Option) {
  9. m.next.Index(deviceID, folder, files, flags, options)
  10. }
  11. func (m nativeModel) IndexUpdate(deviceID DeviceID, folder string, files []FileInfo, flags uint32, options []Option) {
  12. m.next.IndexUpdate(deviceID, folder, files, flags, options)
  13. }
  14. func (m nativeModel) Request(deviceID DeviceID, folder string, name string, offset int64, hash []byte, flags uint32, options []Option, buf []byte) error {
  15. return m.next.Request(deviceID, folder, name, offset, hash, flags, options, buf)
  16. }
  17. func (m nativeModel) ClusterConfig(deviceID DeviceID, config ClusterConfigMessage) {
  18. m.next.ClusterConfig(deviceID, config)
  19. }
  20. func (m nativeModel) Close(deviceID DeviceID, err error) {
  21. m.next.Close(deviceID, err)
  22. }