2 * Copyright (c) 2012, 2013 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef __MTP_PRIVATE_H__
18 #define __MTP_PRIVATE_H__
20 typedef struct _mtp_raw_device {
27 #define CHECK_SUPPORTED() \
30 if (__is_mtp_supported() == false) { \
31 return MTP_ERROR_NOT_SUPPORTED; \
36 #define CHECK_ACTIVATED() \
39 if (__is_mtp_activated() == false) { \
40 return MTP_ERROR_NOT_ACTIVATED; \
46 MTP_PROPERTY_ASSOCIATION_DESC = 1,
47 MTP_PROPERTY_ASSOCIATION_TYPE,
49 MTP_PROPERTY_DATE_CREATED,
50 MTP_PROPERTY_DATE_MODIFIED,
52 MTP_PROPERTY_IMAGE_BIT_DEPTH,
53 MTP_PROPERTY_IMAGE_PIX_WIDTH,
54 MTP_PROPERTY_IMAGE_PIX_HEIGHT,
55 MTP_PROPERTY_PARENT_OBJECT_HANDLE,
57 MTP_PROPERTY_THUMBNAIL_SIZE,
58 MTP_PROPERTY_THUMBNAIL_FORMAT,
59 MTP_PROPERTY_THUMBNAIL_WIDTH,
60 MTP_PROPERTY_THUMBNAIL_HEIGHT,
61 MTP_PROPERTY_FILENAME,