src/power/nds/SDL_syspower.c
author Sam Lantinga
Sat, 19 Sep 2009 13:29:40 +0000
changeset 3280 00cace2d9080
parent 3186 51750b7a966f
child 3697 f7b03b6838cb
permissions -rw-r--r--
Merged a cleaned up version of Jiang's code changes from Google Summer of Code 2009
icculus@3170
     1
/*
icculus@3170
     2
    SDL - Simple DirectMedia Layer
icculus@3170
     3
    Copyright (C) 1997-2009 Sam Lantinga
icculus@3170
     4
icculus@3170
     5
    This library is free software; you can redistribute it and/or
icculus@3170
     6
    modify it under the terms of the GNU Lesser General Public
icculus@3170
     7
    License as published by the Free Software Foundation; either
icculus@3170
     8
    version 2.1 of the License, or (at your option) any later version.
icculus@3170
     9
icculus@3170
    10
    This library is distributed in the hope that it will be useful,
icculus@3170
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
icculus@3170
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
icculus@3170
    13
    Lesser General Public License for more details.
icculus@3170
    14
icculus@3170
    15
    You should have received a copy of the GNU Lesser General Public
icculus@3170
    16
    License along with this library; if not, write to the Free Software
icculus@3170
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
icculus@3170
    18
icculus@3170
    19
    Sam Lantinga
icculus@3170
    20
    slouken@libsdl.org
icculus@3170
    21
*/
icculus@3170
    22
#include "SDL_config.h"
icculus@3170
    23
icculus@3170
    24
#ifndef SDL_POWER_DISABLED
icculus@3170
    25
#ifdef SDL_POWER_NINTENDODS
icculus@3170
    26
icculus@3170
    27
#include "SDL_power.h"
icculus@3170
    28
icculus@3170
    29
SDL_bool
slouken@3186
    30
SDL_GetPowerInfo_NintendoDS(SDL_PowerState * state, int *seconds,
slouken@3186
    31
                            int *percent)
icculus@3170
    32
{
icculus@3170
    33
    /* !!! FIXME: write me. */
icculus@3170
    34
icculus@3170
    35
    *state = SDL_POWERSTATE_UNKNOWN;
icculus@3170
    36
    *percent = -1;
icculus@3170
    37
    *seconds = -1;
icculus@3170
    38
slouken@3186
    39
    return SDL_TRUE;            /* always the definitive answer on Nintendo DS. */
icculus@3170
    40
}
icculus@3170
    41
icculus@3170
    42
#endif /* SDL_POWER_NINTENDODS */
icculus@3170
    43
#endif /* SDL_POWER_DISABLED */
icculus@3170
    44
icculus@3170
    45
/* vi: set ts=4 sw=4 expandtab: */