bump up version number
[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         hgw_context_destroy(hgw_context, HGW_BYE_INACTIVE);
37         return 0;
38 }
39
40 // Quit game
41 int quit_callback(int errcode) {
42         printf("quit_callback called...\n");
43         hgw_context_destroy(hgw_context, HGW_BYE_INACTIVE);
44         return 0;
45 }
46
47 int flush_callback(int errcode) {
48         printf("quit_callback called...\n");
49         hgw_context_destroy(hgw_context, HGW_BYE_INACTIVE);
50         return 0;
51 }