/**************************************************************************
-
-eom (external output manager)
-
-Copyright 2014 Samsung Electronics co., Ltd. All Rights Reserved.
-
-Contact:
-SooChan Lim <sc1.lim@samsung.com>
-Boram Park <boram1288.park@samsung.com>
-Changyeon Lee <cyeon.lee@samsung.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a
-copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sub license, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice (including the
-next paragraph) shall be included in all copies or substantial portions
-of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
-IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
-ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
+ *
+ * eom (external output manager)
+ *
+ * Copyright 2014 Samsung Electronics co., Ltd. All Rights Reserved.
+ *
+ * Contact:
+ * SooChan Lim <sc1.lim@samsung.com>
+ * Boram Park <boram1288.park@samsung.com>
+ * Changyeon Lee <cyeon.lee@samsung.com>
+ * JunKyeong Kim <jk0430.kim@samsung.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sub license, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial portions
+ * of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+ * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
**************************************************************************/
#ifndef __EOM_CONNECT_H__
* @brief Set mode to external output.
* @param[in] output : The pointer of external output instance
* @param[in] output_id : eom output id
- * @return #EOM_ERROR_NONE if this function succeeds, otherwise error status value
+ * @return #EOM_ERROR_NONE if this function succeeds.
+ * otherwise error status value.
* @retval #EOM_ERROR_NONE Successful
* @retval #EOM_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #EOM_ERROR_SEND_MESSAGE_FAILE Message sending failure
/**************************************************************************
-
-External Output Manager (EOM)
-
-Copyright 2014 Samsung Electronics co., Ltd. All Rights Reserved.
-
-Contact:
-SooChan Lim <sc1.lim@samsung.com>
-Boram Park <boram1288.park@samsung.com>
-Changyeon Lee <cyeon.lee@samsung.com>
-JunKyeong Kim <jk0430.kim@samsung.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a
-copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sub license, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice (including the
-next paragraph) shall be included in all copies or substantial portions
-of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
-IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
-ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
+ *
+ * eom (external output manager)
+ *
+ * Copyright 2014 Samsung Electronics co., Ltd. All Rights Reserved.
+ *
+ * Contact:
+ * SooChan Lim <sc1.lim@samsung.com>
+ * Boram Park <boram1288.park@samsung.com>
+ * Changyeon Lee <cyeon.lee@samsung.com>
+ * JunKyeong Kim <jk0430.kim@samsung.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sub license, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial portions
+ * of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+ * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
**************************************************************************/
#ifndef __EOM_H__
* @file eom.h
*/
#ifndef TIZEN_ERROR_EOM
-#define TIZEN_ERROR_EOM -0x02F20000 | 0x00
+#define TIZEN_ERROR_EOM (-0x02F20000 | 0x00)
#endif
/**
* @brief Enumeration of External Output Manager (EOM) error type
typedef unsigned int eom_output_id;
/**
- * @brief Called when External Output Manager (EOM) module sends output connection notification.
+ * @brief Called when External Output Manager (EOM) module sends output
+ * connection notification.
* @since_tizen 2.4
* @param[in] output_id The output id which is connected output
- * @param[in] user_data The pointer of user data which is passed to eom_output_added_cb function
+ * @param[in] user_data The pointer of user data which is passed to
+ * eom_output_added_cb function
* @see eom_set_output_added_cb()
* @see eom_unset_output_added_cb()
*/
typedef void (*eom_output_added_cb)(eom_output_id output_id, void *user_data);
/**
- * @brief Called when External Output Manager (EOM) module sends output disconnection notification.
+ * @brief Called when External Output Manager (EOM) module sends output
+ * disconnection notification.
* @since_tizen 2.4
* @param[in] output_id The output id which is connected output
- * @param[in] user_data The pointer of user data which is passed to eom_output_removed_cb function
+ * @param[in] user_data The pointer of user data which is passed to
+ * eom_output_removed_cb function
* @see eom_set_output_removed_cb()
* @see eom_unset_output_removed_cb()
*/
typedef void (*eom_output_removed_cb)(eom_output_id output_id, void *user_data);
/**
- * @brief Called when External Output Manager (EOM) module sends output mode changing notification.
+ * @brief Called when External Output Manager (EOM) module sends output
+ * mode changing notification.
* @since_tizen 2.4
* @param[in] output_id The output id which is connected output
- * @param[in] user_data The pointer of user data which is passed to eom_mode_changed_cb function
+ * @param[in] user_data The pointer of user data which is passed to
+ * eom_mode_changed_cb function
* @see eom_set_mode_changed_cb()
* @see eom_unset_mode_changed_cb()
*/
typedef void (*eom_mode_changed_cb)(eom_output_id output_id, void *user_data);
/**
- * @brief Called when External Output Manager (EOM) module sends output attribute changing notification.
+ * @brief Called when External Output Manager (EOM) module sends output
+ * attribute changing notification.
* @since_tizen 2.4
* @param[in] output_id The output id which is connected output
- * @param[in] user_data The pointer of user data which is passed to eom_attribute_changed_cb function
+ * @param[in] user_data The pointer of user data which is passed to
+ * eom_attribute_changed_cb function
* @see eom_set_attribute_changed_cb()
* @see eom_unset_attribute_changed_cb()
*/
/**
* @brief Finalizes External Output Manager (EOM).
- * @details User should call this function after using EOM to release all resources of EOM.
+ * @details User should call this function after using EOM to release all
+ * resources of EOM.
* @since_tizen 2.4
* @see eom_init()
*/
void eom_deinit(void);
/**
- * @brief Registers a callback function to get output connection notification from External Output Manager (EOM) module.
+ * @brief Registers a callback function to get output connection notification
+ * from External Output Manager (EOM) module.
* @since_tizen 2.4
- * @param[in] callback The function pointer of eom_output_added_cb callback function
- * @param[in] user_data The pointer of user data which is passed to eom_output_added_cb function
+ * @param[in] callback The function pointer of eom_output_added_cb callback
+ * function
+ * @param[in] user_data The pointer of user data which is passed to
+ * eom_output_added_cb function
* @return 0 on success, otherwise a negative error value
* @retval #EOM_ERROR_NONE Successful
* @retval #EOM_ERROR_OUT_OF_MEMORY Memory allocation failure
/**
* @brief Unregisters the callback function.
* @since_tizen 2.4
- * @param[in] callback The function pointer of eom_output_added_cb callback function
+ * @param[in] callback The function pointer of eom_output_added_cb callback
+ * function
* @return 0 on success, otherwise a negative error value
* @retval #EOM_ERROR_NONE Successful
* @retval #EOM_ERROR_INVALID_PARAMETER Invalid parameter
int eom_unset_output_added_cb(eom_output_added_cb callback);
/**
- * @brief Registers a callback function to get output disconnection notification from External Output Manager (EOM) module.
+ * @brief Registers a callback function to get output disconnection
+ * notification from External Output Manager (EOM) module.
* @since_tizen 2.4
- * @param[in] callback The function pointer of eom_output_removed_cb callback function
- * @param[in] user_data The pointer of user data which is passed to eom_output_removed_cb function
+ * @param[in] callback The function pointer of eom_output_removed_cb callback
+ * function
+ * @param[in] user_data The pointer of user data which is passed to
+ * eom_output_removed_cb function
* @return 0 on success, otherwise a negative error value
* @retval #EOM_ERROR_NONE Successful
* @retval #EOM_ERROR_OUT_OF_MEMORY Memory allocation failure
/**
* @brief Unregisters the callback function.
* @since_tizen 2.4
- * @param[in] callback The function pointer of eom_output_removed_cb callback function
+ * @param[in] callback The function pointer of eom_output_removed_cb callback
+ * function
* @return 0 on success, otherwise a negative error value
* @retval #EOM_ERROR_NONE Successful
* @retval #EOM_ERROR_INVALID_PARAMETER Invalid parameter
int eom_unset_output_removed_cb(eom_output_removed_cb callback);
/**
- * @brief Registers a callback function to get output mode changing notification from External Output Manager (EOM) module.
+ * @brief Registers a callback function to get output mode changing
+ * notification from External Output Manager (EOM) module.
* @since_tizen 2.4
- * @param[in] callback The function pointer of eom_mode_changed_cb callback function
- * @param[in] user_data The pointer of user data which is passed to eom_mode_changed_cb function
+ * @param[in] callback The function pointer of eom_mode_changed_cb callback
+ * function
+ * @param[in] user_data The pointer of user data which is passed to
+ * eom_mode_changed_cb function
* @return 0 on success, otherwise a negative error value
* @retval #EOM_ERROR_NONE Successful
* @retval #EOM_ERROR_OUT_OF_MEMORY Memory allocation failure
/**
* @brief Unregisters the callback function.
* @since_tizen 2.4
- * @param[in] callback The function pointer of eom_mode_changed_cb callback function
+ * @param[in] callback The function pointer of eom_mode_changed_cb callback
+ * function
* @return 0 on success, otherwise a negative error value
* @retval #EOM_ERROR_NONE Successful
* @retval #EOM_ERROR_INVALID_PARAMETER Invalid parameter
int eom_unset_mode_changed_cb(eom_mode_changed_cb callback);
/**
- * @brief Registers a callback function to get output attribute changing notification from External Output Manager (EOM) module.
+ * @brief Registers a callback function to get output attribute changing
+ * notification from External Output Manager (EOM) module.
* @since_tizen 2.4
- * @param[in] callback The function pointer of eom_attribute_changed_cb callback function
- * @param[in] user_data The pointer of user data which is passed to eom_attribute_changed_cb function
+ * @param[in] callback The function pointer of eom_attribute_changed_cb
+ * callback function
+ * @param[in] user_data The pointer of user data which is passed to
+ * eom_attribute_changed_cb function
* @return 0 on success, otherwise a negative error value
* @retval #EOM_ERROR_NONE Successful
* @retval #EOM_ERROR_OUT_OF_MEMORY Memory allocation failure
/**
* @brief Unregisters the callback function.
* @since_tizen 2.4
- * @param[in] callback The function pointer of eom_attribute_changed_cb callback function
+ * @param[in] callback The function pointer of eom_attribute_changed_cb
+ * callback function
* @return 0 on success, otherwise a negative error value
* @retval #EOM_ERROR_NONE Successful
* @retval #EOM_ERROR_INVALID_PARAMETER Invalid parameter
/**
* @brief Gets the IDs and count of external output.
- * @details This function returns the IDs of external output which are available to connect
- * to target device, and the count of them also. User can get the id of external output
+ * @details This function returns the IDs of external output which are
+ * available to connect to target device, and the count of them
+ * also. User can get the id of external output.
* which user want to watch.
* @since_tizen 2.4
- * @remarks User should free return value by using free().\n
+ * @remarks User should free return value by using free().
* The specific error code can be obtained using the get_last_result() method.
* Error codes are described in Exception section.
* @param[out] count The count of the eom_output_id supported by system
- * @return The array of the eom_output_id if this function succeeds, otherwise NULL
+ * @return The array of the eom_output_id if this function succeeds, otherwise
+ * NULL
* @retval The pointer of #eom_output_id
* @exception #EOM_ERROR_NONE Successful
* @exception #EOM_ERROR_INVALID_PARAMETER Invalid parameter
/**
* @brief Sets the attribute of the external output ID.
- * @details The application can set the External Output Manager (EOM) attribute to the external output ID.
+ * @details The application can set the External Output Manager (EOM) attribute
+ * to the external output ID.
* The EOM module manages the windows to display on external output and
* control the policy of external output. The application can recognize
* the attribute state and manage the resources when the application receives
* @retval #EOM_ERROR_NONE Successful
* @retval #EOM_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #EOM_ERROR_NO_SUCH_DEVICE Invalid external output instance
- * @retval #EOM_ERROR_MESSAGE_SENDING_FAILURE Communication failure with EOM module
+ * @retval #EOM_ERROR_MESSAGE_SENDING_FAILURE Communication failure with EOM
+ * module
* @retval #EOM_ERROR_MESSAGE_OPERATION_FAILURE Operation failure
* @pre eom_init()
* @pre eom_get_eom_output_ids()
int eom_set_output_attribute(eom_output_id output_id, eom_output_attribute_e attr);
/**
- * @brief Sets window to the external output best resolution of external output device.
+ * @brief Sets window to the external output best resolution of external output
+ * device.
* @since_tizen 2.4
* @param[in] output_id The id of external output device
* @param[in] win The pointer of evas object
* @retval #EOM_ERROR_NONE Successful
* @retval #EOM_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #EOM_ERROR_NO_SUCH_DEVICE Invalid external output instance
- * @retval #EOM_ERROR_MESSAGE_SENDING_FAILURE Communication failure with EOM module
+ * @retval #EOM_ERROR_MESSAGE_SENDING_FAILURE Communication failure with EOM
+ * module
* @retval #EOM_ERROR_MESSAGE_OPERATION_FAILURE Operation failure
* @pre eom_init()
* @pre eom_get_eom_output_ids()
/**************************************************************************
-
-eom (external output manager)
-
-Copyright 2014 Samsung Electronics co., Ltd. All Rights Reserved.
-
-Contact:
-SooChan Lim <sc1.lim@samsung.com>
-Boram Park <boram1288.park@samsung.com>
-Changyeon Lee <cyeon.lee@samsung.com>
-JunKyeong Kim <jk0430.kim@samsung.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a
-copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sub license, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice (including the
-next paragraph) shall be included in all copies or substantial portions
-of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
-IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
-ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
+ *
+ * eom (external output manager)
+ *
+ * Copyright 2014 Samsung Electronics co., Ltd. All Rights Reserved.
+ *
+ * Contact:
+ * SooChan Lim <sc1.lim@samsung.com>
+ * Boram Park <boram1288.park@samsung.com>
+ * Changyeon Lee <cyeon.lee@samsung.com>
+ * JunKyeong Kim <jk0430.kim@samsung.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sub license, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial portions
+ * of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+ * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
**************************************************************************/
#ifndef __EOM_INTERNAL_H__
/**************************************************************************
-
-eom (external output manager)
-
-Copyright 2014 Samsung Electronics co., Ltd. All Rights Reserved.
-
-Contact:
-SooChan Lim <sc1.lim@samsung.com>
-Boram Park <boram1288.park@samsung.com>
-Changyeon Lee <cyeon.lee@samsung.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a
-copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sub license, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice (including the
-next paragraph) shall be included in all copies or substantial portions
-of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
-IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
-ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
+ *
+ * eom (external output manager)
+ *
+ * Copyright 2014 Samsung Electronics co., Ltd. All Rights Reserved.
+ *
+ * Contact:
+ * SooChan Lim <sc1.lim@samsung.com>
+ * Boram Park <boram1288.park@samsung.com>
+ * Changyeon Lee <cyeon.lee@samsung.com>
+ * JunKyeong Kim <jk0430.kim@samsung.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sub license, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial portions
+ * of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+ * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
**************************************************************************/
-
#include <config.h>
#include "eom.h"
/**************************************************************************
-
-eom (external output manager)
-
-Copyright 2014 Samsung Electronics co., Ltd. All Rights Reserved.
-
-Contact:
-SooChan Lim <sc1.lim@samsung.com>
-Boram Park <boram1288.park@samsung.com>
-Changyeon Lee <cyeon.lee@samsung.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a
-copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sub license, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice (including the
-next paragraph) shall be included in all copies or substantial portions
-of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
-IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
-ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
+ *
+ * eom (external output manager)
+ *
+ * Copyright 2014 Samsung Electronics co., Ltd. All Rights Reserved.
+ *
+ * Contact:
+ * SooChan Lim <sc1.lim@samsung.com>
+ * Boram Park <boram1288.park@samsung.com>
+ * Changyeon Lee <cyeon.lee@samsung.com>
+ * JunKyeong Kim <jk0430.kim@samsung.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sub license, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial portions
+ * of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+ * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
**************************************************************************/
#include <config.h>
switch (type) {
case G_TYPE_INT:
- {
- int integer = g_value_get_int(v);
-
- if (!dbus_message_iter_append_basic(&iter, DBUS_TYPE_INT32, &integer)) {
- ERR("[EOM_CLIENT:%s] failed: int append", client_info.name);
- return 0;
- }
+ {
+ int integer = g_value_get_int(v);
+
+ if (!dbus_message_iter_append_basic(&iter,
+ DBUS_TYPE_INT32, &integer)) {
+ ERR("[EOM_CLIENT:%s] failed: int append",
+ client_info.name);
+ return 0;
}
+ }
break;
case G_TYPE_UINT:
- {
- unsigned int uinteger = g_value_get_uint(v);
-
- if (!dbus_message_iter_append_basic(&iter, DBUS_TYPE_UINT32, &uinteger)) {
- ERR("[EOM_CLIENT:%s] failed: uint append", client_info.name);
- return 0;
- }
+ {
+ unsigned int uinteger = g_value_get_uint(v);
+
+ if (!dbus_message_iter_append_basic(&iter,
+ DBUS_TYPE_UINT32, &uinteger)) {
+ ERR("[EOM_CLIENT:%s] failed: uint append",
+ client_info.name);
+ return 0;
}
+ }
break;
case G_TYPE_STRING:
- {
- char *string = (char *)g_value_get_string(v);
-
- if (!dbus_message_iter_append_basic(&iter, DBUS_TYPE_STRING, (void *)&string)) {
- ERR("[EOM_CLIENT:%s] failed: uint append", client_info.name);
- return 0;
- }
+ {
+ char *string = (char *)g_value_get_string(v);
+
+ if (!dbus_message_iter_append_basic(&iter,
+ DBUS_TYPE_STRING, (void *)&string)) {
+ ERR("[EOM_CLIENT:%s] failed: uint append",
+ client_info.name);
+ return 0;
}
+ }
break;
case G_TYPE_VARIANT:
- {
- GVariant *variant = g_value_get_variant(v);
- int data_size = g_variant_get_size(variant);
- void *data = (void *)g_variant_get_data(variant);
- DBusMessageIter sub;
-
- RETV_IF_FAIL(data != NULL, 0);
- RETV_IF_FAIL(data_size > 0, 0);
-
- dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY, "y", &sub);
- if (!dbus_message_iter_append_fixed_array(&sub, DBUS_TYPE_BYTE, (void *)&data, data_size)) {
- ERR("[EOM_CLIENT:%s] failed: uint append", client_info.name);
- return 0;
- }
- dbus_message_iter_close_container(&iter, &sub);
+ {
+ GVariant *variant = g_value_get_variant(v);
+ int data_size = g_variant_get_size(variant);
+ void *data = (void *)g_variant_get_data(variant);
+ DBusMessageIter sub;
+
+ RETV_IF_FAIL(data != NULL, 0);
+ RETV_IF_FAIL(data_size > 0, 0);
+
+ dbus_message_iter_open_container(&iter,
+ DBUS_TYPE_ARRAY, "y", &sub);
+ if (!dbus_message_iter_append_fixed_array(&sub,
+ DBUS_TYPE_BYTE, (void *)&data, data_size)) {
+ ERR("[EOM_CLIENT:%s] failed: uint append",
+ client_info.name);
+ return 0;
}
+ dbus_message_iter_close_container(&iter, &sub);
+ }
break;
default:
return 0;
int type = dbus_message_iter_get_arg_type(&iter);
GValue v = G_VALUE_INIT;
- INFO("[EOM_CLIENT:%s] type(%c(%d))", client_info.name, (char)type, type);
+ INFO("[EOM_CLIENT:%s] type(%c(%d))",
+ client_info.name, (char)type, type);
switch (type) {
case DBUS_TYPE_INT32:
- {
- int integer = 0;
- dbus_message_iter_get_basic(&iter, &integer);
- g_value_init(&v, G_TYPE_INT);
- g_value_set_int(&v, integer);
- array = g_array_append_val(array, v);
- g_value_unset(&v);
- }
+ {
+ int integer = 0;
+
+ dbus_message_iter_get_basic(&iter, &integer);
+ g_value_init(&v, G_TYPE_INT);
+ g_value_set_int(&v, integer);
+ array = g_array_append_val(array, v);
+ g_value_unset(&v);
+ }
break;
case DBUS_TYPE_UINT32:
- {
- unsigned int uinteger = 0;
- dbus_message_iter_get_basic(&iter, &uinteger);
- g_value_init(&v, G_TYPE_UINT);
- g_value_set_uint(&v, uinteger);
- array = g_array_append_val(array, v);
- g_value_unset(&v);
- }
+ {
+ unsigned int uinteger = 0;
+
+ dbus_message_iter_get_basic(&iter, &uinteger);
+ g_value_init(&v, G_TYPE_UINT);
+ g_value_set_uint(&v, uinteger);
+ array = g_array_append_val(array, v);
+ g_value_unset(&v);
+ }
break;
case DBUS_TYPE_STRING:
- {
- char *string = NULL;
- dbus_message_iter_get_basic(&iter, &string);
- g_value_init(&v, G_TYPE_STRING);
- g_value_set_string(&v, string);
- array = g_array_append_val(array, v);
- g_value_unset(&v);
- }
+ {
+ char *string = NULL;
+
+ dbus_message_iter_get_basic(&iter, &string);
+ g_value_init(&v, G_TYPE_STRING);
+ g_value_set_string(&v, string);
+ array = g_array_append_val(array, v);
+ g_value_unset(&v);
+ }
break;
default:
NEVER_GET_HERE();
g_array_free(array, FALSE);
return NULL;
}
- } while (dbus_message_iter_has_next(&iter) && dbus_message_iter_next(&iter));
+ } while (dbus_message_iter_has_next(&iter) &&
+ dbus_message_iter_next(&iter));
return array;
}
EomDBusClientMethod *method = *prev;
if (!strcmp(dbus_message_get_member(msg), method->name)) {
- GArray *array = _eom_dbus_convert_message_to_gvalue(msg);
+ GArray *array =
+ _eom_dbus_convert_message_to_gvalue(msg);
if (method->func)
method->func(method->data, array);
static DBusHandlerResult
-_eom_dbus_client_msg_handler(DBusConnection *connection, DBusMessage *msg, void *data)
+_eom_dbus_client_msg_handler(DBusConnection *connection,
+ DBusMessage *msg, void *data)
{
EomDBusClientInfo *info = (EomDBusClientInfo *)data;
{
DBusError err;
int ret;
- DBusObjectPathVTable vtable = {.message_function = _eom_dbus_client_msg_handler, };
+ DBusObjectPathVTable vtable = {
+ .message_function = _eom_dbus_client_msg_handler,
+ };
GIOChannel *channel;
dbus_error_init(&err);
goto free_err;
}
- ret = dbus_bus_request_name(info->conn, info->name, DBUS_NAME_FLAG_REPLACE_EXISTING, &err);
+ ret = dbus_bus_request_name(info->conn,
+ info->name, DBUS_NAME_FLAG_REPLACE_EXISTING, &err);
if (dbus_error_is_set(&err)) {
ERR("[EOM] failed: request name (%s)", err.message);
goto free_conn;
goto free_conn;
}
- snprintf(info->rule, sizeof(info->rule), "interface='%s'", EOM_DBUS_INTERFACE);
+ snprintf(info->rule, sizeof(info->rule),
+ "interface='%s'", EOM_DBUS_INTERFACE);
dbus_bus_add_match(info->conn, info->rule, &err);
dbus_connection_flush(info->conn);
goto free_name;
}
- if (!dbus_connection_register_object_path(info->conn, EOM_DBUS_PATH, &vtable, info)) {
+ if (!dbus_connection_register_object_path(info->conn,
+ EOM_DBUS_PATH, &vtable, info)) {
ERR("[EOM] failed: register object path");
goto free_match;
}
dbus_connection_set_exit_on_disconnect(info->conn, FALSE);
- if (!dbus_connection_add_filter(info->conn, _eom_dbus_client_msg_filter, info, NULL)) {
+ if (!dbus_connection_add_filter(info->conn,
+ _eom_dbus_client_msg_filter, info, NULL)) {
ERR("[EOM] failed: add filter (%s)", err.message);
goto free_register;
}
- if (!dbus_connection_get_unix_fd(info->conn, &info->fd) || info->fd < 0) {
+ if (!dbus_connection_get_unix_fd(info->conn,
+ &info->fd) || info->fd < 0) {
ERR("[EOM] failed: get fd");
goto free_filter;
}
g_io_channel_set_flags(channel, G_IO_FLAG_NONBLOCK, NULL);
info->src = g_io_create_watch(channel, G_IO_IN);
- g_source_set_callback(info->src, (GSourceFunc)_eom_dbus_client_cb, (gpointer)info, NULL);
+ g_source_set_callback(info->src,
+ (GSourceFunc)_eom_dbus_client_cb, (gpointer)info, NULL);
g_source_attach(info->src, NULL);
g_io_channel_unref(channel);
return 1;
free_filter:
- dbus_connection_remove_filter(info->conn, _eom_dbus_client_msg_filter, info);
+ dbus_connection_remove_filter(info->conn,
+ _eom_dbus_client_msg_filter, info);
free_register:
dbus_connection_unregister_object_path(info->conn, EOM_DBUS_PATH);
free_match:
{
EomDBusClientMethod **prev;
- for (prev = &client_info.methods; *prev; prev = &(*prev)->next);
+ for (prev = &client_info.methods; *prev; prev = &(*prev)->next)
+ ;
method->next = NULL;
*prev = method;
if (!dbus_initialized)
return;
- /* An output instance and a callback can be created and be added only by user.
- * If there is cb_info_list, it means that user is still
- * watching and interested with eom dbus message.
+ /* An output instance and a callback can be created
+ * and be added only by user. If there is cb_info_list,
+ * it means that user is still watching and interested
+ * with eom dbus message.
*/
if (cb_info_list)
return;
dbus_error_init(&err);
- msg = dbus_message_new_method_call(EOM_DBUS_SERVER, EOM_DBUS_PATH, EOM_DBUS_INTERFACE, method);
+ msg = dbus_message_new_method_call(EOM_DBUS_SERVER,
+ EOM_DBUS_PATH, EOM_DBUS_INTERFACE, method);
GOTO_IF_FAIL(msg != NULL, err_send);
INFO("[EOM_CLIENT:%s] Send message(%s)", client_info.name, method);
if (!_eom_dbus_convert_gvalue_to_message(array, msg)) {
- ERR("[EOM_CLIENT:%s] failed: gvalue_to_message", client_info.name);
+ ERR("[EOM_CLIENT:%s] failed: gvalue_to_message",
+ client_info.name);
goto err_send;
}
- reply_msg = dbus_connection_send_with_reply_and_block(client_info.conn, msg, REPLY_TIME, &err);
+ reply_msg = dbus_connection_send_with_reply_and_block(client_info.conn,
+ msg, REPLY_TIME, &err);
if (dbus_error_is_set(&err)) {
- ERR("[EOM_CLIENT:%s] failed: send (%s)", client_info.name, err.message);
+ ERR("[EOM_CLIENT:%s] failed: send (%s)",
+ client_info.name, err.message);
goto err_send;
}
GOTO_IF_FAIL(reply_msg != NULL, err_send);
}
GArray *
-eom_dbus_client_set_attribute(eom_output_id output_id, eom_output_attribute_e attr)
+eom_dbus_client_set_attribute(eom_output_id output_id,
+ eom_output_attribute_e attr)
{
GArray *array = NULL;
GArray *msg_array;
#ifdef HAVE_TIZEN_2_X
const char *profile = "desktop";
+
elm_win_profiles_set(win, &profile, 1);
#endif
elm_win_fullscreen_set(win, EINA_TRUE);
/**************************************************************************
-
-eom (external output manager)
-
-Copyright 2014 Samsung Electronics co., Ltd. All Rights Reserved.
-
-Contact:
-SooChan Lim <sc1.lim@samsung.com>
-Boram Park <boram1288.park@samsung.com>
-Changyeon Lee <cyeon.lee@samsung.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a
-copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sub license, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice (including the
-next paragraph) shall be included in all copies or substantial portions
-of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
-IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
-ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
+ *
+ * eom (external output manager)
+ *
+ * Copyright 2014 Samsung Electronics co., Ltd. All Rights Reserved.
+ *
+ * Contact:
+ * SooChan Lim <sc1.lim@samsung.com>
+ * Boram Park <boram1288.park@samsung.com>
+ * Changyeon Lee <cyeon.lee@samsung.com>
+ * JunKyeong Kim <jk0430.kim@samsung.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sub license, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial portions
+ * of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+ * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
**************************************************************************/
#ifndef __EOM_DBUS_H__
GArray *eom_dbus_client_get_output_ids(void);
GArray *eom_dbus_client_get_output_info(eom_output_id output_id);
-GArray *eom_dbus_client_set_attribute(eom_output_id output_id, eom_output_attribute_e attry);
+GArray *eom_dbus_client_set_attribute(eom_output_id output_id,
+ eom_output_attribute_e attry);
GArray *eom_dbus_client_set_window(eom_output_id output_id, Evas_Object *win);
GArray *eom_dbus_client_send_message(char *method, GArray *array);
/**************************************************************************
-
-eom (external output manager)
-
-Copyright 2014 Samsung Electronics co., Ltd. All Rights Reserved.
-
-Contact:
-SooChan Lim <sc1.lim@samsung.com>
-Boram Park <boram1288.park@samsung.com>
-Changyeon Lee <cyeon.lee@samsung.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a
-copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sub license, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice (including the
-next paragraph) shall be included in all copies or substantial portions
-of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
-IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
-ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
+ *
+ * eom (external output manager)
+ *
+ * Copyright 2014 Samsung Electronics co., Ltd. All Rights Reserved.
+ *
+ * Contact:
+ * SooChan Lim <sc1.lim@samsung.com>
+ * Boram Park <boram1288.park@samsung.com>
+ * Changyeon Lee <cyeon.lee@samsung.com>
+ * JunKyeong Kim <jk0430.kim@samsung.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sub license, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial portions
+ * of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+ * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
**************************************************************************/
#ifndef __EOM_LOG_H__
#ifdef HAVE_DLOG
#define LOG_TAG "EOM"
#include <dlog.h>
-#define INFO(fmt, arg...) \
- if (eom_debug_on) SECURE_SLOGI(fmt, ##arg)
-#define WARN(fmt, arg...) \
- if (eom_debug_on) SECURE_SLOGW(fmt, ##arg)
+#define INFO(fmt, arg...) {if (eom_debug_on) SECURE_SLOGI(fmt, ##arg)}
+#define WARN(fmt, arg...) {if (eom_debug_on) SECURE_SLOGW(fmt, ##arg)}
#define ERR(fmt, arg...) SECURE_SLOGE(fmt, ##arg)
-#define ERRNO(fmt, arg...) SECURE_SLOGE("(err=%s(%d)) "fmt, strerror(errno), errno, ##arg)
+#define ERRNO(fmt, arg...) SECURE_SLOGE("(err=%s(%d)) "fmt,\
+ strerror(errno), errno, ##arg)
#define FATAL(fmt, arg...) SECURE_SLOGF(fmt, ##arg)
#else /* HAVE_DLOG */
#include <stdlib.h>
-#define INFO(fmt, arg...) \
- if (eom_debug_on) fprintf(stdout, "[%s:%d] "fmt"\n", __FUNCTION__, __LINE__, ##arg)
-#define WARN(fmt, arg...) \
- if (eom_debug_on) fprintf(stderr, "[%s:%d] "fmt"\n", __FUNCTION__, __LINE__, ##arg)
-#define ERR(fmt, arg...) fprintf(stderr, "[%s:%d] "fmt"\n", __FUNCTION__, __LINE__, ##arg)
-#define ERRNO(fmt, arg...) fprintf(stderr, "[%s:%d](err=%s(%d)) "fmt"\n", __FUNCTION__, __LINE__, strerror(errno), errno, ##arg)
-#define FATAL(fmt, arg...) fprintf(stderr, "[%s:%d] "fmt"\n", __FUNCTION__, __LINE__, ##arg)
+#define INFO(fmt, arg...)\
+ {\
+ if (eom_debug_on)\
+ fprintf(stdout, "[%s:%d] "fmt"\n",\
+ __func__, __LINE__, ##arg);\
+ }
+#define WARN(fmt, arg...)\
+ {\
+ if (eom_debug_on)\
+ fprintf(stderr, "[%s:%d] "fmt"\n",\
+ __func__, __LINE__, ##arg);\
+ }
+#define ERR(fmt, arg...)\
+ fprintf(stderr, "[%s:%d] "fmt"\n", __func__, __LINE__, ##arg)
+#define ERRNO(fmt, arg...)\
+ fprintf(stderr, "[%s:%d](err=%s(%d)) "fmt"\n",\
+ __func__, __LINE__, strerror(errno), errno, ##arg)
+#define FATAL(fmt, arg...)\
+ fprintf(stderr, "[%s:%d] "fmt"\n",\
+ __func__, __LINE__, ##arg)
#endif /* HAVE_DLOG */
-#define WARN_IF_FAIL(cond) if (!(cond)) ERR("'%s' failed", #cond);
-#define RET_IF_FAIL(cond) {if (!(cond)) { ERR("'%s' failed", #cond); return; } }
-#define RETV_IF_FAIL(cond, val) {if (!(cond)) { ERR("'%s' failed", #cond); return val; } }
-#define RETV_IF_ERRNO(cond, val, errno) {if (!(cond)) { ERRNO("'%s' failed", #cond); return val; } }
-#define GOTO_IF_FAIL(cond, dst) {if (!(cond)) { ERR("'%s' failed", #cond); goto dst; } }
-#define GOTO_IF_ERRNO(cond, dst, errno) {if (!(cond)) { ERRNO("'%s' failed", #cond); goto dst; } }
-#define NEVER_GET_HERE() ERR("** NEVER GET HERE **\n")
+#define WARN_IF_FAIL(cond)\
+ {\
+ if (!(cond))\
+ ERR("'%s' failed", #cond);\
+ }
+#define RET_IF_FAIL(cond)\
+ {\
+ if (!(cond))\
+ ERR("'%s' failed", #cond);\
+ return;\
+ }
+#define RETV_IF_FAIL(cond, val)\
+ {\
+ if (!(cond))\
+ ERR("'%s' failed", #cond);\
+ return val;\
+ }
+#define RETV_IF_ERRNO(cond, val, errno)\
+ {\
+ if (!(cond))\
+ ERRNO("'%s' failed", #cond);\
+ return val;\
+ }
+#define GOTO_IF_FAIL(cond, dst)\
+ {\
+ if (!(cond))\
+ ERR("'%s' failed", #cond);\
+ goto dst;\
+ }
+#define GOTO_IF_ERRNO(cond, dst, errno)\
+ {\
+ if (!(cond))\
+ ERRNO("'%s' failed", #cond);\
+ goto dst;\
+ }
+#define NEVER_GET_HERE()\
+ ERR("** NEVER GET HERE **\n")
#endif /* __EOM_LOG_H__ */
/**************************************************************************
-
-eom (external output manager)
-
-Copyright 2014 Samsung Electronics co., Ltd. All Rights Reserved.
-
-Contact:
-SooChan Lim <sc1.lim@samsung.com>
-Boram Park <boram1288.park@samsung.com>
-Changyeon Lee <cyeon.lee@samsung.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a
-copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sub license, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice (including the
-next paragraph) shall be included in all copies or substantial portions
-of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
-IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
-ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
+ *
+ * eom (external output manager)
+ *
+ * Copyright 2014 Samsung Electronics co., Ltd. All Rights Reserved.
+ *
+ * Contact:
+ * SooChan Lim <sc1.lim@samsung.com>
+ * Boram Park <boram1288.park@samsung.com>
+ * Changyeon Lee <cyeon.lee@samsung.com>
+ * JunKyeong Kim <jk0430.kim@samsung.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sub license, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial portions
+ * of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+ * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
**************************************************************************/
#ifndef __EOM_PRIVATE_H__
/**************************************************************************
-
-eom (external output manager)
-
-Copyright 2014 Samsung Electronics co., Ltd. All Rights Reserved.
-
-Contact:
-SooChan Lim <sc1.lim@samsung.com>
-Boram Park <boram1288.park@samsung.com>
-Changyeon Lee <cyeon.lee@samsung.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a
-copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sub license, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice (including the
-next paragraph) shall be included in all copies or substantial portions
-of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
-IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
-ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
+ *
+ * eom (external output manager)
+ *
+ * Copyright 2014 Samsung Electronics co., Ltd. All Rights Reserved.
+ *
+ * Contact:
+ * SooChan Lim <sc1.lim@samsung.com>
+ * Boram Park <boram1288.park@samsung.com>
+ * Changyeon Lee <cyeon.lee@samsung.com>
+ * JunKyeong Kim <jk0430.kim@samsung.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sub license, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial portions
+ * of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+ * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
**************************************************************************/
#include <config.h>
} eom_output_notify_mode_change_s;
typedef struct {
- eom_output_notify_type_e type; /**< External output type */
- eom_output_id output_id; /**< External output id */
- eom_output_attribute_e attribute; /**< External output attribute */
- eom_output_attribute_state_e attr_state; /**< External output attribute state */
+ /**< External output type */
+ eom_output_notify_type_e type;
+ /**< External output id */
+ eom_output_id output_id;
+ /**< External output attribute */
+ eom_output_attribute_e attribute;
+ /**< External output attribute state */
+ eom_output_attribute_state_e attr_state;
} eom_output_notify_attribute_change_s;
typedef union {
- eom_output_notify_base_s base; /**< Base structure for eom notify */
- eom_output_notify_add_s output_add; /**< #EOM_OUTPUT_NOTIFY_ADD notify */
- eom_output_notify_remove_s output_remove; /**< #EOM_OUTPUT_NOTIFY_REMOVE notify */
- eom_output_notify_mode_change_s mode_change; /**< #EOM_OUTPUT_NOTIFY_MODE_CHANGED notify */
- eom_output_notify_attribute_change_s attr_change; /**< #EOM_OUTPUT_NOTIFY_ATTRIBUTE_CHANGED notify */
+ /**< Base structure for eom notify */
+ eom_output_notify_base_s base;
+ /**< #EOM_OUTPUT_NOTIFY_ADD notify */
+ eom_output_notify_add_s output_add;
+ /**< #EOM_OUTPUT_NOTIFY_REMOVE notify */
+ eom_output_notify_remove_s output_remove;
+ /**< #EOM_OUTPUT_NOTIFY_MODE_CHANGED notify */
+ eom_output_notify_mode_change_s mode_change;
+ /**< #EOM_OUTPUT_NOTIFY_ATTRIBUTE_CHANGED notify */
+ eom_output_notify_attribute_change_s attr_change;
} eom_output_notify_s;
typedef struct {
static bool
_eom_mutex_init(void)
{
- static bool init = false;
+ static bool init;
if (init)
return true;
}
static void
-_eom_set_output_info_mode(eom_output_info *output_info, int output_mode)
+_eom_set_output_info_mode(eom_output_info *output_info,
+ int output_mode)
{
RET_IF_FAIL(output_info != NULL);
}
static void
-_eom_set_output_attribute(eom_output_info *output_info, eom_output_attribute_e attribute)
+_eom_set_output_attribute(eom_output_info *output_info,
+ eom_output_attribute_e attribute)
{
RET_IF_FAIL(output_info != NULL);
}
static void
-_eom_set_output_attribute_state(eom_output_info *output_info, eom_output_attribute_state_e state)
+_eom_set_output_attribute_state(eom_output_info *output_info,
+ eom_output_attribute_state_e state)
{
RET_IF_FAIL(output_info != NULL);
}
static void
-_eom_set_output_info_size(eom_output_info *output_info, int w, int h)
+_eom_set_output_info_size(eom_output_info *output_info,
+ int w, int h)
{
RET_IF_FAIL(output_info != NULL);
}
static void
-_eom_set_output_info_phy_size(eom_output_info *output_info, int w_mm, int h_mm)
+_eom_set_output_info_phy_size(eom_output_info *output_info,
+ int w_mm, int h_mm)
{
RET_IF_FAIL(output_info != NULL);
GList *l;
for (l = cb_info_list; l; l = g_list_next(l)) {
- eom_output_notify_cb_info *cb_info = (eom_output_notify_cb_info *)l->data;
+ eom_output_notify_cb_info *cb_info =
+ (eom_output_notify_cb_info *)l->data;
if (!cb_info || cb_info->type != notify->base.type)
continue;
if (cb_info->add_func == NULL)
continue;
- INFO("cb_info: type(%d) output_id(%d)", notify->base.type, notify->base.output_id);
+ INFO("cb_info: type(%d) output_id(%d)",
+ notify->base.type, notify->base.output_id);
- cb_info->add_func(notify->base.output_id, cb_info->user_data);
+ cb_info->add_func(notify->base.output_id,
+ cb_info->user_data);
} else if (notify->base.type == EOM_OUTPUT_NOTIFY_REMOVE) {
if (cb_info->remove_func == NULL)
continue;
- INFO("cb_info: type(%d) output_id(%d)", notify->base.type, notify->base.output_id);
+ INFO("cb_info: type(%d) output_id(%d)",
+ notify->base.type, notify->base.output_id);
- cb_info->remove_func(notify->base.output_id, cb_info->user_data);
- } else if (notify->base.type == EOM_OUTPUT_NOTIFY_MODE_CHANGED) {
+ cb_info->remove_func(notify->base.output_id,
+ cb_info->user_data);
+ } else if (notify->base.type ==
+ EOM_OUTPUT_NOTIFY_MODE_CHANGED) {
if (cb_info->mode_change_func == NULL)
continue;
- INFO("cb_info: type(%d) output_id(%d)", notify->base.type, notify->base.output_id);
+ INFO("cb_info: type(%d) output_id(%d)",
+ notify->base.type, notify->base.output_id);
- cb_info->mode_change_func(notify->base.output_id, cb_info->user_data);
- } else if (notify->base.type == EOM_OUTPUT_NOTIFY_ATTRIBUTE_CHANGED) {
+ cb_info->mode_change_func(notify->base.output_id,
+ cb_info->user_data);
+ } else if (notify->base.type ==
+ EOM_OUTPUT_NOTIFY_ATTRIBUTE_CHANGED) {
if (cb_info->attribute_change_func == NULL)
continue;
- INFO("cb_info: type(%d) output_id(%d)", notify->base.type, notify->base.output_id);
+ INFO("cb_info: type(%d) output_id(%d)",
+ notify->base.type, notify->base.output_id);
- cb_info->attribute_change_func(notify->base.output_id, cb_info->user_data);
+ cb_info->attribute_change_func(notify->base.output_id,
+ cb_info->user_data);
} else {
- INFO("cb_info: type(%d) output_id(%d)", notify->base.type, notify->base.output_id);
+ INFO("cb_info: type(%d) output_id(%d)",
+ notify->base.type, notify->base.output_id);
continue;
}
}
{
eom_output_notify_s notify;
eom_output_info *output_info;
- int notify_type, output_id, output_type, output_mode, w, h, w_mm, h_mm, pid, attr, state;
+ int notify_type, output_id, output_type, output_mode;
+ int w, h, w_mm, h_mm, pid, attr, state;
GValue *v;
RET_IF_FAIL(array != NULL);
RET_IF_FAIL(array->len == 11);
- /* 11 args 0: notify_type 1:output_id, 2:output_type, 3:output_mode, 4:w, 5:h, 6:w_mm, 7:h_mm, 8:pid, 9:attr, 10:state */
+/* 11 args 0: notify_type 1:output_id, 2:output_type, 3:output_mode,
+ * 4:w, 5:h, 6:w_mm, 7:h_mm, 8:pid, 9:attr, 10:state
+ */
v = &g_array_index(array, GValue, 0);
notify_type = g_value_get_int(v);
v = &g_array_index(array, GValue, 1);
state = g_value_get_int(v);
INFO("notify: %d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d",
- notify_type, output_id, output_type, output_mode, w, h, w_mm, h_mm, pid, attr, state);
+ notify_type, output_id, output_type, output_mode,
+ w, h, w_mm, h_mm, pid, attr, state);
memset(¬ify, 0, sizeof(eom_output_notify_s));
notify.base.type = notify_type;
output_info->output_mode = output_mode;
INFO("'%s(%d)' mode changed(%d=>%d)",
- TYPE(output_type), output_id, old_mode, output_info->output_mode);
+ TYPE(output_type), output_id,
+ old_mode, output_info->output_mode);
notify.mode_change.old_mode = old_mode;
notify.mode_change.new_mode = output_info->output_mode;
break;
case EOM_OUTPUT_NOTIFY_ATTRIBUTE_CHANGED:
- {
- int current_pid = getpid();
-
- if (current_pid == pid) {
- INFO("'%s(%d)'pid(%d)", TYPE(output_type), output_id, pid);
- _eom_set_output_attribute(output_info, attr);
- _eom_set_output_attribute_state(output_info, state);
- notify.attr_change.output_id = output_id;
- notify.attr_change.attribute = attr;
- notify.attr_change.attr_state = state;
-
- _eom_mutex_unlock();
- _eom_output_call_notify_cb(¬ify);
- _eom_mutex_lock();
-
- if (state == EOM_OUTPUT_ATTRIBUTE_STATE_LOST)
- _eom_set_output_attribute_state(output_info, EOM_OUTPUT_ATTRIBUTE_STATE_NONE);
- }
+ {
+ int current_pid = getpid();
+
+ if (current_pid == pid) {
+ INFO("'%s(%d)'pid(%d)",
+ TYPE(output_type), output_id, pid);
+ _eom_set_output_attribute(output_info, attr);
+ _eom_set_output_attribute_state(output_info, state);
+ notify.attr_change.output_id = output_id;
+ notify.attr_change.attribute = attr;
+ notify.attr_change.attr_state = state;
+
+ _eom_mutex_unlock();
+ _eom_output_call_notify_cb(¬ify);
+ _eom_mutex_lock();
+
+ if (state == EOM_OUTPUT_ATTRIBUTE_STATE_LOST)
+ _eom_set_output_attribute_state(output_info,
+ EOM_OUTPUT_ATTRIBUTE_STATE_NONE);
}
+ }
break;
default:
/* destory output_info. */
for (l = output_info_list; l; l = g_list_next(l)) {
eom_output_info *output_info = (eom_output_info *)l->data;
+
output_info_list = g_list_remove(output_info_list, output_info);
_eom_free_output_info(&output_info);
*count = ret_array->len;
for (i = 0; i < ret_array->len; i++) {
GValue *v = &g_array_index(ret_array, GValue, i);
+
output_ids[i] = g_value_get_int(v);
INFO("output_ids: %d", output_ids[i]);
}
ret_array = eom_dbus_client_get_output_info(output_id);
#endif
if (ret_array) {
- /* 0:output_id, 1:output_type, 2:output_mode, 3:w, 4:h, 5:w_mm, 6:h_mm, 7:attribute */
- output_info = _eom_alloc_output_info(g_value_get_int(&g_array_index(ret_array, GValue, 0)),
- g_value_get_int(&g_array_index(ret_array, GValue, 1)));
+ /*
+ * 0:output_id, 1:output_type, 2:output_mode,
+ * 3:w, 4:h, 5:w_mm, 6:h_mm, 7:attribute
+ */
+ output_info = _eom_alloc_output_info(
+ g_value_get_int(&g_array_index(
+ ret_array, GValue, 0)),
+ g_value_get_int(&g_array_index(
+ ret_array, GValue, 1)));
if (output_info) {
- output_info_list = g_list_append(output_info_list, output_info);
- _eom_set_output_info_mode(output_info, g_value_get_int(&g_array_index(ret_array, GValue, 2)));
- _eom_set_output_info_size(output_info, g_value_get_int(&g_array_index(ret_array, GValue, 3)),
- g_value_get_int(&g_array_index(ret_array, GValue, 4)));
- _eom_set_output_info_phy_size(output_info, g_value_get_int(&g_array_index(ret_array, GValue, 5)),
- g_value_get_int(&g_array_index(ret_array, GValue, 6)));
- _eom_set_output_attribute(output_info, g_value_get_int(&g_array_index(ret_array, GValue, 7)));
- INFO("GetOutputInfo: %s(%d)", TYPE(output_info->type), output_info->id);
+ output_info_list = g_list_append(
+ output_info_list, output_info);
+ _eom_set_output_info_mode(output_info,
+ g_value_get_int(&g_array_index(
+ ret_array, GValue, 2)));
+ _eom_set_output_info_size(output_info,
+ g_value_get_int(&g_array_index(
+ ret_array, GValue, 3)),
+ g_value_get_int(&g_array_index(
+ ret_array, GValue, 4)));
+ _eom_set_output_info_phy_size(output_info,
+ g_value_get_int(&g_array_index(
+ ret_array, GValue, 5)),
+ g_value_get_int(&g_array_index(
+ ret_array, GValue, 6)));
+ _eom_set_output_attribute(output_info,
+ g_value_get_int(&g_array_index(
+ ret_array, GValue, 7)));
+ INFO("GetOutputInfo: %s(%d)",
+ TYPE(output_info->type),
+ output_info->id);
}
g_array_free(ret_array, FALSE);
_eom_mutex_lock();
for (l = cb_info_list; l; l = g_list_next(l)) {
- eom_output_notify_cb_info *cb_info = (eom_output_notify_cb_info *)l->data;
+ eom_output_notify_cb_info *cb_info =
+ (eom_output_notify_cb_info *)l->data;
- if (cb_info && (cb_info->add_func != NULL) && (cb_info->add_func == callback)) {
+ if (cb_info && (cb_info->add_func != NULL) &&
+ (cb_info->add_func == callback)) {
_eom_mutex_unlock();
return EOM_ERROR_NONE;
}
_eom_mutex_lock();
for (l = cb_info_list; l; l = g_list_next(l)) {
- eom_output_notify_cb_info *cb_info = (eom_output_notify_cb_info *)l->data;
+ eom_output_notify_cb_info *cb_info =
+ (eom_output_notify_cb_info *)l->data;
- if (!cb_info || (cb_info->add_func == NULL) || (cb_info->add_func != callback))
+ if (!cb_info || (cb_info->add_func == NULL) ||
+ (cb_info->add_func != callback))
continue;
cb_info_list = g_list_remove(cb_info_list, cb_info);
_eom_mutex_lock();
for (l = cb_info_list; l; l = g_list_next(l)) {
- eom_output_notify_cb_info *cb_info = (eom_output_notify_cb_info *)l->data;
+ eom_output_notify_cb_info *cb_info =
+ (eom_output_notify_cb_info *)l->data;
- if (cb_info && (cb_info->remove_func != NULL) && (cb_info->remove_func == callback)) {
+ if (cb_info && (cb_info->remove_func != NULL) &&
+ (cb_info->remove_func == callback)) {
_eom_mutex_unlock();
return EOM_ERROR_NONE;
}
_eom_mutex_lock();
for (l = cb_info_list; l; l = g_list_next(l)) {
- eom_output_notify_cb_info *cb_info = (eom_output_notify_cb_info *)l->data;
+ eom_output_notify_cb_info *cb_info =
+ (eom_output_notify_cb_info *)l->data;
- if (!cb_info || (cb_info->remove_func == NULL) || (cb_info->remove_func != callback))
+ if (!cb_info || (cb_info->remove_func == NULL) ||
+ (cb_info->remove_func != callback))
continue;
cb_info_list = g_list_remove(cb_info_list, cb_info);
_eom_mutex_lock();
for (l = cb_info_list; l; l = g_list_next(l)) {
- eom_output_notify_cb_info *cb_info = (eom_output_notify_cb_info *)l->data;
+ eom_output_notify_cb_info *cb_info =
+ (eom_output_notify_cb_info *)l->data;
- if (cb_info && (cb_info->mode_change_func != NULL) && (cb_info->mode_change_func == callback)) {
+ if (cb_info && (cb_info->mode_change_func != NULL) &&
+ (cb_info->mode_change_func == callback)) {
_eom_mutex_unlock();
return EOM_ERROR_NONE;
}
_eom_mutex_lock();
for (l = cb_info_list; l; l = g_list_next(l)) {
- eom_output_notify_cb_info *cb_info = (eom_output_notify_cb_info *)l->data;
+ eom_output_notify_cb_info *cb_info =
+ (eom_output_notify_cb_info *)l->data;
- if (!cb_info || (cb_info->mode_change_func == NULL) || (cb_info->mode_change_func != callback))
+ if (!cb_info || (cb_info->mode_change_func == NULL) ||
+ (cb_info->mode_change_func != callback))
continue;
cb_info_list = g_list_remove(cb_info_list, cb_info);
_eom_mutex_lock();
for (l = cb_info_list; l; l = g_list_next(l)) {
- eom_output_notify_cb_info *cb_info = (eom_output_notify_cb_info *)l->data;
+ eom_output_notify_cb_info *cb_info =
+ (eom_output_notify_cb_info *)l->data;
- if (cb_info && (cb_info->attribute_change_func != NULL) && (cb_info->attribute_change_func == callback)) {
+ if (cb_info && (cb_info->attribute_change_func != NULL) &&
+ (cb_info->attribute_change_func == callback)) {
_eom_mutex_unlock();
return EOM_ERROR_NONE;
}
_eom_mutex_lock();
for (l = cb_info_list; l; l = g_list_next(l)) {
- eom_output_notify_cb_info *cb_info = (eom_output_notify_cb_info *)l->data;
+ eom_output_notify_cb_info *cb_info =
+ (eom_output_notify_cb_info *)l->data;
- if (!cb_info || (cb_info->attribute_change_func == NULL) || (cb_info->attribute_change_func != callback))
+ if (!cb_info || (cb_info->attribute_change_func == NULL) ||
+ (cb_info->attribute_change_func != callback))
continue;
cb_info_list = g_list_remove(cb_info_list, cb_info);
}
API int
-eom_set_output_attribute(eom_output_id output_id, eom_output_attribute_e attr)
+eom_set_output_attribute(eom_output_id output_id,
+ eom_output_attribute_e attr)
{
eom_output_info *output_info = NULL;
bool ret = false;
GArray *ret_array;
RETV_IF_FAIL(output_id != 0, EOM_ERROR_INVALID_PARAMETER);
- RETV_IF_FAIL(attr > EOM_OUTPUT_ATTRIBUTE_NONE, EOM_ERROR_INVALID_PARAMETER);
- RETV_IF_FAIL(attr < EOM_OUTPUT_ATTRIBUTE_MAX, EOM_ERROR_INVALID_PARAMETER);
+ RETV_IF_FAIL(attr > EOM_OUTPUT_ATTRIBUTE_NONE,
+ EOM_ERROR_INVALID_PARAMETER);
+ RETV_IF_FAIL(attr < EOM_OUTPUT_ATTRIBUTE_MAX,
+ EOM_ERROR_INVALID_PARAMETER);
_eom_mutex_lock();
API int
-eom_get_output_type(eom_output_id output_id, eom_output_type_e *type)
+eom_get_output_type(eom_output_id output_id,
+ eom_output_type_e *type)
{
eom_output_info *output_info = NULL;
}
API int
-eom_get_output_mode(eom_output_id output_id, eom_output_mode_e *mode)
+eom_get_output_mode(eom_output_id output_id,
+ eom_output_mode_e *mode)
{
eom_output_info *output_info = NULL;
}
API int
-eom_get_output_attribute(eom_output_id output_id, eom_output_attribute_e *attribute)
+eom_get_output_attribute(eom_output_id output_id,
+ eom_output_attribute_e *attribute)
{
eom_output_info *output_info = NULL;
}
API int
-eom_get_output_attribute_state(eom_output_id output_id, eom_output_attribute_state_e *state)
+eom_get_output_attribute_state(eom_output_id output_id,
+ eom_output_attribute_state_e *state)
{
eom_output_info *output_info = NULL;
}
API int
-eom_get_output_physical_size(eom_output_id output_id, int *phy_width, int *phy_height)
+eom_get_output_physical_size(eom_output_id output_id,
+ int *phy_width, int *phy_height)
{
eom_output_info *output_info = NULL;
/**************************************************************************
-
-eom (external output manager)
-
-Copyright 2015 Samsung Electronics co., Ltd. All Rights Reserved.
-
-Contact:
-SooChan Lim <sc1.lim@samsung.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a
-copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sub license, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice (including the
-next paragraph) shall be included in all copies or substantial portions
-of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
-IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
-ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
+ *
+ * eom (external output manager)
+ *
+ * Copyright 2015 Samsung Electronics co., Ltd. All Rights Reserved.
+ *
+ * Contact:
+ * SooChan Lim <sc1.lim@samsung.com>
+ * Boram Park <boram1288.park@samsung.com>
+ * Changyeon Lee <cyeon.lee@samsung.com>
+ * JunKyeong Kim <jk0430.kim@samsung.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sub license, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial portions
+ * of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+ * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
**************************************************************************/
#include <config.h>
} EomWaylandOutput;
static EomWaylandClientInfo wl_client_info;
-static int eom_wayland_init = 0;
+static int eom_wayland_init;
static eom_output_type_e
_convert_to_eom_output_type(enum wl_eom_type eom_type)
{
eom_output_type_e output_type = EOM_OUTPUT_TYPE_UNKNOWN;
+
switch (eom_type) {
case WL_EOM_TYPE_NONE:
output_type = EOM_OUTPUT_TYPE_UNKNOWN;
output_type = EOM_OUTPUT_TYPE_VGA;
break;
case WL_EOM_TYPE_DIVI:
- output_type = EOM_OUTPUT_TYPE_DVII;;
+ output_type = EOM_OUTPUT_TYPE_DVII;
break;
case WL_EOM_TYPE_DIVD:
output_type = EOM_OUTPUT_TYPE_DVID;
_convert_to_eom_output_mode(enum wl_eom_mode eom_mode)
{
eom_output_mode_e output_mode = EOM_OUTPUT_MODE_NONE;
+
switch (eom_mode) {
case WL_EOM_MODE_NONE:
output_mode = EOM_OUTPUT_MODE_NONE;
_convert_to_eom_output_attribute(enum wl_eom_attribute eom_attribute)
{
eom_output_attribute_e output_attribute = EOM_OUTPUT_ATTRIBUTE_NONE;
+
switch (eom_attribute) {
case WL_EOM_ATTRIBUTE_NONE:
output_attribute = EOM_OUTPUT_ATTRIBUTE_NONE;
}
static eom_output_attribute_state_e
-_convert_to_eom_output_attribute_state(enum wl_eom_attribute_state eom_attribute_state)
+_convert_to_eom_output_attribute_state(
+ enum wl_eom_attribute_state eom_attribute_state)
{
- eom_output_attribute_state_e output_attribute_state = EOM_OUTPUT_ATTRIBUTE_STATE_NONE;
+ eom_output_attribute_state_e output_attribute_state =
+ EOM_OUTPUT_ATTRIBUTE_STATE_NONE;
+
switch (eom_attribute_state) {
case WL_EOM_ATTRIBUTE_STATE_NONE:
output_attribute_state = EOM_OUTPUT_ATTRIBUTE_STATE_NONE;
_convert_to_wl_eom_attribute(eom_output_attribute_e attr)
{
enum wl_eom_attribute eom_attribute = WL_EOM_ATTRIBUTE_NONE;
+
switch (attr) {
case EOM_OUTPUT_ATTRIBUTE_NONE:
eom_attribute = WL_EOM_ATTRIBUTE_NONE;
static void
-_eom_wayland_client_call_notify(EomWaylandOutput *eom_wl_output, eom_output_notify_type_e type)
+_eom_wayland_client_call_notify(EomWaylandOutput *eom_wl_output,
+ eom_output_notify_type_e type)
{
GArray *array = NULL;
GValue v = G_VALUE_INIT;
array = g_array_new(FALSE, FALSE, sizeof(GValue));
- /* 11 args 0: notify_type 1:output_id, 2:output_type, 3:output_mode, 4:w, 5:h, 6:w_mm, 7:h_mm, 8:pid, 9:attri, 10:state */
/* 0: notify_type */
g_value_init(&v, G_TYPE_INT);
g_value_set_int(&v, type);
/* 2:output_type */
g_value_init(&v, G_TYPE_INT);
- g_value_set_int(&v, _convert_to_eom_output_type(eom_wl_output->eom_type));
+ g_value_set_int(&v,
+ _convert_to_eom_output_type(eom_wl_output->eom_type));
array = g_array_append_val(array, v);
g_value_unset(&v);
/* 3:output_mode */
g_value_init(&v, G_TYPE_INT);
- g_value_set_int(&v, _convert_to_eom_output_mode(eom_wl_output->eom_mode));
+ g_value_set_int(&v,
+ _convert_to_eom_output_mode(eom_wl_output->eom_mode));
array = g_array_append_val(array, v);
g_value_unset(&v);
/* 9:attri */
g_value_init(&v, G_TYPE_INT);
- g_value_set_int(&v, _convert_to_eom_output_attribute(eom_wl_output->eom_attribute));
+ g_value_set_int(&v,
+ _convert_to_eom_output_attribute(eom_wl_output->eom_attribute));
array = g_array_append_val(array, v);
g_value_unset(&v);
/* 10:state */
g_value_init(&v, G_TYPE_INT);
- g_value_set_int(&v, _convert_to_eom_output_attribute_state(eom_wl_output->eom_attribute_state));
+ g_value_set_int(&v,
+ _convert_to_eom_output_attribute_state(
+ eom_wl_output->eom_attribute_state));
array = g_array_append_val(array, v);
g_value_unset(&v);
static EomWaylandOutput *
-_eom_wayland_client_find_output_from_wl_output(struct wl_list *eom_wl_output_list, struct wl_output *output)
+_eom_wayland_client_find_output_from_wl_output(
+ struct wl_list *eom_wl_output_list, struct wl_output *output)
{
EomWaylandOutput *eom_wl_output = NULL;
EomWaylandOutput *tmp = NULL;
/* remove all eom_wl_outputs */
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->output == output) {
ret = eom_wl_output;
break;
}
static EomWaylandOutput *
-_eom_wayland_client_find_output_from_eom_output(struct wl_list *eom_wl_output_list, eom_output_id id)
+_eom_wayland_client_find_output_from_eom_output(
+ struct wl_list *eom_wl_output_list, eom_output_id id)
{
EomWaylandOutput *eom_wl_output = NULL;
EomWaylandOutput *tmp = NULL;
/* remove all eom_wl_outputs */
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;
{
EomWaylandOutput *eom_wl_output = (EomWaylandOutput *) data;
- INFO("wl_output:%p x:%d y:%d phy_w:%d phy_h:%d subpixel:%d make:%s model:%s transform:%d\n",
- wl_output, x, y, physical_width, physical_height, subpixel, make, model, transform);
+ INFO("wl_output:%p x:%d y:%d phy(w:%d h:%d) p:%d m:%s model:%s t:%d\n",
+ wl_output, x, y, physical_width, physical_height,
+ subpixel, make, model, transform);
/* save vaules if it is different before */
if (eom_wl_output->x != x)
EomWaylandClientInfo *eom_client_info = (EomWaylandClientInfo *) data;
EomWaylandOutput *eom_wl_output = NULL;
- eom_wl_output = _eom_wayland_client_find_output_from_wl_output(&eom_client_info->eom_wl_output_list, output);
+ eom_wl_output = _eom_wayland_client_find_output_from_wl_output(
+ &eom_client_info->eom_wl_output_list, output);
RET_IF_FAIL(eom_wl_output != NULL);
/* save the output type */
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);
}
}
EomWaylandClientInfo *eom_client_info = (EomWaylandClientInfo *) data;
EomWaylandOutput *eom_wl_output = NULL;
- eom_wl_output = _eom_wayland_client_find_output_from_wl_output(&eom_client_info->eom_wl_output_list, output);
+ eom_wl_output = _eom_wayland_client_find_output_from_wl_output(
+ &eom_client_info->eom_wl_output_list, output);
RET_IF_FAIL(eom_wl_output != NULL);
/* check the eom mode and call the notify */
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);
}
}
EomWaylandClientInfo *eom_client_info = (EomWaylandClientInfo *) data;
EomWaylandOutput *eom_wl_output = NULL;
- eom_wl_output = _eom_wayland_client_find_output_from_wl_output(&eom_client_info->eom_wl_output_list, output);
+ eom_wl_output = _eom_wayland_client_find_output_from_wl_output(
+ &eom_client_info->eom_wl_output_list, output);
RET_IF_FAIL(eom_wl_output != NULL);
/* check the eom attribute and call the notify */
- if (eom_wl_output->eom_attribute != attribute || eom_wl_output->eom_attribute_state != attribute_state) {
+ if ((eom_wl_output->eom_attribute != attribute) ||
+ (eom_wl_output->eom_attribute_state != attribute_state)) {
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);
}
}
static void
-_eom_wl_registry_handle_global(void *data, struct wl_registry *registry, uint32_t name, const char *interface, uint32_t version)
+_eom_wl_registry_handle_global(void *data, struct wl_registry *registry,
+ uint32_t name, const char *interface, uint32_t version)
{
EomWaylandClientInfo *ci = (EomWaylandClientInfo *)data;
EomWaylandOutput *eom_wl_output = NULL;
struct wl_eom *eom = NULL;
if (strcmp(interface, "wl_output") == 0) {
- output = wl_registry_bind(registry, name, &wl_output_interface, 1);
+ output = wl_registry_bind(registry, name,
+ &wl_output_interface, 1);
if (!output)
ERR("Error. fail to bind %s.\n", interface);
else {
/* create the eom_wl_output */
eom_wl_output = calloc(1, sizeof(EomWaylandOutput));
if (!eom_wl_output) {
- ERR("error. fail to allocate the eom_output.\n");
+ ERR("Fail to allocate the eom_output.\n");
return;
}
ci->num_outputs++;
eom_wl_output->id = ci->num_outputs;
eom_wl_output->output = output;
- wl_list_insert(&ci->eom_wl_output_list, &eom_wl_output->link);
+ wl_list_insert(&ci->eom_wl_output_list,
+ &eom_wl_output->link);
/* add listener */
- wl_output_add_listener(eom_wl_output->output, &eom_wl_output_listener, eom_wl_output);
+ wl_output_add_listener(eom_wl_output->output,
+ &eom_wl_output_listener, eom_wl_output);
}
} else if (strcmp(interface, "wl_eom") == 0) {
eom = wl_registry_bind(registry, name, &wl_eom_interface, 1);
}
static void
-_eom_wl_registry_handle_global_remove(void *data, struct wl_registry *registry, uint32_t name)
+_eom_wl_registry_handle_global_remove(void *data,
+ struct wl_registry *registry, uint32_t name)
{
}
GOTO_IF_FAIL(wl_client_info.display != NULL, fail);
/* get the registry */
- wl_client_info.registry = wl_display_get_registry(wl_client_info.display);
+ wl_client_info.registry =
+ wl_display_get_registry(wl_client_info.display);
GOTO_IF_FAIL(wl_client_info.registry != NULL, fail);
/* get the global objects */
- wl_registry_add_listener(wl_client_info.registry, &eom_registry_listener, &wl_client_info);
+ wl_registry_add_listener(wl_client_info.registry,
+ &eom_registry_listener, &wl_client_info);
wl_display_dispatch(wl_client_info.display);
wl_display_roundtrip(wl_client_info.display);
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.\n");
wl_output_destroy(eom_wl_output->output);
/* 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);
{
bool ret = false;
- if (eom_wayland_init) return true;
+ if (eom_wayland_init)
+ return true;
ret = _eom_wayland_client_initialize();
GOTO_IF_FAIL(ret != false, fail);
array = g_array_new(FALSE, FALSE, sizeof(GValue));
/* remove all eom_wl_outputs */
- 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) {
g_value_init(&v, G_TYPE_INT);
g_value_set_int(&v, eom_wl_output->id);
GValue v = G_VALUE_INIT;
EomWaylandOutput *eom_wl_output = NULL;
- eom_wl_output = _eom_wayland_client_find_output_from_eom_output(&wl_client_info.eom_wl_output_list, output_id);
+ eom_wl_output = _eom_wayland_client_find_output_from_eom_output(
+ &wl_client_info.eom_wl_output_list, output_id);
RETV_IF_FAIL(eom_wl_output != NULL, NULL);
array = g_array_new(FALSE, FALSE, sizeof(GValue));
- /* 0:output_id, 1:output_type, 2:output_mode, 3:w, 4:h, 5:w_mm, 6:h_mm */
/* 0:output_id */
g_value_init(&v, G_TYPE_INT);
g_value_set_int(&v, eom_wl_output->id);
}
GArray *
-eom_wayland_client_set_attribute(eom_output_id output_id, eom_output_attribute_e attr)
+eom_wayland_client_set_attribute(eom_output_id output_id,
+ eom_output_attribute_e attr)
{
GArray *array = NULL;
GValue v = G_VALUE_INIT;
EomWaylandOutput *eom_wl_output = NULL;
int ret = 0;
- eom_wl_output = _eom_wayland_client_find_output_from_eom_output(&wl_client_info.eom_wl_output_list, output_id);
+ eom_wl_output = _eom_wayland_client_find_output_from_eom_output(
+ &wl_client_info.eom_wl_output_list, output_id);
GOTO_IF_FAIL(eom_wl_output != NULL, fail);
- wl_eom_set_attribute(wl_client_info.eom, eom_wl_output->output, _convert_to_wl_eom_attribute(attr));
+ wl_eom_set_attribute(wl_client_info.eom, eom_wl_output->output,
+ _convert_to_wl_eom_attribute(attr));
- /* TODO: wait for the result of set_attribute. this should be the blocking call. */
+ /* TODO:
+ * wait for the result of set_attribute.
+ * this should be the blocking call.
+ */
wl_display_dispatch(wl_client_info.display);
wl_display_roundtrip(wl_client_info.display);
e_wl_win = elm_win_wl_window_get(win);
GOTO_IF_FAIL(e_wl_win != NULL, fail);
- eom_wl_output = _eom_wayland_client_find_output_from_eom_output(&wl_client_info.eom_wl_output_list, output_id);
+ eom_wl_output = _eom_wayland_client_find_output_from_eom_output(
+ &wl_client_info.eom_wl_output_list, output_id);
GOTO_IF_FAIL(eom_wl_output != NULL, fail);
/* set full screen at output */
xdg_shell_surface = ecore_wl_window_xdg_surface_get(e_wl_win);
if (xdg_shell_surface) {
- xdg_surface_set_fullscreen(xdg_shell_surface, eom_wl_output->output);
+ xdg_surface_set_fullscreen(xdg_shell_surface,
+ eom_wl_output->output);
} else {
shell_surface = ecore_wl_window_shell_surface_get(e_wl_win);
if (shell_surface) {
wl_shell_surface_set_fullscreen(shell_surface,
- WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT,
- 0, eom_wl_output->output);
+ WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT,
+ 0, eom_wl_output->output);
} else {
ERR("no wl surface.\n");
goto fail;
/**************************************************************************
-
-eom (external output manager)
-
-Copyright 2015 Samsung Electronics co., Ltd. All Rights Reserved.
-
-Contact:
-SooChan Lim <sc1.lim@samsung.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a
-copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sub license, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice (including the
-next paragraph) shall be included in all copies or substantial portions
-of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
-IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
-ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
+ *
+ * eom (external output manager)
+ *
+ * Copyright 2015 Samsung Electronics co., Ltd. All Rights Reserved.
+ *
+ * Contact:
+ * SooChan Lim <sc1.lim@samsung.com>
+ * Boram Park <boram1288.park@samsung.com>
+ * Changyeon Lee <cyeon.lee@samsung.com>
+ * JunKyeong Kim <jk0430.kim@samsung.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sub license, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial portions
+ * of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+ * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
**************************************************************************/
#ifndef __EOM_WAYLAND_H__
GArray *eom_wayland_client_get_output_ids(void);
GArray *eom_wayland_client_get_output_info(eom_output_id output_id);
-GArray *eom_wayland_client_set_attribute(eom_output_id output_id, eom_output_attribute_e attry);
-GArray *eom_wayland_client_set_window(eom_output_id output_id, Evas_Object *win);
+GArray *eom_wayland_client_set_attribute(eom_output_id output_id,
+ eom_output_attribute_e attry);
+GArray *eom_wayland_client_set_window(eom_output_id output_id,
+ Evas_Object *win);
#endif /* __EOM_WAYLAND_H__ */
#ifndef WL_EOM_CLIENT_PROTOCOL_H
#define WL_EOM_CLIENT_PROTOCOL_H
-#ifdef __cplusplus
+#ifdef __cplusplus
extern "C" {
#endif
}
static inline void
-wl_eom_set_attribute(struct wl_eom *wl_eom, struct wl_output *output, uint32_t attribute)
+wl_eom_set_attribute(struct wl_eom *wl_eom, struct wl_output *output,
+ uint32_t attribute)
{
wl_proxy_marshal((struct wl_proxy *) wl_eom,
WL_EOM_SET_ATTRIBUTE, output, attribute);
}
-#ifdef __cplusplus
+#ifdef __cplusplus
}
#endif