2007-12-30 17:41:49 +01:00
|
|
|
/***************************************************************************
|
|
|
|
|
2009-08-17 12:41:51 +02:00
|
|
|
gbx_project.h
|
2007-12-30 17:41:49 +01:00
|
|
|
|
2018-02-12 02:53:46 +01:00
|
|
|
(c) 2000-2017 Benoît Minisini <g4mba5@gmail.com>
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
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
|
2009-08-17 12:41:51 +02:00
|
|
|
the Free Software Foundation; either version 2, or (at your option)
|
2007-12-30 17:41:49 +01:00
|
|
|
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
|
2011-06-03 02:51:09 +02:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
2011-12-31 03:39:20 +01:00
|
|
|
MA 02110-1301, USA.
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __GBX_PROJECT_H
|
|
|
|
#define __GBX_PROJECT_H
|
|
|
|
|
|
|
|
#include "gbx_class.h"
|
|
|
|
|
|
|
|
typedef
|
|
|
|
struct {
|
|
|
|
char *command;
|
|
|
|
void (*func)();
|
|
|
|
}
|
|
|
|
PROJECT_COMMAND;
|
|
|
|
|
2011-08-21 04:27:16 +02:00
|
|
|
typedef
|
|
|
|
void (*PROJECT_COMPONENT_CALLBACK)(char *);
|
2016-02-01 03:18:49 +01:00
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
#ifndef __GBX_PROJECT_C
|
|
|
|
EXTERN char *PROJECT_path;
|
|
|
|
EXTERN char *PROJECT_exec_path;
|
|
|
|
EXTERN char *PROJECT_name;
|
|
|
|
EXTERN char *PROJECT_title;
|
|
|
|
EXTERN char *PROJECT_version;
|
2014-02-12 23:26:02 +01:00
|
|
|
EXTERN const char *PROJECT_startup;
|
2007-12-30 17:41:49 +01:00
|
|
|
EXTERN CLASS *PROJECT_class;
|
|
|
|
EXTERN int PROJECT_argc;
|
|
|
|
EXTERN char **PROJECT_argv;
|
2017-02-07 01:08:22 +01:00
|
|
|
//EXTERN char *PROJECT_argname;
|
2007-12-30 17:41:49 +01:00
|
|
|
EXTERN char *PROJECT_oldcwd;
|
|
|
|
EXTERN char *PROJECT_user_home;
|
2013-08-02 23:57:49 +02:00
|
|
|
EXTERN bool PROJECT_run_httpd;
|
2020-05-07 08:17:27 +02:00
|
|
|
EXTERN bool PROJECT_run_tests;
|
2020-11-02 22:09:35 +01:00
|
|
|
EXTERN const char *PROJECT_override;
|
2007-12-30 17:41:49 +01:00
|
|
|
#endif
|
|
|
|
|
2008-01-17 22:39:26 +01:00
|
|
|
void PROJECT_init(const char *file);
|
2013-01-29 01:53:21 +01:00
|
|
|
void PROJECT_load(void);
|
2012-09-27 22:52:08 +02:00
|
|
|
void PROJECT_load_finish(void);
|
2008-01-17 22:39:26 +01:00
|
|
|
void PROJECT_exit(void);
|
2011-08-21 04:27:16 +02:00
|
|
|
void PROJECT_analyze_startup(char *addr, int len, PROJECT_COMPONENT_CALLBACK cb);
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
#endif
|