/* ReSCAL - GTK callbacks
 *
 * Copyright (C) 2011
 *
 * Author: Olivier Rozier <rozier@ipgp.fr>
 *
 * This file is part of ReSCAL.
 *
 * ReSCAL 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */


//#define FLASH_DELAY 50


typedef struct dump_parameters {
  unsigned char type;
  int delay;
} DumpPar;

typedef struct dump_delay {
  unsigned char unit;
  float val;
} DumpDelay;

void callbacks_init();
void lock_display(int log_flag);
int trylock_display(int log_flag);
void unlock_display(int log_flag);
int elapsed(double *sec);
void timer_init();
void *rescal_thread(void *data);
void do_thread_sched();
void log_info();

#ifdef __GTK_H__
gboolean gcallback_dump (gpointer  data);
gboolean gcallback_stop (gpointer  data);
gboolean gcallback_quit (gpointer data);
gboolean gcallback_flash(gpointer  data);

void on_drawingarea1_expose_event(GtkObject *object, gpointer user_data);
void on_tool_button_go_toggled (GtkObject *object, gpointer user_data);
void on_action_info_activate (GtkObject *object, gpointer user_data);
gboolean on_drawingarea1_button_press_event(GtkWidget *widget, GdkEventButton *event, gpointer user_data);
void on_window_destroy (GtkObject *object, gpointer user_data);
#endif


