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

@@ -1,8 +1,8 @@
#ifndef DECODER_H
#define DECODER_H
#include <stdbool.h>
#include <libavformat/avformat.h>
#include <SDL2/SDL_stdinc.h>
struct video_buffer;
@@ -14,13 +14,13 @@ struct decoder {
void
decoder_init(struct decoder *decoder, struct video_buffer *vb);
SDL_bool
bool
decoder_open(struct decoder *decoder, AVCodec *codec);
void
decoder_close(struct decoder *decoder);
SDL_bool
bool
decoder_push(struct decoder *decoder, AVPacket *packet);
void