/*
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

# ifndef _PSP_GLOBAL_H_
# define _PSP_GLOBAL_H_

#include "gnugo.h"

# define MAX_PATH   128
  extern char psp_homedir[MAX_PATH];

# define GGO_EMPTY  0
# define GGO_BLACK  1
# define GGO_WHITE  2

  typedef struct GGO_t {

    int   board_max_width;
    int   board_min_width;
    int   board_max_size;
    int   xor_color;
    int   board_color;

    int   board_width;
    char *board_array;

    int   current_x;
    int   current_y;
    int   last_move_x;
    int   last_move_y;
    int   passes;

    Gameinfo gameinfo;
    SGFTree  sgftree;

    int      go_handicap;
    int      go_player_color; /* black or white ? */
    
    int      psp_cpu_clock;
    int      psp_screenshot_mode;
    int      psp_screenshot_id;

  } GGO_t;

  extern GGO_t GGO;

  extern int psp_global_reset();
  extern int psp_parse_configuration(void);
  extern int psp_save_configuration(void);

# endif
