Skip to content

Commit 8f5d9df

Browse files
committed
api: Rename NET_GetVersion to NET_Version to match other satellite libraries.
Reference libsdl-org/SDL_mixer#709
1 parent 15cc556 commit 8f5d9df

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.wikiheaders-options

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ projectfullname = SDL_net
22
projectshortname = SDL_net
33
incsubdir = include/SDL3_net
44
wikisubdir = SDL3_net
5-
apiprefixregex = NET_
5+
apiprefixregex = (NET_|SDL_NET_)
66
mainincludefname = SDL3_net/SDL_net.h
77
versionfname = include/SDL3_net/SDL_net.h
88
versionmajorregex = \A\#define\s+SDL_NET_MAJOR_VERSION\s+(\d+)\Z

include/SDL3_net/SDL_net.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ extern "C" {
7272
*
7373
* \since This macro is available since SDL_net 3.0.0.
7474
*
75-
* \sa NET_GetVersion
75+
* \sa NET_Version
7676
*/
7777
#define SDL_NET_VERSION \
7878
SDL_VERSIONNUM(SDL_NET_MAJOR_VERSION, SDL_NET_MINOR_VERSION, SDL_NET_MICRO_VERSION)
@@ -95,7 +95,7 @@ extern "C" {
9595
*
9696
* \since This function is available since SDL_net 3.0.0.
9797
*/
98-
extern SDL_DECLSPEC int SDLCALL NET_GetVersion(void);
98+
extern SDL_DECLSPEC int SDLCALL NET_Version(void);
9999

100100

101101
/* init/quit functions... */

src/SDL_net.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ typedef enum NET_SocketType
9393
} NET_SocketType;
9494

9595

96-
int NET_GetVersion(void)
96+
int NET_Version(void)
9797
{
9898
return SDL_NET_VERSION;
9999
}

src/SDL_net.sym

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ SDL3_net_0.0.0 {
1616
NET_GetLocalAddresses;
1717
NET_GetStreamSocketAddress;
1818
NET_GetStreamSocketPendingWrites;
19-
NET_GetVersion;
19+
NET_Version;
2020
NET_Init;
2121
NET_Quit;
2222
NET_ReadFromStreamSocket;

0 commit comments

Comments
 (0)