Update media-service-upnp to version 0.3.0 ( ca17a69 )
[profile/ivi/media-service-upnp.git] / src / interface.h
1 /*
2  * media-service-upnp
3  *
4  * Copyright (C) 2012 Intel Corporation. All rights reserved.
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms and conditions of the GNU Lesser General Public License,
8  * version 2.1, as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
13  * for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
18  *
19  * Mark Ryan <mark.d.ryan@intel.com>
20  *
21  */
22
23 #ifndef MSU_INTERFACE_H__
24 #define MSU_INTERFACE_H__
25
26 #define MSU_INTERFACE_PROPERTIES "org.freedesktop.DBus.Properties"
27 #define MSU_INTERFACE_MEDIA_CONTAINER "org.gnome.UPnP.MediaContainer2"
28 #define MSU_INTERFACE_MEDIA_OBJECT "org.gnome.UPnP.MediaObject2"
29 #define MSU_INTERFACE_MEDIA_ITEM "org.gnome.UPnP.MediaItem2"
30
31 /* Object Properties */
32 #define MSU_INTERFACE_PROP_PATH "Path"
33 #define MSU_INTERFACE_PROP_PARENT "Parent"
34 #define MSU_INTERFACE_PROP_RESTRICTED "Restricted"
35 #define MSU_INTERFACE_PROP_DISPLAY_NAME "DisplayName"
36 #define MSU_INTERFACE_PROP_TYPE "Type"
37 #define MSU_INTERFACE_PROP_CREATOR "Creator"
38 #define MSU_INTERFACE_PROP_DLNA_MANAGED "DLNAManaged"
39
40 /* Item Properties */
41 #define MSU_INTERFACE_PROP_REFPATH "RefPath"
42 #define MSU_INTERFACE_PROP_ARTIST "Artist"
43 #define MSU_INTERFACE_PROP_ARTISTS "Artists"
44 #define MSU_INTERFACE_PROP_ALBUM "Album"
45 #define MSU_INTERFACE_PROP_DATE "Date"
46 #define MSU_INTERFACE_PROP_GENRE "Genre"
47 #define MSU_INTERFACE_PROP_TRACK_NUMBER "TrackNumber"
48 #define MSU_INTERFACE_PROP_ALBUM_ART_URL "AlbumArtURL"
49 #define MSU_INTERFACE_PROP_RESOURCES "Resources"
50
51 /* Container Properties */
52 #define MSU_INTERFACE_PROP_SEARCHABLE "Searchable"
53 #define MSU_INTERFACE_PROP_CHILD_COUNT "ChildCount"
54 #define MSU_INTERFACE_PROP_CREATE_CLASSES "CreateClasses"
55
56 /* Device Properties */
57 #define MSU_INTERFACE_PROP_LOCATION "Location"
58 #define MSU_INTERFACE_PROP_UDN "UDN"
59 #define MSU_INTERFACE_PROP_DEVICE_TYPE "DeviceType"
60 #define MSU_INTERFACE_PROP_FRIENDLY_NAME "FriendlyName"
61 #define MSU_INTERFACE_PROP_MANUFACTURER "Manufacturer"
62 #define MSU_INTERFACE_PROP_MANUFACTURER_URL "ManufacturerUrl"
63 #define MSU_INTERFACE_PROP_MODEL_DESCRIPTION "ModelDescription"
64 #define MSU_INTERFACE_PROP_MODEL_NAME "ModelName"
65 #define MSU_INTERFACE_PROP_MODEL_NUMBER "ModelNumber"
66 #define MSU_INTERFACE_PROP_MODEL_URL "ModelURL"
67 #define MSU_INTERFACE_PROP_SERIAL_NUMBER "SerialNumber"
68 #define MSU_INTERFACE_PROP_PRESENTATION_URL "PresentationURL"
69 #define MSU_INTERFACE_PROP_ICON_URL "IconURL"
70 #define MSU_INTERFACE_PROP_SV_DLNA_CAPABILITIES "DLNACaps"
71 #define MSU_INTERFACE_PROP_SV_SEARCH_CAPABILITIES "SearchCaps"
72 #define MSU_INTERFACE_PROP_SV_SORT_CAPABILITIES "SortCaps"
73 #define MSU_INTERFACE_PROP_SV_SORT_EXT_CAPABILITIES "SortExtCaps"
74 #define MSU_INTERFACE_PROP_SV_FEATURE_LIST "FeatureList"
75
76 /* Resources Properties */
77 #define MSU_INTERFACE_PROP_MIME_TYPE "MIMEType"
78 #define MSU_INTERFACE_PROP_DLNA_PROFILE "DLNAProfile"
79 #define MSU_INTERFACE_PROP_SIZE "Size"
80 #define MSU_INTERFACE_PROP_DURATION "Duration"
81 #define MSU_INTERFACE_PROP_BITRATE "Bitrate"
82 #define MSU_INTERFACE_PROP_SAMPLE_RATE "SampleRate"
83 #define MSU_INTERFACE_PROP_BITS_PER_SAMPLE "BitsPerSample"
84 #define MSU_INTERFACE_PROP_WIDTH "Width"
85 #define MSU_INTERFACE_PROP_HEIGHT "Height"
86 #define MSU_INTERFACE_PROP_COLOR_DEPTH "ColorDepth"
87 #define MSU_INTERFACE_PROP_URLS "URLs"
88 #define MSU_INTERFACE_PROP_URL "URL"
89
90 /* Evented State Variable Properties */
91 #define MSU_INTERFACE_PROP_ESV_SYSTEM_UPDATE_ID "SystemUpdateID"
92 #define MSU_INTERFACE_PROP_ESV_SERVICE_RESET_TOKEN "ServiceResetToken"
93
94 #define MSU_INTERFACE_GET_VERSION "GetVersion"
95 #define MSU_INTERFACE_GET_SERVERS "GetServers"
96 #define MSU_INTERFACE_RELEASE "Release"
97 #define MSU_INTERFACE_SET_PROTOCOL_INFO "SetProtocolInfo"
98 #define MSU_INTERFACE_PREFER_LOCAL_ADDRESSES "PreferLocalAddresses"
99
100 #define MSU_INTERFACE_FOUND_SERVER "FoundServer"
101 #define MSU_INTERFACE_LOST_SERVER "LostServer"
102
103 #define MSU_INTERFACE_LIST_CHILDREN "ListChildren"
104 #define MSU_INTERFACE_LIST_CHILDREN_EX "ListChildrenEx"
105 #define MSU_INTERFACE_LIST_ITEMS "ListItems"
106 #define MSU_INTERFACE_LIST_ITEMS_EX "ListItemsEx"
107 #define MSU_INTERFACE_LIST_CONTAINERS "ListContainers"
108 #define MSU_INTERFACE_LIST_CONTAINERS_EX "ListContainersEx"
109 #define MSU_INTERFACE_SEARCH_OBJECTS "SearchObjects"
110 #define MSU_INTERFACE_SEARCH_OBJECTS_EX "SearchObjectsEx"
111 #define MSU_INTERFACE_UPDATE "Update"
112
113 #define MSU_INTERFACE_GET_COMPATIBLE_RESOURCE "GetCompatibleResource"
114
115 #define MSU_INTERFACE_GET "Get"
116 #define MSU_INTERFACE_GET_ALL "GetAll"
117 #define MSU_INTERFACE_INTERFACE_NAME "InterfaceName"
118 #define MSU_INTERFACE_PROPERTY_NAME "PropertyName"
119 #define MSU_INTERFACE_PROPERTIES_VALUE "Properties"
120 #define MSU_INTERFACE_VALUE "value"
121 #define MSU_INTERFACE_CHILD_TYPES "ChildTypes"
122
123 #define MSU_INTERFACE_VERSION "Version"
124 #define MSU_INTERFACE_SERVERS "Servers"
125
126 #define MSU_INTERFACE_CRITERIA "Criteria"
127 #define MSU_INTERFACE_DICT "Dictionary"
128 #define MSU_INTERFACE_PATH "Path"
129 #define MSU_INTERFACE_QUERY "Query"
130 #define MSU_INTERFACE_PROTOCOL_INFO "ProtocolInfo"
131 #define MSU_INTERFACE_PREFER "Prefer"
132
133 #define MSU_INTERFACE_OFFSET "Offset"
134 #define MSU_INTERFACE_MAX "Max"
135 #define MSU_INTERFACE_FILTER "Filter"
136 #define MSU_INTERFACE_CHILDREN "Children"
137 #define MSU_INTERFACE_SORT_BY "SortBy"
138 #define MSU_INTERFACE_TOTAL_ITEMS "TotalItems"
139
140 #define MSU_INTERFACE_PROPERTIES_CHANGED "PropertiesChanged"
141 #define MSU_INTERFACE_CHANGED_PROPERTIES "ChangedProperties"
142 #define MSU_INTERFACE_INVALIDATED_PROPERTIES "InvalidatedProperties"
143 #define MSU_INTERFACE_SYSTEM_UPDATE_ID "SystemUpdateId"
144 #define MSU_INTERFACE_CONTAINER_UPDATE "ContainerUpdate"
145 #define MSU_INTERFACE_CONTAINER_PATHS "ContainerPaths"
146
147 #define MSU_INTERFACE_DELETE "Delete"
148
149 #define MSU_INTERFACE_CREATE_CONTAINER "CreateContainer"
150 #define MSU_INTERFACE_CREATE_CONTAINER_IN_ANY "CreateContainerInAnyContainer"
151
152 #define MSU_INTERFACE_UPLOAD "Upload"
153 #define MSU_INTERFACE_UPLOAD_TO_ANY "UploadToAnyContainer"
154 #define MSU_INTERFACE_GET_UPLOAD_STATUS "GetUploadStatus"
155 #define MSU_INTERFACE_GET_UPLOAD_IDS "GetUploadIDs"
156 #define MSU_INTERFACE_CANCEL_UPLOAD "CancelUpload"
157 #define MSU_INTERFACE_TOTAL "Total"
158 #define MSU_INTERFACE_LENGTH "Length"
159 #define MSU_INTERFACE_FILE_PATH "FilePath"
160 #define MSU_INTERFACE_UPLOAD_ID "UploadId"
161 #define MSU_INTERFACE_UPLOAD_IDS "UploadIDs"
162 #define MSU_INTERFACE_UPLOAD_STATUS "UploadStatus"
163 #define MSU_INTERFACE_UPLOAD_UPDATE "UploadUpdate"
164 #define MSU_INTERFACE_TO_ADD_UPDATE "ToAddUpdate"
165 #define MSU_INTERFACE_TO_DELETE "ToDelete"
166 #endif
167