#include <system_info.h>
#include <vconf.h>
#include <vconf-internal-keys.h>
-#include <aul_rsm_provider.h>
+#include <screen_connector_provider.h>
#include "widget_app.h"
#include "widget-log.h"
_E("failed to get launch argv"); /* LCOV_EXCL_LINE */
}
- aul_rsm_provider_init();
-
+ screen_connector_provider_init();
elm_init(argc, argv);
r = aul_launch_init(__aul_handler, NULL);
if (app_ops->terminate)
app_ops->terminate(app_user_data);
- aul_rsm_provider_fini();
+ screen_connector_provider_fini();
_widget_app_free_viewer_endpoint();
_widget_core_unset_appcore_event_cb();
package_id = NULL;
}
+ if (appid) {
+ free(appid);
+ appid = NULL;
+ }
+
elm_shutdown();
}
app_ops = callback;
app_user_data = user_data;
r = __before_loop(argc, argv);
- if (r < 0)
+ if (r < 0) {
+ if (appid) {
+ free(appid);
+ appid = NULL;
+ }
return r;
+ }
ecore_main_loop_begin();
aul_status_update(STATUS_DYING);
Ecore_Wl_Window *wl_win;
struct wl_surface *surface;
char buffer[256];
+ int rots[3] = {0};
if (!_is_widget_feature_enabled()) {
_E("not supported"); /* LCOV_EXCL_LINE */
goto fault; /* LCOV_EXCL_LINE */
}
+ elm_win_wm_rotation_preferred_rotation_set(ret_win, -1);
+ elm_win_wm_rotation_available_rotations_set(ret_win, rots, 1);
+
wl_win = elm_win_wl_window_get(ret_win);
if (wl_win == NULL) {
_E("failed to get wayland window"); /* LCOV_EXCL_LINE */
_E("failed to get surface"); /* LCOV_EXCL_LINE */
goto fault; /* LCOV_EXCL_LINE */
}
-
- aul_rsm_provider_remote_enable(cxt->id, surface);
+ screen_connector_provider_remote_enable(cxt->id, surface);
ecore_wl_window_class_name_set(wl_win, cxt->id);
elm_win_aux_hint_add(ret_win, "wm.policy.win.user.geometry", "1");
else
context->content = NULL;
+ free(raw);
if (ret < 0) {
/* LCOV_EXCL_START */
_E("failed to send content info: %s of %s (%d)", context->id,