webOS Userland
Native system APIs for webOS
NDL_directmedia_common.h
1 #pragma once
2 
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6 
7 /* default to API version 1 (pre-webOS 5) */
8 #ifndef NDL_DIRECTMEDIA_API_VERSION
9 # define NDL_DIRECTMEDIA_API_VERSION 1
10 #endif
11 
12 #include "NDL_directmedia_types.h"
13 
19 const char *NDL_DirectMediaGetError(void);
20 
26 int NDL_DirectMediaInit(const char *app_id, ResourceReleased cb);
27 
33 int NDL_DirectMediaQuit(void);
34 
38 int NDL_DirectMediaSetAppState(NDL_DIRECTMEDIA_APP_STATE state);
39 
43 int NDL_DirectVideoSetArea(int left, int top, int width, int height);
44 
45 #ifdef __cplusplus
46 }
47 #endif