return output_type;
}
-/*LCOV_EXCL_STOP*/
-/*LCOV_EXCL_START*/
+
static eom_output_mode_e
_convert_to_eom_output_mode(enum wl_eom_mode eom_mode)
{
return output_mode;
}
-/*LCOV_EXCL_STOP*/
-/*LCOV_EXCL_START*/
+
static eom_output_attribute_e
_convert_to_eom_output_attribute(enum wl_eom_attribute eom_attribute)
{
return output_attribute;
}
-/*LCOV_EXCL_STOP*/
-/*LCOV_EXCL_START*/
+
static eom_output_attribute_state_e
_convert_to_eom_output_attribute_state(
enum wl_eom_attribute_state eom_attribute_state)
return output_attribute_state;
}
-/*LCOV_EXCL_STOP*/
-/*LCOV_EXCL_START*/
+
static enum wl_eom_attribute
_convert_to_wl_eom_attribute(eom_output_attribute_e attr)
{
return eom_attribute;
}
-/*LCOV_EXCL_STOP*/
-/*LCOV_EXCL_START*/
+
static void
_eom_wayland_client_call_notify(EomWaylandOutput *eom_wl_output,
eom_output_notify_type_e type)
if (array)
g_array_free(array, FALSE);
}
-/*LCOV_EXCL_STOP*/
-/*LCOV_EXCL_START*/
+
static EomWaylandOutput *
_eom_wayland_client_find_output_from_wl_output(
struct wl_list *eom_wl_output_list, int output_id)
EomWaylandOutput *ret = NULL;
if (!wl_list_empty(eom_wl_output_list)) {
- wl_list_for_each_safe(eom_wl_output,
- tmp, eom_wl_output_list, link) {
+ wl_list_for_each_safe(eom_wl_output, tmp, eom_wl_output_list, link) {
if (eom_wl_output->id == output_id) {
ret = eom_wl_output;
break;
return ret;
}
-/*LCOV_EXCL_STOP*/
-/*LCOV_EXCL_START*/
+
static EomWaylandOutput *
_eom_wayland_client_find_output_from_eom_output(
struct wl_list *eom_wl_output_list, eom_output_id id)
EomWaylandOutput *ret = NULL;
if (!wl_list_empty(eom_wl_output_list)) {
- wl_list_for_each_safe(eom_wl_output,
- tmp, eom_wl_output_list, link) {
+ wl_list_for_each_safe(eom_wl_output, tmp, eom_wl_output_list, link) {
if (eom_wl_output->id == id) {
ret = eom_wl_output;
break;
eom_client_info->num_outputs = count;
}
-/*LCOV_EXCL_STOP*/
-/*LCOV_EXCL_START*/
+
static void
_eom_wl_eom_output_info(void *data,
struct wl_eom *wl_eom,
INFO("INFO send connection: %d", connection);
if (connection == WL_EOM_STATUS_CONNECTION)
- _eom_wayland_client_call_notify(eom_wl_output,
- EOM_OUTPUT_NOTIFY_ADD);
+ _eom_wayland_client_call_notify(eom_wl_output, EOM_OUTPUT_NOTIFY_ADD);
else if (connection == WL_EOM_STATUS_DISCONNECTION)
- _eom_wayland_client_call_notify(eom_wl_output,
- EOM_OUTPUT_NOTIFY_REMOVE);
+ _eom_wayland_client_call_notify(eom_wl_output, EOM_OUTPUT_NOTIFY_REMOVE);
}
/* check the eom mode and call the notify */
INFO("INFO send mode:%d", mode);
- _eom_wayland_client_call_notify(eom_wl_output,
- EOM_OUTPUT_NOTIFY_MODE_CHANGED);
+ _eom_wayland_client_call_notify(eom_wl_output, EOM_OUTPUT_NOTIFY_MODE_CHANGED);
}
if (skip)
INFO("INFO NEW send attribute:%d", attribute);
INFO("INFO NEW send attribute state:%d", attribute_state);
- _eom_wayland_client_call_notify(eom_wl_output,
- EOM_OUTPUT_NOTIFY_ATTRIBUTE_CHANGED);
+ _eom_wayland_client_call_notify(eom_wl_output, EOM_OUTPUT_NOTIFY_ATTRIBUTE_CHANGED);
}
eom_wl_output->error = error;
wl_list_insert(&eom_client_info->eom_wl_output_list, &eom_wl_output->link);
}
}
-/*LCOV_EXCL_STOP*/
-/*LCOV_EXCL_START*/
+
static void
_eom_wl_eom_output_type(void *data,
struct wl_eom *wl_eom,
eom_wl_output->eom_status = status;
if (status == WL_EOM_STATUS_CONNECTION)
- _eom_wayland_client_call_notify(eom_wl_output,
- EOM_OUTPUT_NOTIFY_ADD);
+ _eom_wayland_client_call_notify(eom_wl_output, EOM_OUTPUT_NOTIFY_ADD);
else if (status == WL_EOM_STATUS_DISCONNECTION)
- _eom_wayland_client_call_notify(eom_wl_output,
- EOM_OUTPUT_NOTIFY_REMOVE);
+ _eom_wayland_client_call_notify(eom_wl_output, EOM_OUTPUT_NOTIFY_REMOVE);
}
}
-/*LCOV_EXCL_STOP*/
-/*LCOV_EXCL_START*/
+
static void
_eom_wl_eom_output_mode(void *data,
struct wl_eom *wl_eom,
if (eom_wl_output->eom_mode != mode) {
eom_wl_output->eom_mode = mode;
- _eom_wayland_client_call_notify(eom_wl_output,
- EOM_OUTPUT_NOTIFY_MODE_CHANGED);
+ _eom_wayland_client_call_notify(eom_wl_output, EOM_OUTPUT_NOTIFY_MODE_CHANGED);
}
}
-/*LCOV_EXCL_STOP*/
-/*LCOV_EXCL_START*/
+
static void
_eom_wl_eom_output_attribute(void *data,
struct wl_eom *wl_eom,
eom_wl_output->eom_attribute = attribute;
eom_wl_output->eom_attribute_state = attribute_state;
- _eom_wayland_client_call_notify(eom_wl_output,
- EOM_OUTPUT_NOTIFY_ATTRIBUTE_CHANGED);
+ _eom_wayland_client_call_notify(eom_wl_output, EOM_OUTPUT_NOTIFY_ATTRIBUTE_CHANGED);
}
eom_wl_output->error = error;
_eom_wl_eom_output_set_window,
};
-
static void
_eom_wl_registry_handle_global(void *data, struct wl_registry *registry,
uint32_t name, const char *interface, uint32_t version)
EomWaylandOutput *eom_wl_output = NULL;
EomWaylandOutput *tmp = NULL;
- wl_list_for_each_safe(eom_wl_output, tmp,
- &wl_client_info.eom_wl_output_list, link) {
+ wl_list_for_each_safe(eom_wl_output, tmp, &wl_client_info.eom_wl_output_list, link) {
if (eom_wl_output->eom_type == WL_EOM_TYPE_NONE) {
WARN("[EOM_CLIENT] eom_type is NONE. remove output:%d\n",
eom_wl_output->id);
/* remove all eom_wl_outputs */
if (!wl_list_empty(&wl_client_info.eom_wl_output_list)) {
- wl_list_for_each_safe(eom_wl_output, tmp,
- &wl_client_info.eom_wl_output_list, link) {
+ wl_list_for_each_safe(eom_wl_output, tmp, &wl_client_info.eom_wl_output_list, link) {
if (eom_wl_output->output)
wl_output_destroy(eom_wl_output->output);
free(eom_wl_output);
/*LCOV_EXCL_START*/
array = g_array_new(FALSE, FALSE, sizeof(GValue));
- wl_list_for_each_safe(eom_wl_output, tmp,
- &wl_client_info.eom_wl_output_list, link) {
-
+ wl_list_for_each_safe(eom_wl_output, tmp, &wl_client_info.eom_wl_output_list, link) {
if (eom_wl_output) {
g_value_init(&v, G_TYPE_INT);
g_value_set_int(&v, eom_wl_output->id);
output_info->output_mode = output_mode;
}
-/*LCOV_EXCL_STOP*/
-/*LCOV_EXCL_START*/
+
static void
_eom_set_output_attribute(eom_output_info *output_info,
eom_output_attribute_e attribute)
output_info->attribute = attribute;
}
-/*LCOV_EXCL_STOP*/
-/*LCOV_EXCL_START*/
+
static void
_eom_set_output_attribute_state(eom_output_info *output_info,
eom_output_attribute_state_e state)
output_info->state = state;
}
-/*LCOV_EXCL_STOP*/
-/*LCOV_EXCL_START*/
+
static void
_eom_set_output_info_size(eom_output_info *output_info,
int w, int h)
output_info->width = w;
output_info->height = h;
}
-/*LCOV_EXCL_STOP*/
-/*LCOV_EXCL_START*/
+
static void
_eom_set_output_info_phy_size(eom_output_info *output_info,
int w_mm, int h_mm)
output_info->mm_width = w_mm;
output_info->mm_height = h_mm;
}
-/*LCOV_EXCL_STOP*/
-/*LCOV_EXCL_START*/
+
static void
_eom_reset_output_info(eom_output_info *output_info)
{
output_info->mm_width = 0;
output_info->mm_height = 0;
}
-/*LCOV_EXCL_STOP*/
-/*LCOV_EXCL_START*/
+
static void
_eom_output_call_notify_cb(eom_output_notify_s *notify)
{
}
}
}
-/*LCOV_EXCL_STOP*/
-/*LCOV_EXCL_START*/
+
static void
_eom_output_process_notify_cb(void *data, GArray *array)
{
exit:
_eom_mutex_unlock();
}
-/*LCOV_EXCL_STOP*/
+
static eom_output_info*
_eom_find_output_info(eom_output_id output_id)
{
GList *l;
for (l = output_info_list; l; l = g_list_next(l)) {
-/*LCOV_EXCL_START*/
eom_output_info *output_info = (eom_output_info *)l->data;
if (output_info && (output_id == output_info->id))
return output_info;
-/*LCOV_EXCL_STOP*/
}
return NULL;
}
-/*LCOV_EXCL_START*/
+
static void
_eom_free_output_info(eom_output_info **output_info)
{
*output_info = NULL;
}
}
-/*LCOV_EXCL_STOP*/
-/*LCOV_EXCL_START*/
+
static eom_output_info*
_eom_alloc_output_info(int output_id, int output_type)
{