mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 00:37:59 +02:00
color: add WL_EXPORT to param builder functions
The internal API to create parametric color profiles should be available not only to libweston, but also to frontend. WL_EXPORT was missing from the functions, so add that. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
parent
98becedfcd
commit
25a10fa2cd
1 changed files with 12 additions and 12 deletions
|
|
@ -90,7 +90,7 @@ struct weston_color_profile_param_builder {
|
|||
* \param compositor The weston compositor.
|
||||
* \return The struct weston_color_profile_param_builder object created.
|
||||
*/
|
||||
struct weston_color_profile_param_builder *
|
||||
WL_EXPORT struct weston_color_profile_param_builder *
|
||||
weston_color_profile_param_builder_create(struct weston_compositor *compositor)
|
||||
{
|
||||
struct weston_color_profile_param_builder *builder;
|
||||
|
|
@ -111,7 +111,7 @@ weston_color_profile_param_builder_create(struct weston_compositor *compositor)
|
|||
*
|
||||
* \param builder The object that should be destroyed.
|
||||
*/
|
||||
void
|
||||
WL_EXPORT void
|
||||
weston_color_profile_param_builder_destroy(struct weston_color_profile_param_builder *builder)
|
||||
{
|
||||
fclose(builder->err_fp);
|
||||
|
|
@ -158,7 +158,7 @@ log_msg:
|
|||
* a new line character.
|
||||
* \return true if there's an error, false otherwise.
|
||||
*/
|
||||
bool
|
||||
WL_EXPORT bool
|
||||
weston_color_profile_param_builder_get_error(struct weston_color_profile_param_builder *builder,
|
||||
enum weston_color_profile_param_builder_error *err,
|
||||
char **err_msg)
|
||||
|
|
@ -190,7 +190,7 @@ weston_color_profile_param_builder_get_error(struct weston_color_profile_param_b
|
|||
* \param primaries The object containing the primaries.
|
||||
* \return true on success, false otherwise.
|
||||
*/
|
||||
bool
|
||||
WL_EXPORT bool
|
||||
weston_color_profile_param_builder_set_primaries(struct weston_color_profile_param_builder *builder,
|
||||
const struct weston_color_gamut *primaries)
|
||||
{
|
||||
|
|
@ -236,7 +236,7 @@ weston_color_profile_param_builder_set_primaries(struct weston_color_profile_par
|
|||
* \param primaries The enum representing the primaries.
|
||||
* \return true on success, false otherwise.
|
||||
*/
|
||||
bool
|
||||
WL_EXPORT bool
|
||||
weston_color_profile_param_builder_set_primaries_named(struct weston_color_profile_param_builder *builder,
|
||||
enum weston_color_primaries primaries)
|
||||
{
|
||||
|
|
@ -287,7 +287,7 @@ weston_color_profile_param_builder_set_primaries_named(struct weston_color_profi
|
|||
* \param tf The enum representing the transfer function.
|
||||
* \return true on success, false otherwise.
|
||||
*/
|
||||
bool
|
||||
WL_EXPORT bool
|
||||
weston_color_profile_param_builder_set_tf_named(struct weston_color_profile_param_builder *builder,
|
||||
enum weston_transfer_function tf)
|
||||
{
|
||||
|
|
@ -337,7 +337,7 @@ weston_color_profile_param_builder_set_tf_named(struct weston_color_profile_para
|
|||
* \param power_exponent The power law function exponent.
|
||||
* \return true on success, false otherwise.
|
||||
*/
|
||||
bool
|
||||
WL_EXPORT bool
|
||||
weston_color_profile_param_builder_set_tf_power_exponent(struct weston_color_profile_param_builder *builder,
|
||||
float power_exponent)
|
||||
{
|
||||
|
|
@ -450,7 +450,7 @@ weston_color_profile_param_builder_set_primary_luminance(struct weston_color_pro
|
|||
* \param target_primaries The object containing the target primaries.
|
||||
* \return true on success, false otherwise.
|
||||
*/
|
||||
bool
|
||||
WL_EXPORT bool
|
||||
weston_color_profile_param_builder_set_target_primaries(struct weston_color_profile_param_builder *builder,
|
||||
const struct weston_color_gamut *target_primaries)
|
||||
{
|
||||
|
|
@ -494,7 +494,7 @@ weston_color_profile_param_builder_set_target_primaries(struct weston_color_prof
|
|||
* \param max_lum The target maximum luminance.
|
||||
* \return true on success, false otherwise.
|
||||
*/
|
||||
bool
|
||||
WL_EXPORT bool
|
||||
weston_color_profile_param_builder_set_target_luminance(struct weston_color_profile_param_builder *builder,
|
||||
float min_lum, float max_lum)
|
||||
{
|
||||
|
|
@ -545,7 +545,7 @@ weston_color_profile_param_builder_set_target_luminance(struct weston_color_prof
|
|||
* \param maxFALL The maxFALL.
|
||||
* \return true on success, false otherwise.
|
||||
*/
|
||||
bool
|
||||
WL_EXPORT bool
|
||||
weston_color_profile_param_builder_set_maxFALL(struct weston_color_profile_param_builder *builder,
|
||||
float maxFALL)
|
||||
{
|
||||
|
|
@ -575,7 +575,7 @@ weston_color_profile_param_builder_set_maxFALL(struct weston_color_profile_param
|
|||
* \param maxCLL The maxCLL.
|
||||
* \return true on success, false otherwise.
|
||||
*/
|
||||
bool
|
||||
WL_EXPORT bool
|
||||
weston_color_profile_param_builder_set_maxCLL(struct weston_color_profile_param_builder *builder,
|
||||
float maxCLL)
|
||||
{
|
||||
|
|
@ -816,7 +816,7 @@ builder_complete_params(struct weston_color_profile_param_builder *builder)
|
|||
* a new line character.
|
||||
* \return The color profile created, or NULL on failure.
|
||||
*/
|
||||
struct weston_color_profile *
|
||||
WL_EXPORT struct weston_color_profile *
|
||||
weston_color_profile_param_builder_create_color_profile(struct weston_color_profile_param_builder *builder,
|
||||
const char *name_part,
|
||||
enum weston_color_profile_param_builder_error *err,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue