RDK Documentation (Open Sourced RDK Components)
mediabrowser_private.h
1 /*
2  * If not stated otherwise in this file or this component's Licenses.txt file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2021 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18 */
19 
20 #ifndef _MEDIA_BROWSER_PRIVATE_H_
21 #define _MEDIA_BROWSER_PRIVATE_H_
22 
23 #include <libgupnp/gupnp-control-point.h>
24 #include <safec_lib.h>
25 #define RBUS_XUPNP_SERVICE_PROVIDER "rbus.xupnp.dlna"
26 #define XUPNP_SERVICE_CONTENT_DIR "urn:schemas-upnp-org:service:ContentDirectory:1"
27 #define XUPNP_DEVICE_MEDIASERVER_CONTROL_URN "urn:schemas-upnp-org:device:MediaServer:1"
28 
29 
30 #define BROWSE_MODE_CHILD_NODE "BrowseDirectChildren"
31 #define BROWSE_MODE_META_DATA "BrowseMetadata"
32 
33 GUPnPControlPoint* *cp_media_rndr;
34 GMutex * locker;
35 
36 typedef struct _mediaServerCfg {
37  char * friendlyname;
38  char * udn;
39  GUPnPServiceInfo * browserService;
41 
42 extern GList* msList; // Defined in mediaserver.c
43 
44 void init_rpc_iface(); //For intializing RPC communications
45 void close_rpc_iface(); // To cleanup RPC communications.
46 bool browse_remote_dir_with_udn(const char * server_udn, const char * path_id, int start_index,
47  int max_entries, int *totalCount, char **results);
48 void init_media_browser();
49 void close_media_browser();
50 
51 #endif //_MEDIA_BROWSER_PRIVATE_H_
init_media_browser
void init_media_browser()
Definition: mediabrowser.c:202
close_media_browser
void close_media_browser()
Definition: mediabrowser.c:210
_mediaServerCfg
Definition: mediabrowser_private.h:36