src/sensor/SDL_sensor_c.h
author Michał Janiszewski <janisozaur+sdl2image@gmail.com>
Sun, 28 Oct 2018 21:36:48 +0100
changeset 12366 c46e72bd9950
parent 12130 24142c5073a4
child 12503 806492103856
permissions -rw-r--r--
Add and update include guards

Include guards in most changed files were missing, I added them keeping
the same style as other SDL files. In some cases I moved the include
guards around to be the first thing the header has to take advantage of
any possible improvements compiler may have for inclusion guards.
slouken@12130
     1
/*
slouken@12130
     2
  Simple DirectMedia Layer
slouken@12130
     3
  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
slouken@12130
     4
slouken@12130
     5
  This software is provided 'as-is', without any express or implied
slouken@12130
     6
  warranty.  In no event will the authors be held liable for any damages
slouken@12130
     7
  arising from the use of this software.
slouken@12130
     8
slouken@12130
     9
  Permission is granted to anyone to use this software for any purpose,
slouken@12130
    10
  including commercial applications, and to alter it and redistribute it
slouken@12130
    11
  freely, subject to the following restrictions:
slouken@12130
    12
slouken@12130
    13
  1. The origin of this software must not be misrepresented; you must not
slouken@12130
    14
     claim that you wrote the original software. If you use this software
slouken@12130
    15
     in a product, an acknowledgment in the product documentation would be
slouken@12130
    16
     appreciated but is not required.
slouken@12130
    17
  2. Altered source versions must be plainly marked as such, and must not be
slouken@12130
    18
     misrepresented as being the original software.
slouken@12130
    19
  3. This notice may not be removed or altered from any source distribution.
slouken@12130
    20
*/
janisozaur+sdl2image@12366
    21
janisozaur+sdl2image@12366
    22
#ifndef SDL_sensor_c_h_
janisozaur+sdl2image@12366
    23
#define SDL_sensor_c_h_
janisozaur+sdl2image@12366
    24
slouken@12130
    25
#include "SDL_config.h"
slouken@12130
    26
slouken@12130
    27
struct _SDL_SensorDriver;
slouken@12130
    28
slouken@12130
    29
/* Useful functions and variables from SDL_sensor.c */
slouken@12130
    30
#include "SDL_sensor.h"
slouken@12130
    31
slouken@12130
    32
/* Function to get the next available sensor instance ID */
slouken@12130
    33
extern SDL_SensorID SDL_GetNextSensorInstanceID(void);
slouken@12130
    34
slouken@12130
    35
/* Initialization and shutdown functions */
slouken@12130
    36
extern int SDL_SensorInit(void);
slouken@12130
    37
extern void SDL_SensorQuit(void);
slouken@12130
    38
slouken@12130
    39
/* Internal event queueing functions */
slouken@12130
    40
extern int SDL_PrivateSensorUpdate(SDL_Sensor *sensor, float *data, int num_values);
slouken@12130
    41
janisozaur+sdl2image@12366
    42
#endif /* SDL_sensor_c_h_ */
janisozaur+sdl2image@12366
    43
slouken@12130
    44
/* vi: set ts=4 sw=4 expandtab: */