Codebase list intel-hdcp / 7faa54b
daemon: Fixed indentation within source file Signed-off-by: Satyeshwar Singh <satyeshwar.singh@intel.com> Satyeshwar Singh 4 years ago
1 changed file(s) with 14 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
5050 EGLNativeDisplayType ret = 0;
5151 void *init;
5252
53 lib_hdl = dlopen(IAS_WL_LIBNAME, RTLD_LAZY | RTLD_GLOBAL);
53 lib_hdl = dlopen(IAS_WL_LIBNAME, RTLD_LAZY | RTLD_GLOBAL);
5454 if(!lib_hdl) {
5555 cerr<<"Couldn't open lib "<<IAS_WL_LIBNAME<<endl;
5656 return 0;
57 }
57 }
5858
59 /* Find init symbol */
59 /* Find init symbol */
6060 init = dlsym(lib_hdl, "init");
6161 if(!init) {
6262 cerr<<"Couldn't open symbol init dlerror "<<dlerror()<<endl;
7575 /* Call class's function */
7676 ret = gwl->init();
7777 if(ret == 0) {
78 cerr<<"WL base Class init is failed"<<endl;
79 dlclose(lib_hdl);
80 return 0;
81 }
78 cerr<<"WL base Class init is failed"<<endl;
79 dlclose(lib_hdl);
80 return 0;
81 }
8282 gwl->add_reg();
8383
84 stage = CREATE_DISPLAY_DONE;
85 return ret;
84 stage = CREATE_DISPLAY_DONE;
85 return ret;
8686 }
8787
8888 void util_destroy_display(EGLNativeDisplayType display)
111111 bool util_set_content_protection(int crtc, int cp)
112112 {
113113
114 bool retval = false;
114 bool retval = false;
115115
116 if(stage != CREATE_DISPLAY_DONE) {
116 if(stage != CREATE_DISPLAY_DONE) {
117117 cerr<<"Must call util_create_display first"<<endl;
118118 return retval;
119119 }
126126 retval = gwl->set_content_protection(crtc, cp);
127127 if (retval != true)
128128 {
129 cerr<<"Failed to set content protection and ret value =%0x"<<retval<<endl;
130 return retval;
129 cerr<<"Failed to set content protection and ret value =%0x"<<retval<<endl;
130 return retval;
131131 }
132 return true;
132 return true;
133133 }