msg_print(__LINE__, "__load_functions");
funcHandle = dlopen(PLUGIN_SO_FILE_NAME, RTLD_LAZY);
- if (!funcHandle) {
+ if (!funcHandle)
fprintf(stderr, "error: %s\n", dlerror());
- }
svc_connect = dlsym(funcHandle, "connect");
svc_disconnect = dlsym(funcHandle, "disconnect");
{
msg_print(__LINE__, "__unload_functions");
- if (funcHandle) {
+ if (funcHandle)
dlclose(funcHandle);
- }
return 0;
}
#if 1
ret = media_svc_create_table(tzplatform_getuid(TZ_USER_NAME));
- if (ret < 0) {
+ if (ret < 0)
msg_print(__LINE__, "table already exists");
- } else {
+ else
msg_print(__LINE__, "table create success");
- }
#endif
#if 1
} /* End of While */
ret = media_svc_insert_folder(db_handle, 0, path);
- if (ret < 0) {
+ if (ret < 0)
msg_print(__LINE__, "media_svc_insert_folder error ");
- } else {
+ else
msg_print(__LINE__, "media_svc_insert_folder success");
- }
#endif
/*folder test ================================================== */