2 * This file is part of Crazy Parking
4 * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia
5 * http://www.indt.org/maemo
7 * This software is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public License
9 * as published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
12 * This software is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 #include "callbacks.h"
26 // #include "images.h"
30 int exit_callback(int errcode) {
34 // han = fopen("/tmp/.crazyparking-save", "wb");
36 // fwrite(&actual_level, sizeof(int), 1, han);
37 // fwrite(&moves, sizeof(int), 1, han);
38 // fwrite(car, sizeof(struct CAR), cars, han);
41 fprintf(stderr, "exit_callback called...\n");
47 int quit_callback(int errcode) {
48 // remove("/tmp/.crazyparking-save");
49 fprintf(stderr, "quit_callback called...\n");
50 hgw_context_compat_destroy_quit(hgw_context);
54 int flush_callback(int errcode) {
55 // remove("/tmp/.crazyparking-save");
56 fprintf(stderr, "quit_callback called...\n");