|
#define | LOAD_FLAGS_DEFAULT 0x0000007F |
|
#define | LOAD_FLAGS_CACHE_PRIORITY_MASK 0x000000FF |
|
#define | LOAD_FLAGS_REQUEST_FROM_STREAM 0x00000000 |
|
#define | LOAD_FLAGS_REQUEST_FILE_ONLY_BIT 0x00000100 |
|
#define | LOAD_FLAGS_REQUEST_EXISTANCE_BIT 0x00000400 |
|
#define | LOAD_FLAGS_REQUEST_STREAM_OBJ_XML_BIT 0x00002000 |
|
#define | LOAD_FLAGS_REQUEST_DEFERRED_SERVICE_BIT 0x00004000 |
|
#define | LOAD_FLAGS_REQUEST_EVENT_LIST_BIT 0x00008000 |
|
#define | LOAD_FLAGS_REQUEST_DIR_FILE_LIST_BIT 0x00000000 |
|
#define | LOAD_FLAGS_REQUEST_DIRECTORY_LIST_BIT 0x00040000 |
|
#define | LOAD_FLAGS_REQUEST_SERVICE_CONTEXT_BIT 0x00080000 |
|
|
E_FsStatus | DSMCC_ClientLoadObject (H_DsmControl dsmctrl, U8BIT *path, U32BIT flags, F_DSM_CBLOAD cb_func, S_CONTENT *pContent) |
| Perform a file load request which is executed synchronously or asynchronously. See load flags above for modifying requests. More...
|
|
E_FsStatus | DSMCC_ClientObjectType (H_DsmControl dsmctrl, U8BIT *path, F_DSM_TYPE cbfunc, void *userData, E_DsmObjectType *pType) |
| Request object type for given path. This may be executed synchronously or asynchronously - see comment for DSMCC_ClientLoadObject() More...
|
|
void | DSMCC_ClientPreloadHint (H_DsmControl dsmctrl, U8BIT *path) |
| Provide a hint that the specified file may be required in the future. If possible this should be loaded into the DSM-CC cache. More...
|
|
E_FsStatus | DSMCC_ClientEventSubscribeName (H_DsmControl dsmctrl, FS_HANDLE streamObject, U8BIT *eventName, F_DSM_EVENT cb_func, void *userData, H_DsmEvent *pEventHandle) |
| Client request to subscribe to DSMCC Stream Event, specified by name. DSMCC notifies when the named stream event occurs, by calling cb_func (a callback function defined by the Client). Before calling this function the Client must request that the stream object of interest be loaded using DSMCC_ClientLoadObject() function. This action will deliver a handle to the object stream - this is passed as the streamObject argument to this function. Do not have to wait until load is completed before subscribing. More...
|
|
E_FsStatus | DSMCC_ClientEventSubscribeId (H_DsmControl dsmctrl, U16BIT associationTag, U16BIT eventId, F_DSM_EVENT cb_func, void *userData, H_DsmEvent *pEventHandle) |
| Client request to subscribe to DSMCC Stream Event, specified by event ID and association tag of stream object. DSMCC notifies when the stream event occurs, by calling cb_func (a callback function defined by the Client). More...
|
|
void | DSMCC_ClientEventUnsubscribe (H_DsmControl dsmctrl, H_DsmEvent event) |
| Client request to UN-subscribe to DSMCC Stream Event. More...
|
|
BOOLEAN | DSMCC_ClientLoadFileGroups (H_DsmControl dsmctrl, H_ObjCarousel hOC, U16BIT *total, S_CarouselInfoFileGroup **pGroups) |
| Client request to retrieve MHEG5 File system acceleration file groups The client must release the array of group data, by calling DSMCC_ClientUnloadFileGroups, when finished with the data. More...
|
|
void | DSMCC_ClientUnloadFileGroups (H_DsmControl dsmctrl, H_ObjCarousel hOC, S_CarouselInfoFileGroup *groups) |
| Client request to release file group data returned from DSMCC_ClientLoadFileGroups. More...
|
|
DSM-CC API for client requests.
- Date
- 11/12/2013
- Author
- Adam Sturtridge
E_FsStatus DSMCC_ClientLoadObject |
( |
H_DsmControl |
dsmctrl, |
|
|
U8BIT * |
path, |
|
|
U32BIT |
flags, |
|
|
F_DSM_CBLOAD |
cb_func, |
|
|
S_CONTENT * |
pContent |
|
) |
| |
Perform a file load request which is executed synchronously or asynchronously. See load flags above for modifying requests.
Synchronous behaviour: If DSM-CC is able to determine that the file does not exist, the function returns with the FS_STATUS_ERROR.
If DSM-CC has the requested file in cache, it can read the file contents and pass a pointer to it in the pFileData return parameter, along with the file length in the pFileSize returned parameter. Once the contents of the file has been used, resource allocated to it must be released by calling the dsmFDataAck function. The function return value will be set to FS_STATUS_OK.
Asynchronous behaviour: If DSM-CC does not have the file in cache it will perform an asynchronous load. This is indicated by returning FS_STATUS_PENDING. When the load is completed, the 'cb_func' is called
If the path parameter points to a stream object within the DSM-CC carousel this will be loaded. The referenced multiplex will be located and a reference to this will be passed back to the MHEG-5 engine.
- Parameters
-
dsmctrl | DSMCC controling Instance |
path | Path of Object (directory, file or stream) |
flags | Load flags containing cache priority, and other control bits |
cb_func | Call-back Function |
pContent | Pointer to the file content details. Note: When content data for object is no longer required, the destroy function in S_CONTENT must be called to free any allocated resource. |
- Returns
- E_FsStatus FS_STATUS_OK The Object has been sucessfully loaded