daemon: Fixed indentation within source file
Signed-off-by: Satyeshwar Singh <satyeshwar.singh@intel.com>
Satyeshwar Singh
4 years ago
50 | 50 | EGLNativeDisplayType ret = 0; |
51 | 51 | void *init; |
52 | 52 | |
53 | lib_hdl = dlopen(IAS_WL_LIBNAME, RTLD_LAZY | RTLD_GLOBAL); | |
53 | lib_hdl = dlopen(IAS_WL_LIBNAME, RTLD_LAZY | RTLD_GLOBAL); | |
54 | 54 | if(!lib_hdl) { |
55 | 55 | cerr<<"Couldn't open lib "<<IAS_WL_LIBNAME<<endl; |
56 | 56 | return 0; |
57 | } | |
57 | } | |
58 | 58 | |
59 | /* Find init symbol */ | |
59 | /* Find init symbol */ | |
60 | 60 | init = dlsym(lib_hdl, "init"); |
61 | 61 | if(!init) { |
62 | 62 | cerr<<"Couldn't open symbol init dlerror "<<dlerror()<<endl; |
75 | 75 | /* Call class's function */ |
76 | 76 | ret = gwl->init(); |
77 | 77 | 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 | } | |
82 | 82 | gwl->add_reg(); |
83 | 83 | |
84 | stage = CREATE_DISPLAY_DONE; | |
85 | return ret; | |
84 | stage = CREATE_DISPLAY_DONE; | |
85 | return ret; | |
86 | 86 | } |
87 | 87 | |
88 | 88 | void util_destroy_display(EGLNativeDisplayType display) |
111 | 111 | bool util_set_content_protection(int crtc, int cp) |
112 | 112 | { |
113 | 113 | |
114 | bool retval = false; | |
114 | bool retval = false; | |
115 | 115 | |
116 | if(stage != CREATE_DISPLAY_DONE) { | |
116 | if(stage != CREATE_DISPLAY_DONE) { | |
117 | 117 | cerr<<"Must call util_create_display first"<<endl; |
118 | 118 | return retval; |
119 | 119 | } |
126 | 126 | retval = gwl->set_content_protection(crtc, cp); |
127 | 127 | if (retval != true) |
128 | 128 | { |
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; | |
131 | 131 | } |
132 | return true; | |
132 | return true; | |
133 | 133 | } |