Apply ACR comment
[platform/core/api/mtp.git] / include / mtp_private.h
1 /*
2  * Copyright (c) 2012, 2013 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __MTP_PRIVATE_H__
18 #define __MTP_PRIVATE_H__
19
20 typedef struct _mtp_raw_device {
21         int bus_location;
22         int device_number;
23         char *model_name;
24         int dev_count;
25 } mtp_raw_device;
26
27 #define CHECK_SUPPORTED() \
28 do { \
29                 { \
30                         if (__is_mtp_supported() == false) { \
31                                 return MTP_ERROR_NOT_SUPPORTED; \
32                 } \
33         } \
34 } while (0);
35
36 #define CHECK_ACTIVATED() \
37 do { \
38                 { \
39                         if (__is_mtp_activated() == false) { \
40                                 return MTP_ERROR_NOT_ACTIVATED; \
41                 } \
42         } \
43 } while (0);
44
45 typedef enum {
46         MTP_PROPERTY_ASSOCIATION_DESC = 1,
47         MTP_PROPERTY_ASSOCIATION_TYPE,
48         MTP_PROPERTY_SIZE,
49         MTP_PROPERTY_DATE_CREATED,
50         MTP_PROPERTY_DATE_MODIFIED,
51         MTP_PROPERTY_FORMAT,
52         MTP_PROPERTY_IMAGE_BIT_DEPTH,
53         MTP_PROPERTY_IMAGE_PIX_WIDTH,
54         MTP_PROPERTY_IMAGE_PIX_HEIGHT,
55         MTP_PROPERTY_PARENT_OBJECT_HANDLE,
56         MTP_PROPERTY_STORAGE,
57         MTP_PROPERTY_THUMBNAIL_SIZE,
58         MTP_PROPERTY_THUMBNAIL_FORMAT,
59         MTP_PROPERTY_THUMBNAIL_WIDTH,
60         MTP_PROPERTY_THUMBNAIL_HEIGHT,
61         MTP_PROPERTY_FILENAME,
62         MTP_PROPERTY_KEYWORDS
63 } mtp_property_e;
64
65 #endif