1 /**************************************************************************
5 * Copyright 2015 Samsung Electronics co., Ltd. All Rights Reserved.
7 * Contact: Eunchul Kim <chulspro.kim@samsung.com>,
8 * JinYoung Jeon <jy0.jeon@samsung.com>,
9 * Taeheon Kim <th908.kim@samsung.com>,
10 * YoungJun Cho <yj44.cho@samsung.com>,
11 * SooChan Lim <sc1.lim@samsung.com>,
12 * Boram Park <boram1288.park@samsung.com>
14 * Permission is hereby granted, free of charge, to any person obtaining a
15 * copy of this software and associated documentation files (the
16 * "Software"), to deal in the Software without restriction, including
17 * without limitation the rights to use, copy, modify, merge, publish,
18 * distribute, sub license, and/or sell copies of the Software, and to
19 * permit persons to whom the Software is furnished to do so, subject to
20 * the following conditions:
22 * The above copyright notice and this permission notice (including the
23 * next paragraph) shall be included in all copies or substantial portions
26 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
27 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
29 * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
30 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
31 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
32 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
34 **************************************************************************/
36 #ifndef _TDM_DEPRECATED_H_
37 #define _TDM_DEPRECATED_H_
39 #include "tdm_types.h"
47 * @brief Update a display object
49 * When new output is connected, a frontend user need to call this function.
50 * And a frontend user can the new output information with tdm_output_get_xxx functions.
51 * @param[in] dpy A display object
52 * @return #TDM_ERROR_NONE if success. Otherwise, error value.
55 tdm_display_update(tdm_display *dpy);
59 * @brief Get the information of the TDM backend module.
60 * @param[in] dpy A display object
61 * @param[out] name The name of the TDM backend module
62 * @param[out] vendor The vendor of the TDM backend module
63 * @param[out] version The version of the TDM backend module
64 * @return #TDM_ERROR_NONE if success. Otherwise, error value.
65 * @see #tdm_output_get_module, #tdm_module_get_info
68 tdm_display_get_backend_info(tdm_display *dpy, const char **name,
69 const char **vendor, int *major, int *minor);
73 * @brief Get the max layer counts which a display object can show on screen.
74 * @details -1 means that a TDM backend module doesn't define the value.
75 * @param[in] dpy A display object
76 * @param[out] count The max count of layers
77 * @return #TDM_ERROR_NONE if success. Otherwise, error value.
80 tdm_display_get_max_layer_count(tdm_display *dpy, int *max_count);
83 * @deprecated use @c tdm_helper_output_commit_per_vblank_enabled instead
84 * @brief Get whether the commit-per-vblank functionality is enabled or not.
85 * @param[in] dpy A display object
86 * @return 1 if enabled. Otherwise, 0.
89 tdm_helper_commit_per_vblank_enabled(tdm_display *dpy);
95 #endif /* _TDM_DEPRECATED_H_ */