Skip to content

Commit b6e7f10

Browse files
committed
Fixed capitalization (etc) of name of library.
1 parent 50da21f commit b6e7f10

File tree

3 files changed

+39
-39
lines changed

3 files changed

+39
-39
lines changed

cmake/test/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ int main(int argc, char *argv[])
1010
}
1111

1212
if (!NET_Init()) {
13-
SDL_Log("SDL_Net_Init() failed: %s", SDL_GetError());
13+
SDL_Log("NET_Init() failed: %s", SDL_GetError());
1414
}
1515

1616
NET_Quit();

examples/voipchat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ int main(int argc, char **argv)
357357
return 1;
358358
}
359359

360-
window = SDL_CreateWindow("SDL_Net3 voipchat example", 640, 480, 0);
360+
window = SDL_CreateWindow("SDL3_net voipchat example", 640, 480, 0);
361361
renderer = SDL_CreateRenderer(window, NULL);
362362
SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
363363

include/SDL3_net/SDL_net.h

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ extern SDL_DECLSPEC bool SDLCALL NET_Init(void);
135135
*
136136
* \threadsafety It is safe to call this function from any thread.
137137
*
138-
* \since This function is available since SDL_Net 3.0.0.
138+
* \since This function is available since SDL_net 3.0.0.
139139
*
140140
* \sa NET_Init
141141
*/
@@ -154,10 +154,10 @@ extern SDL_DECLSPEC void SDLCALL NET_Quit(void);
154154
* also used to decide what network interface to use when creating a server.
155155
*
156156
* These are intended to be protocol-independent; a given address might be for
157-
* IPv4, IPv6, or something more esoteric. SDL_Net attempts to hide the
157+
* IPv4, IPv6, or something more esoteric. SDL_net attempts to hide the
158158
* differences.
159159
*
160-
* \since This datatype is available since SDL_Net 3.0.0.
160+
* \since This datatype is available since SDL_net 3.0.0.
161161
*
162162
* \sa NET_ResolveHostname
163163
* \sa NET_GetLocalAddresses
@@ -195,7 +195,7 @@ typedef struct NET_Address NET_Address;
195195
*
196196
* \threadsafety It is safe to call this function from any thread.
197197
*
198-
* \since This function is available since SDL_Net 3.0.0.
198+
* \since This function is available since SDL_net 3.0.0.
199199
*
200200
* \sa NET_WaitUntilResolved
201201
* \sa NET_GetAddressStatus
@@ -240,7 +240,7 @@ extern SDL_DECLSPEC NET_Address * SDLCALL NET_ResolveHostname(const char *host);
240240
* \threadsafety It is safe to call this function from any thread, and several
241241
* threads can block on the same address simultaneously.
242242
*
243-
* \since This function is available since SDL_Net 3.0.0.
243+
* \since This function is available since SDL_net 3.0.0.
244244
*
245245
* \sa NET_GetAddressStatus
246246
*/
@@ -269,7 +269,7 @@ extern SDL_DECLSPEC int SDLCALL NET_WaitUntilResolved(NET_Address *address, Sint
269269
*
270270
* \threadsafety It is safe to call this function from any thread.
271271
*
272-
* \since This function is available since SDL_Net 3.0.0.
272+
* \since This function is available since SDL_net 3.0.0.
273273
*
274274
* \sa NET_WaitUntilResolved
275275
*/
@@ -297,7 +297,7 @@ extern SDL_DECLSPEC int SDLCALL NET_GetAddressStatus(NET_Address *address);
297297
*
298298
* \threadsafety It is safe to call this function from any thread.
299299
*
300-
* \since This function is available since SDL_Net 3.0.0.
300+
* \since This function is available since SDL_net 3.0.0.
301301
*
302302
* \sa NET_GetAddressStatus
303303
* \sa NET_WaitUntilResolved
@@ -338,7 +338,7 @@ extern SDL_DECLSPEC const char * SDLCALL NET_GetAddressString(NET_Address *addre
338338
*
339339
* \threadsafety It is safe to call this function from any thread.
340340
*
341-
* \since This function is available since SDL_Net 3.0.0.
341+
* \since This function is available since SDL_net 3.0.0.
342342
*/
343343
extern SDL_DECLSPEC NET_Address *SDLCALL NET_RefAddress(NET_Address *address);
344344

@@ -363,7 +363,7 @@ extern SDL_DECLSPEC NET_Address *SDLCALL NET_RefAddress(NET_Address *address);
363363
*
364364
* \threadsafety It is safe to call this function from any thread.
365365
*
366-
* \since This function is available since SDL_Net 3.0.0.
366+
* \since This function is available since SDL_net 3.0.0.
367367
*/
368368
extern SDL_DECLSPEC void SDLCALL NET_UnrefAddress(NET_Address *address);
369369

@@ -394,7 +394,7 @@ extern SDL_DECLSPEC void SDLCALL NET_UnrefAddress(NET_Address *address);
394394
*
395395
* \threadsafety It is safe to call this function from any thread.
396396
*
397-
* \since This function is available since SDL_Net 3.0.0.
397+
* \since This function is available since SDL_net 3.0.0.
398398
*/
399399
extern SDL_DECLSPEC void SDLCALL NET_SimulateAddressResolutionLoss(int percent_loss);
400400

@@ -410,7 +410,7 @@ extern SDL_DECLSPEC void SDLCALL NET_SimulateAddressResolutionLoss(int percent_l
410410
*
411411
* \threadsafety It is safe to call this function from any thread.
412412
*
413-
* \since This function is available since SDL_Net 3.0.0.
413+
* \since This function is available since SDL_net 3.0.0.
414414
*/
415415
extern SDL_DECLSPEC int SDLCALL NET_CompareAddresses(const NET_Address *a, const NET_Address *b);
416416

@@ -445,7 +445,7 @@ extern SDL_DECLSPEC int SDLCALL NET_CompareAddresses(const NET_Address *a, const
445445
*
446446
* \threadsafety It is safe to call this function from any thread.
447447
*
448-
* \since This function is available since SDL_Net 3.0.0.
448+
* \since This function is available since SDL_net 3.0.0.
449449
*/
450450
extern SDL_DECLSPEC NET_Address **SDLCALL NET_GetLocalAddresses(int *num_addresses);
451451

@@ -464,7 +464,7 @@ extern SDL_DECLSPEC NET_Address **SDLCALL NET_GetLocalAddresses(int *num_address
464464
*
465465
* \threadsafety It is safe to call this function from any thread.
466466
*
467-
* \since This function is available since SDL_Net 3.0.0.
467+
* \since This function is available since SDL_net 3.0.0.
468468
*/
469469
extern SDL_DECLSPEC void SDLCALL NET_FreeLocalAddresses(NET_Address **addresses);
470470

@@ -482,7 +482,7 @@ extern SDL_DECLSPEC void SDLCALL NET_FreeLocalAddresses(NET_Address **addresses)
482482
* different clients. Each of these connections communicate over a separate
483483
* stream socket.
484484
*
485-
* \since This datatype is available since SDL_Net 3.0.0.
485+
* \since This datatype is available since SDL_net 3.0.0.
486486
*
487487
* \sa NET_CreateClient
488488
* \sa NET_WriteToStreamSocket
@@ -535,7 +535,7 @@ typedef struct NET_StreamSocket NET_StreamSocket;
535535
*
536536
* \threadsafety It is safe to call this function from any thread.
537537
*
538-
* \since This function is available since SDL_Net 3.0.0.
538+
* \since This function is available since SDL_net 3.0.0.
539539
*
540540
* \sa NET_WaitUntilConnected
541541
* \sa NET_GetConnectionStatus
@@ -582,7 +582,7 @@ extern SDL_DECLSPEC NET_StreamSocket * SDLCALL NET_CreateClient(NET_Address *add
582582
* mechanism. However, different threads may access different
583583
* socket at the same time without problems.
584584
*
585-
* \since This function is available since SDL_Net 3.0.0.
585+
* \since This function is available since SDL_net 3.0.0.
586586
*
587587
* \sa NET_GetConnectionStatus
588588
*/
@@ -598,7 +598,7 @@ extern SDL_DECLSPEC int SDLCALL NET_WaitUntilConnected(NET_StreamSocket *sock, S
598598
* connection, will provide the app with a stream socket to send and receive
599599
* data over that connection.
600600
*
601-
* \since This datatype is available since SDL_Net 3.0.0.
601+
* \since This datatype is available since SDL_net 3.0.0.
602602
*
603603
* \sa NET_CreateServer
604604
*/
@@ -644,7 +644,7 @@ typedef struct NET_Server NET_Server;
644644
*
645645
* \threadsafety It is safe to call this function from any thread.
646646
*
647-
* \since This function is available since SDL_Net 3.0.0.
647+
* \since This function is available since SDL_net 3.0.0.
648648
*
649649
* \sa NET_GetLocalAddresses
650650
* \sa NET_AcceptClient
@@ -687,7 +687,7 @@ extern SDL_DECLSPEC NET_Server * SDLCALL NET_CreateServer(NET_Address *addr, Uin
687687
* mechanism. However, different threads may access different
688688
* servers at the same time without problems.
689689
*
690-
* \since This function is available since SDL_Net 3.0.0.
690+
* \since This function is available since SDL_net 3.0.0.
691691
*
692692
* \sa NET_WaitUntilInputAvailable
693693
* \sa NET_DestroyStreamSocket
@@ -710,7 +710,7 @@ extern SDL_DECLSPEC bool SDLCALL NET_AcceptClient(NET_Server *server, NET_Stream
710710
* mechanism. However, different threads may access different
711711
* servers at the same time without problems.
712712
*
713-
* \since This function is available since SDL_Net 3.0.0.
713+
* \since This function is available since SDL_net 3.0.0.
714714
*
715715
* \sa NET_CreateServer
716716
*/
@@ -731,7 +731,7 @@ extern SDL_DECLSPEC void SDLCALL NET_DestroyServer(NET_Server *server);
731731
*
732732
* \threadsafety It is safe to call this function from any thread.
733733
*
734-
* \since This function is available since SDL_Net 3.0.0.
734+
* \since This function is available since SDL_net 3.0.0.
735735
*/
736736
extern SDL_DECLSPEC NET_Address * SDLCALL NET_GetStreamSocketAddress(NET_StreamSocket *sock);
737737

@@ -766,7 +766,7 @@ extern SDL_DECLSPEC NET_Address * SDLCALL NET_GetStreamSocketAddress(NET_StreamS
766766
* mechanism. However, different threads may access different
767767
* sockets at the same time without problems.
768768
*
769-
* \since This function is available since SDL_Net 3.0.0.
769+
* \since This function is available since SDL_net 3.0.0.
770770
*
771771
* \sa NET_WaitUntilConnected
772772
*/
@@ -811,7 +811,7 @@ extern SDL_DECLSPEC int SDLCALL NET_GetConnectionStatus(NET_StreamSocket *sock);
811811
* mechanism. However, different threads may access different
812812
* sockets at the same time without problems.
813813
*
814-
* \since This function is available since SDL_Net 3.0.0.
814+
* \since This function is available since SDL_net 3.0.0.
815815
*
816816
* \sa NET_GetStreamSocketPendingWrites
817817
* \sa NET_WaitUntilStreamSocketDrained
@@ -844,7 +844,7 @@ extern SDL_DECLSPEC bool SDLCALL NET_WriteToStreamSocket(NET_StreamSocket *sock,
844844
* mechanism. However, different threads may access different
845845
* sockets at the same time without problems.
846846
*
847-
* \since This function is available since SDL_Net 3.0.0.
847+
* \since This function is available since SDL_net 3.0.0.
848848
*
849849
* \sa NET_WriteToStreamSocket
850850
* \sa NET_WaitUntilStreamSocketDrained
@@ -885,7 +885,7 @@ extern SDL_DECLSPEC int SDLCALL NET_GetStreamSocketPendingWrites(NET_StreamSocke
885885
* mechanism. However, different threads may access different
886886
* sockets at the same time without problems.
887887
*
888-
* \since This function is available since SDL_Net 3.0.0.
888+
* \since This function is available since SDL_net 3.0.0.
889889
*
890890
* \sa NET_WriteToStreamSocket
891891
* \sa NET_GetStreamSocketPendingWrites
@@ -937,7 +937,7 @@ extern SDL_DECLSPEC int SDLCALL NET_WaitUntilStreamSocketDrained(NET_StreamSocke
937937
* mechanism. However, different threads may access different
938938
* sockets at the same time without problems.
939939
*
940-
* \since This function is available since SDL_Net 3.0.0.
940+
* \since This function is available since SDL_net 3.0.0.
941941
*
942942
* \sa NET_WriteToStreamSocket
943943
*/
@@ -978,7 +978,7 @@ extern SDL_DECLSPEC int SDLCALL NET_ReadFromStreamSocket(NET_StreamSocket *sock,
978978
*
979979
* \threadsafety It is safe to call this function from any thread.
980980
*
981-
* \since This function is available since SDL_Net 3.0.0.
981+
* \since This function is available since SDL_net 3.0.0.
982982
*/
983983
extern SDL_DECLSPEC void SDLCALL NET_SimulateStreamPacketLoss(NET_StreamSocket *sock, int percent_loss);
984984

@@ -1002,7 +1002,7 @@ extern SDL_DECLSPEC void SDLCALL NET_SimulateStreamPacketLoss(NET_StreamSocket *
10021002
* mechanism. However, different threads may access different
10031003
* sockets at the same time without problems.
10041004
*
1005-
* \since This function is available since SDL_Net 3.0.0.
1005+
* \since This function is available since SDL_net 3.0.0.
10061006
*
10071007
* \sa NET_CreateClient
10081008
* \sa NET_AcceptClient
@@ -1031,7 +1031,7 @@ extern SDL_DECLSPEC void SDLCALL NET_DestroyStreamSocket(NET_StreamSocket *sock)
10311031
* gets there, even if later packets get there first, and maybe it doesn't get
10321032
* there at all, and you don't know when anything of this happens by default.
10331033
*
1034-
* \since This datatype is available since SDL_Net 3.0.0.
1034+
* \since This datatype is available since SDL_net 3.0.0.
10351035
*
10361036
* \sa NET_CreateDatagramSocket
10371037
* \sa NET_SendDatagram
@@ -1042,7 +1042,7 @@ typedef struct NET_DatagramSocket NET_DatagramSocket;
10421042
/**
10431043
* The data provided for new incoming packets from NET_ReceiveDatagram().
10441044
*
1045-
* \since This datatype is available since SDL_Net 3.0.0.
1045+
* \since This datatype is available since SDL_net 3.0.0.
10461046
*
10471047
* \sa NET_ReceiveDatagram
10481048
* \sa NET_DestroyDatagram
@@ -1108,7 +1108,7 @@ typedef struct NET_Datagram
11081108
*
11091109
* \threadsafety It is safe to call this function from any thread.
11101110
*
1111-
* \since This function is available since SDL_Net 3.0.0.
1111+
* \since This function is available since SDL_net 3.0.0.
11121112
*
11131113
* \sa NET_GetLocalAddresses
11141114
* \sa NET_DestroyDatagramSocket
@@ -1161,7 +1161,7 @@ extern SDL_DECLSPEC NET_DatagramSocket * SDLCALL NET_CreateDatagramSocket(NET_Ad
11611161
* mechanism. However, different threads may access different
11621162
* sockets at the same time without problems.
11631163
*
1164-
* \since This function is available since SDL_Net 3.0.0.
1164+
* \since This function is available since SDL_net 3.0.0.
11651165
*
11661166
* \sa NET_ReceiveDatagram
11671167
*/
@@ -1208,7 +1208,7 @@ extern SDL_DECLSPEC bool SDLCALL NET_SendDatagram(NET_DatagramSocket *sock, NET_
12081208
* mechanism. However, different threads may access different
12091209
* sockets at the same time without problems.
12101210
*
1211-
* \since This function is available since SDL_Net 3.0.0.
1211+
* \since This function is available since SDL_net 3.0.0.
12121212
*
12131213
* \sa NET_SendDatagram
12141214
* \sa NET_DestroyDatagram
@@ -1233,7 +1233,7 @@ extern SDL_DECLSPEC bool SDLCALL NET_ReceiveDatagram(NET_DatagramSocket *sock, N
12331233
*
12341234
* \threadsafety It is safe to call this function from any thread.
12351235
*
1236-
* \since This function is available since SDL_Net 3.0.0.
1236+
* \since This function is available since SDL_net 3.0.0.
12371237
*/
12381238
extern SDL_DECLSPEC void SDLCALL NET_DestroyDatagram(NET_Datagram *dgram);
12391239

@@ -1266,7 +1266,7 @@ extern SDL_DECLSPEC void SDLCALL NET_DestroyDatagram(NET_Datagram *dgram);
12661266
*
12671267
* \threadsafety It is safe to call this function from any thread.
12681268
*
1269-
* \since This function is available since SDL_Net 3.0.0.
1269+
* \since This function is available since SDL_net 3.0.0.
12701270
*/
12711271
extern SDL_DECLSPEC void SDLCALL NET_SimulateDatagramPacketLoss(NET_DatagramSocket *sock, int percent_loss);
12721272

@@ -1290,7 +1290,7 @@ extern SDL_DECLSPEC void SDLCALL NET_SimulateDatagramPacketLoss(NET_DatagramSock
12901290
* mechanism. However, different threads may access different
12911291
* sockets at the same time without problems.
12921292
*
1293-
* \since This function is available since SDL_Net 3.0.0.
1293+
* \since This function is available since SDL_net 3.0.0.
12941294
*
12951295
* \sa NET_CreateDatagramSocket
12961296
* \sa NET_SendDatagram
@@ -1343,7 +1343,7 @@ extern SDL_DECLSPEC void SDLCALL NET_DestroyDatagramSocket(NET_DatagramSocket *s
13431343
* mechanism. However, different threads may access different
13441344
* sockets at the same time without problems.
13451345
*
1346-
* \since This function is available since SDL_Net 3.0.0.
1346+
* \since This function is available since SDL_net 3.0.0.
13471347
*
13481348
* \sa NET_CreateDatagramSocket
13491349
* \sa NET_SendDatagram

0 commit comments

Comments
 (0)