Scrcpy is a C11 project. Use the C99 standard types instead of the
SDL-specific types:
SDL_bool -> bool
SintXX -> intXX_t
UintXX -> uintXX_t
20 lines
208 B
C
20 lines
208 B
C
#include "net.h"
|
|
|
|
#include <unistd.h>
|
|
|
|
bool
|
|
net_init(void) {
|
|
// do nothing
|
|
return true;
|
|
}
|
|
|
|
void
|
|
net_cleanup(void) {
|
|
// do nothing
|
|
}
|
|
|
|
bool
|
|
net_close(socket_t socket) {
|
|
return !close(socket);
|
|
}
|