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:
Romain Vimont
2019-03-02 23:52:22 +01:00
parent 8655ba7197
commit dfed1b250e
40 changed files with 456 additions and 438 deletions

View File

@@ -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);