[librpbase] APNG_dlopen.h: Don't export APNG_ref() and APNG_unref().

It's only used by librpbase internally.

This is technically an ABI break, even though these functions weren't
used outside of librpbase, so bump the SOVERSION to 7.
This commit is contained in:
David Korth 2025-06-07 14:38:47 -04:00
parent 2c17a8e727
commit 6577715f73
6 changed files with 13 additions and 16 deletions

18
debian/control vendored
View File

@ -42,7 +42,7 @@ Vcs-Browser: https://github.com/GerbilSoft/rom-properties
Package: rom-properties-all
Architecture: any
Depends: ${misc:Depends}, libromdata6, rom-properties-kde4, rom-properties-kf5, rom-properties-xfce, rom-properties-gtk3, rom-properties-cli, rom-properties-tracker, rom-properties-utils, rom-properties-lang, rom-properties-thumbnailer-dbus
Depends: ${misc:Depends}, libromdata7, rom-properties-kde4, rom-properties-kf5, rom-properties-xfce, rom-properties-gtk3, rom-properties-cli, rom-properties-tracker, rom-properties-utils, rom-properties-lang, rom-properties-thumbnailer-dbus
Description: ROM Properties Page shell extension (meta package)
This shell extension provides thumbnailing and property page functionality
for ROM images, disc images, and save files for various game consoles,
@ -50,7 +50,7 @@ Description: ROM Properties Page shell extension (meta package)
.
This is a meta-package that installs all rom-properties packages.
Package: libromdata6
Package: libromdata7
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, rom-properties-data, liblz4-1, liblzo2-2
Description: ROM Properties Page shell extension (shared library)
@ -63,7 +63,7 @@ Description: ROM Properties Page shell extension (shared library)
Package: rom-properties-kde4
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libromdata6, rom-properties-utils, rom-properties-xdg
Depends: ${shlibs:Depends}, ${misc:Depends}, libromdata7, rom-properties-utils, rom-properties-xdg
Recommends: rom-properties-lang
Description: ROM Properties Page shell extension (KDE4 UI frontend)
This shell extension provides thumbnailing and property page functionality
@ -74,7 +74,7 @@ Description: ROM Properties Page shell extension (KDE4 UI frontend)
Package: rom-properties-kio-servicemenus
Architecture: all
Depends: ${shlibs:Depends}, ${misc:Depends}, libromdata6, rom-properties-utils
Depends: ${shlibs:Depends}, ${misc:Depends}, libromdata7, rom-properties-utils
Conflicts: rom-properties-kf5 (<< 2.3)
Replaces: rom-properties-kf5 (<< 2.3)
Description: ROM Properties Page shell extension (KF5/KF6 service menus)
@ -86,7 +86,7 @@ Description: ROM Properties Page shell extension (KF5/KF6 service menus)
Package: rom-properties-kf5
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libromdata6, rom-properties-utils, rom-properties-xdg, rom-properties-kio-servicemenus
Depends: ${shlibs:Depends}, ${misc:Depends}, libromdata7, rom-properties-utils, rom-properties-xdg, rom-properties-kio-servicemenus
Recommends: rom-properties-lang
Conflicts: rom-properties-kde5
Replaces: rom-properties-kde5
@ -99,7 +99,7 @@ Description: ROM Properties Page shell extension (KF5 UI frontend)
Package: rom-properties-xfce
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libromdata6, rom-properties-utils, rom-properties-xdg, rom-properties-thumbnailer-dbus
Depends: ${shlibs:Depends}, ${misc:Depends}, libromdata7, rom-properties-utils, rom-properties-xdg, rom-properties-thumbnailer-dbus
Recommends: rom-properties-lang, rom-properties-tracker
Description: ROM Properties Page shell extension (GTK2 XFCE UI frontend)
This shell extension provides thumbnailing and property page functionality
@ -113,7 +113,7 @@ Description: ROM Properties Page shell extension (GTK2 XFCE UI frontend)
Package: rom-properties-gtk3
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libromdata6, rom-properties-utils, rom-properties-xdg, rom-properties-thumbnailer-dbus
Depends: ${shlibs:Depends}, ${misc:Depends}, libromdata7, rom-properties-utils, rom-properties-xdg, rom-properties-thumbnailer-dbus
Recommends: rom-properties-lang, rom-properties-tracker
Conflicts: rom-properties-gnome, rom-properties-mate, rom-properties-cinnamon, rom-properties-gtk3-common
Replaces: rom-properties-gnome, rom-properties-mate, rom-properties-cinnamon, rom-properties-gtk3-common
@ -132,7 +132,7 @@ Description: ROM Properties Page shell extension (GTK3 UI frontend)
Package: rom-properties-cli
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libromdata6
Depends: ${shlibs:Depends}, ${misc:Depends}, libromdata7
Recommends: rom-properties-lang
Description: ROM Properties Page shell extension (command line version)
This shell extension provides thumbnailing and property page functionality
@ -143,7 +143,7 @@ Description: ROM Properties Page shell extension (command line version)
Package: rom-properties-tracker
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libromdata6
Depends: ${shlibs:Depends}, ${misc:Depends}, libromdata7
Description: ROM Properties Page shell extension (Tracker metadata extractor module)
This shell extension provides thumbnailing and property page functionality
for ROM images, disc images, and save files for various game consoles,

View File

@ -461,8 +461,8 @@ IF(RP_LIBROMDATA_IS_DLL)
ADD_DEFINITIONS(-DRP_BUILDING_FOR_DLL=1)
# NOTE: Not using the project version here.
# This represents the ABI version.
SET(${PROJECT_NAME}_VERSION 6.2)
SET(${PROJECT_NAME}_SOVERSION 6)
SET(${PROJECT_NAME}_VERSION 7.0)
SET(${PROJECT_NAME}_SOVERSION 7)
IF(MSVC)
# Delay-load sources.
SET(${PROJECT_NAME}-DELAYLOAD_SRC ../libwin32common/DelayLoadHelper.c)

View File

@ -9,7 +9,6 @@
#pragma once
#include "librpbase/config.librpbase.h"
#include "dll-macros.h"
#include <png.h>
@ -26,13 +25,11 @@ extern "C" {
*
* @return 0 on success; non-zero on error.
*/
RP_LIBROMDATA_PUBLIC
extern int RP_C_API APNG_ref(void);
/**
* Decrement the APNG reference counter.
*/
RP_LIBROMDATA_PUBLIC
extern void RP_C_API APNG_unref(void);
/**

View File

@ -207,8 +207,8 @@ IF(RP_LIBROMDATA_IS_DLL AND MSVC)
# Otherwise, we won't be able to load it if it's in an
# architecture-specific subdirectory.
# TODO: Global variable with the libromdata SOVERSION?
SET(DL_DEBUG_FLAGS "${DL_DEBUG_FLAGS} /DELAYLOAD:romdata-6d.dll")
SET(DL_RELEASE_FLAGS "${DL_RELEASE_FLAGS} /DELAYLOAD:romdata-6.dll")
SET(DL_DEBUG_FLAGS "${DL_DEBUG_FLAGS} /DELAYLOAD:romdata-7d.dll")
SET(DL_RELEASE_FLAGS "${DL_RELEASE_FLAGS} /DELAYLOAD:romdata-7.dll")
SET(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} ${DL_DEBUG_FLAGS}")
SET(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} ${DL_RELEASE_FLAGS}")