Skip to content

Commit

Permalink
reinstall deprecated ddca_create_display_ref(), bump version
Browse files Browse the repository at this point in the history
allows old clients to build
  • Loading branch information
rockowitz committed Feb 18, 2024
1 parent 3e265ee commit ca610f9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 24 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -16,7 +16,7 @@ AC_PREREQ([2.69])

m4_define([ddcutil_major_version], [2])
m4_define([ddcutil_minor_version], [1])
m4_define([ddcutil_micro_version], [3])
m4_define([ddcutil_micro_version], [4])
dnl ddcutil_version_suffix does not begin with hyphen, e.g. "dev", not "-dev"
m4_define([ddcutil_version_suffix], [""])
# m4_ifelse(ddcutil_version_suffix,[], m4_define([ddcutil_version], [a]),define([ddcutil_version],[b]))
Expand Down
23 changes: 0 additions & 23 deletions src/libmain/api_displays.c
Expand Up @@ -307,30 +307,8 @@ ddca_get_display_ref(
}


#ifdef REMOVED

/** @deprecated use #ddca_get_display_ref()
* Gets a display reference for a display identifier.
* Normally, this is a permanently allocated #DDCA_Display_Ref
* created by monitor detection and does not need to be freed.
* Use #ddca_free_display_ref() to safely free.
*
* @param[in] did display identifier
* @param[out] dref_loc where to return display reference
* @retval 0 success
* @retval DDCRC_ARG did is not a valid display identifier handle
* @retval DDCRC_INVALID_DISPLAY display not found
*
* @ingroup api_display_spec
*/
// __attribute__ ((deprecated ("use ddca_get_display_ref()")))
DDCA_Status
ddca_create_display_ref(
DDCA_Display_Identifier did,
DDCA_Display_Ref* dref_loc);
#endif

#ifdef REMOVED
// deprecated
DDCA_Status
ddca_create_display_ref(
Expand All @@ -339,7 +317,6 @@ ddca_create_display_ref(
{
return ddca_get_display_ref(did, dref_loc);
}
#endif

#ifdef REMOVED
/** @deprecated All display references are persistent
Expand Down
21 changes: 21 additions & 0 deletions src/public/ddcutil_c_api.h
Expand Up @@ -731,6 +731,27 @@ ddca_did_repr(
// Display Reference
//

/** @deprecated use #ddca_get_display_ref()
* Gets a display reference for a display identifier.
* Normally, this is a permanently allocated #DDCA_Display_Ref
* created by monitor detection and does not need to be freed.
* Use #ddca_free_display_ref() to safely free.
*
* @param[in] did display identifier
* @param[out] dref_loc where to return display reference
* @retval 0 success
* @retval DDCRC_ARG did is not a valid display identifier handle
* @retval DDCRC_INVALID_DISPLAY display not found
*
* @ingroup api_display_spec
*/
// __attribute__ ((deprecated ("use ddca_get_display_ref()")))
DDCA_Status
ddca_create_display_ref(
DDCA_Display_Identifier did,
DDCA_Display_Ref* dref_loc);


/** Gets a display reference for a display identifier.
* This is a permanently allocated #DDCA_Display_Ref
* created by monitor detection and does not need to be freed.
Expand Down

0 comments on commit ca610f9

Please sign in to comment.