dom/devicestorage/PDeviceStorageRequest.ipdl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/devicestorage/PDeviceStorageRequest.ipdl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,105 @@
     1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     1.7 + * You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +include protocol PBlob;
    1.10 +include protocol PContent;
    1.11 +
    1.12 +namespace mozilla {
    1.13 +namespace dom {
    1.14 +namespace devicestorage {
    1.15 +
    1.16 +
    1.17 +struct ErrorResponse
    1.18 +{
    1.19 +  nsString error;
    1.20 +};
    1.21 +
    1.22 +struct SuccessResponse
    1.23 +{
    1.24 +};
    1.25 +
    1.26 +struct FileDescriptorResponse
    1.27 +{
    1.28 +  FileDescriptor fileDescriptor;
    1.29 +};
    1.30 +
    1.31 +struct BlobResponse
    1.32 +{
    1.33 +  PBlob blob;
    1.34 +};
    1.35 +
    1.36 +struct DeviceStorageFileValue
    1.37 +{
    1.38 +  nsString storageName;
    1.39 +  nsString name;
    1.40 +};
    1.41 +
    1.42 +struct EnumerationResponse
    1.43 +{
    1.44 +  nsString type;
    1.45 +  nsString rootdir;
    1.46 +  DeviceStorageFileValue[] paths;
    1.47 +};
    1.48 +
    1.49 +struct FreeSpaceStorageResponse
    1.50 +{
    1.51 +  uint64_t freeBytes;
    1.52 +};
    1.53 +
    1.54 +struct UsedSpaceStorageResponse
    1.55 +{
    1.56 +  uint64_t usedBytes;
    1.57 +};
    1.58 +
    1.59 +struct AvailableStorageResponse
    1.60 +{
    1.61 +  nsString mountState;
    1.62 +};
    1.63 +
    1.64 +struct StorageStatusResponse
    1.65 +{
    1.66 +  nsString storageStatus;
    1.67 +};
    1.68 +
    1.69 +struct FormatStorageResponse
    1.70 +{
    1.71 +  nsString mountState;
    1.72 +};
    1.73 +
    1.74 +struct MountStorageResponse
    1.75 +{
    1.76 +  nsString storageStatus;
    1.77 +};
    1.78 +
    1.79 +struct UnmountStorageResponse
    1.80 +{
    1.81 +  nsString storageStatus;
    1.82 +};
    1.83 +
    1.84 +union DeviceStorageResponseValue
    1.85 +{
    1.86 +  ErrorResponse;
    1.87 +  SuccessResponse;
    1.88 +  FileDescriptorResponse;
    1.89 +  BlobResponse;
    1.90 +  EnumerationResponse;
    1.91 +  FreeSpaceStorageResponse;
    1.92 +  UsedSpaceStorageResponse;
    1.93 +  AvailableStorageResponse;
    1.94 +  StorageStatusResponse;
    1.95 +  FormatStorageResponse;
    1.96 +  MountStorageResponse;
    1.97 +  UnmountStorageResponse;
    1.98 +};
    1.99 +
   1.100 +sync protocol PDeviceStorageRequest {
   1.101 +    manager PContent;
   1.102 +child:
   1.103 +    __delete__(DeviceStorageResponseValue response);
   1.104 +};
   1.105 +
   1.106 +} // namespace devicestorage
   1.107 +} // namespace dom
   1.108 +} // namespace mozilla

mercurial