src/SDL_hints_c.h
author Tim Angus <tim@blackcompanystudios.co.uk>
Wed, 15 Jun 2011 10:28:01 +0100
changeset 5556 45a709ef443d
child 5878 bc68122afbed
permissions -rw-r--r--
* Add missing file SDL_hints_c.h
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5556
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
     1
/*
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
     2
 Simple DirectMedia Layer
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
     3
 Copyright (C) 1997-2011 Sam Lantinga <slouken@libsdl.org>
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
     4
 
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
     5
 This software is provided 'as-is', without any express or implied
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
     6
 warranty.  In no event will the authors be held liable for any damages
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
     7
 arising from the use of this software.
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
     8
 
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
     9
 Permission is granted to anyone to use this software for any purpose,
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    10
 including commercial applications, and to alter it and redistribute it
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    11
 freely, subject to the following restrictions:
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    12
 
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    13
 1. The origin of this software must not be misrepresented; you must not
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    14
 claim that you wrote the original software. If you use this software
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    15
 in a product, an acknowledgment in the product documentation would be
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    16
 appreciated but is not required.
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    17
 2. Altered source versions must be plainly marked as such, and must not be
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    18
 misrepresented as being the original software.
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    19
 3. This notice may not be removed or altered from any source distribution.
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    20
 */
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    21
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    22
#ifndef _SDL_hints_c_h
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    23
#define _SDL_hints_c_h
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    24
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    25
/**
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    26
 *  \brief  A callback function that is optionally called when a hint changes
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    27
 */
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    28
typedef void (*SDL_HintChangedCb)(const char *name, const char *oldValue, const char *newValue);
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    29
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    30
extern SDL_bool SDL_RegisterHintChangedCb(const char *name, SDL_HintChangedCb hintCb);
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    31
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    32
#endif /* _SDL_hints_c_h */
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    33
45a709ef443d * Add missing file SDL_hints_c.h
Tim Angus <tim@blackcompanystudios.co.uk>
parents:
diff changeset
    34
/* vi: set ts=4 sw=4 expandtab: */