/* * Copyright (C) 2003 Benjamin Otte * * 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, 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. * * $Id$ */ #ifndef __GAME_WORKER_H__ #define __GAME_WORKER_H__ #include G_BEGIN_DECLS #define GAME_TYPE_WORKER (game_worker_get_type ()) #define GAME_WORKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GAME_TYPE_WORKER, GameWorker)) #define GAME_IS_WORKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GAME_TYPE_WORKER)) #define GAME_WORKER_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GAME_TYPE_WORKER, GameWorkerInterface)) typedef struct _GameWorker GameWorker; /* dummy object */ typedef struct _GameWorkerInterface GameWorkerInterface; struct _GameWorkerInterface { GTypeInterface parent; /* vfuncs */ void (* start_action) (GameWorker * worker, const char * name); void (* stop_action) (GameWorker * worker, const char * name); }; GType game_worker_get_type (void) G_GNUC_CONST; /* public functions */ void game_worker_start (GameWorker * worker, const char * name); void game_worker_stop (GameWorker * worker, const char * name); G_END_DECLS #endif /* __GAME_WORKER_H__ */