0b0e6cfc87bde496c05fb24e0f369820f1cba856
[mancala] / src / callbacks.c
1 /*
2 * This file is part of Mancala
3 *
4 * Originally from Crazyparking:
5 *
6 * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia
7 * http://www.indt.org/maemo
8 *
9 * adapted:
10 * Copyright (c) 2009 Reto Zingg
11 *
12 * This software is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Lesser General Public License
14 * as published by the Free Software Foundation; either version 2.1 of
15 * the License, or (at your option) any later version.
16 *
17 * This software is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Lesser General Public License for more details.
21 *
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this software; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 * 02110-1301 USA
26 *
27 */
28 #include <stdio.h>
29 #include <hgw/hgw.h>
30 #include "callbacks.h"
31
32
33 // Pause the game
34 int exit_callback(int errcode) {
35     printf("exit_callback called...\n");
36         return 0;
37 }
38
39 // Quit game
40 int quit_callback(int errcode) {
41     printf("quit_callback called...\n");
42         hgw_context_compat_destroy_quit(hgw_context);
43         return 0;
44 }
45
46 int flush_callback(int errcode) {
47     printf("quit_callback called...\n");
48         return 0;
49 }