Replace SDL types by C99 standard types
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
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
|
||||
#include "control_event.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <SDL2/SDL_mutex.h>
|
||||
#include <SDL2/SDL_stdinc.h>
|
||||
#include <SDL2/SDL_thread.h>
|
||||
|
||||
#include "net.h"
|
||||
@@ -14,17 +14,17 @@ struct controller {
|
||||
SDL_Thread *thread;
|
||||
SDL_mutex *mutex;
|
||||
SDL_cond *event_cond;
|
||||
SDL_bool stopped;
|
||||
bool stopped;
|
||||
struct control_event_queue queue;
|
||||
};
|
||||
|
||||
SDL_bool
|
||||
bool
|
||||
controller_init(struct controller *controller, socket_t video_socket);
|
||||
|
||||
void
|
||||
controller_destroy(struct controller *controller);
|
||||
|
||||
SDL_bool
|
||||
bool
|
||||
controller_start(struct controller *controller);
|
||||
|
||||
void
|
||||
@@ -34,7 +34,7 @@ void
|
||||
controller_join(struct controller *controller);
|
||||
|
||||
// expose simple API to hide control_event_queue
|
||||
SDL_bool
|
||||
bool
|
||||
controller_push_event(struct controller *controller,
|
||||
const struct control_event *event);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user