Lines Matching refs:proto
13 def _proto_to_blob(proto): argument
14 return dbus.ByteArray(proto.SerializeToString())
107 proto = MountOptionsProto()
108 proto.path = mount_path
109 proto.workgroup = workgroup
110 proto.username = username
111 proto.mount_config.enable_ntlm = True
114 return self._smbproviderd.Mount(_proto_to_blob(proto),
133 proto = UnmountOptionsProto()
134 proto.mount_id = mount_id
136 return self._smbproviderd.Unmount(_proto_to_blob(proto))
156 proto = CreateDirectoryOptionsProto()
157 proto.mount_id = mount_id
158 proto.directory_path = directory_path
159 proto.recursive = recursive
162 _proto_to_blob(proto),
185 proto = ReadDirectoryOptionsProto()
186 proto.mount_id = mount_id
187 proto.directory_path = directory_path
190 _proto_to_blob(proto),
218 proto = GetMetadataEntryOptionsProto()
219 proto.mount_id = mount_id
220 proto.entry_path = entry_path
223 _proto_to_blob(proto),
249 proto = OpenFileOptionsProto()
250 proto.mount_id = mount_id
251 proto.file_path = file_path
252 proto.writeable = writeable
254 return self._smbproviderd.OpenFile(_proto_to_blob(proto),
273 proto = CloseFileOptionsProto()
274 proto.mount_id = mount_id
275 proto.file_id = file_id
277 return self._smbproviderd.CloseFile(_proto_to_blob(proto),
300 proto = ReadFileOptionsProto()
301 proto.mount_id = mount_id
302 proto.file_id = file_id
303 proto.offset = offset
304 proto.length = length
306 error, fd = self._smbproviderd.ReadFile(_proto_to_blob(proto),
331 proto = CreateFileOptionsProto()
332 proto.mount_id = mount_id
333 proto.file_path = file_path
335 return self._smbproviderd.CreateFile(_proto_to_blob(proto),
356 proto = DeleteEntryOptionsProto()
357 proto.mount_id = mount_id
358 proto.entry_path = entry_path
359 proto.recursive = recursive
361 return self._smbproviderd.DeleteEntry(_proto_to_blob(proto),
382 proto = MoveEntryOptionsProto()
383 proto.mount_id = mount_id
384 proto.source_path = source_path
385 proto.target_path = target_path
387 return self._smbproviderd.MoveEntry(_proto_to_blob(proto),
407 proto = TruncateOptionsProto()
408 proto.mount_id = mount_id
409 proto.file_path = file_path
410 proto.length = length
412 return self._smbproviderd.Truncate(_proto_to_blob(proto),
433 proto = WriteFileOptionsProto()
434 proto.mount_id = mount_id
435 proto.file_id = file_id
436 proto.offset = offset
437 proto.length = len(data)
440 return self._smbproviderd.WriteFile(_proto_to_blob(proto),