summaryrefslogtreecommitdiffstats
path: root/ppapi/c/dev/pp_file_info_dev.h
blob: c1e1a075894bfddb69b41defe554dc3b5e3cdd79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef PPAPI_C_DEV_PP_FILE_INFO_DEV_H_
#define PPAPI_C_DEV_PP_FILE_INFO_DEV_H_

#include "ppapi/c/pp_stdint.h"
#include "ppapi/c/pp_time.h"

typedef enum {
  PP_FILETYPE_REGULAR,
  PP_FILETYPE_DIRECTORY,
  PP_FILETYPE_OTHER  // A catch-all for unidentified types.
} PP_FileType_Dev;

typedef enum {
  PP_FILESYSTEMTYPE_EXTERNAL,
  PP_FILESYSTEMTYPE_LOCALPERSISTENT,
  PP_FILESYSTEMTYPE_LOCALTEMPORARY
} PP_FileSystemType_Dev;

struct PP_FileInfo_Dev {
  int64_t size;  // Measured in bytes
  PP_FileType_Dev type;
  PP_FileSystemType_Dev system_type;
  PP_Time creation_time;
  PP_Time last_access_time;
  PP_Time last_modified_time;
};

#endif  // PPAPI_C_DEV_PP_FILE_INFO_DEV_H_