| 1 |
/* $Id$ */ |
| 2 |
|
| 3 |
/*============================================================================*/ |
| 4 |
/** |
| 5 |
* @file c_wrapper.h |
| 6 |
* |
| 7 |
* @author Fukasawa Mitsuo |
| 8 |
* |
| 9 |
* |
| 10 |
* Copyright (C) 2001-2004 BEE Co.,Ltd. All rights reserved. |
| 11 |
* |
| 12 |
* This program is free software; you can redistribute it and/or |
| 13 |
* modify it under the terms of the GNU General Public License |
| 14 |
* as published by the Free Software Foundation; either version 2 |
| 15 |
* of the License, or (at your option) any later version. |
| 16 |
* |
| 17 |
* This program is distributed in the hope that it will be useful, |
| 18 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 |
* GNU General Public License for more details. |
| 21 |
* |
| 22 |
* You should have received a copy of the GNU General Public License |
| 23 |
* along with this program; if not, write to the Free Software |
| 24 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 25 |
*/ |
| 26 |
/*============================================================================*/ |
| 27 |
|
| 28 |
#ifndef C_WRAPPER_H |
| 29 |
#define C_WRAPPER_H |
| 30 |
|
| 31 |
#include <stdlib.h> |
| 32 |
|
| 33 |
#ifdef __cplusplus |
| 34 |
extern "C" { |
| 35 |
#endif |
| 36 |
|
| 37 |
typedef void (*fini_handler)(void); |
| 38 |
|
| 39 |
int ace_init(int argc, char * argv[]); |
| 40 |
int ace_run_loop(); |
| 41 |
void ace_fini(); |
| 42 |
void ace_error_log(const char * fmt, ...); |
| 43 |
void ace_debug_log(const char * fmt, ...); |
| 44 |
void ace_hexdump(const char * top, size_t size); |
| 45 |
void ace_disable_debug_log(); |
| 46 |
void ace_enable_debug_log(); |
| 47 |
void ace_fini_handler(fini_handler fh); |
| 48 |
|
| 49 |
|
| 50 |
#ifdef __cplusplus |
| 51 |
} |
| 52 |
#endif |
| 53 |
|
| 54 |
#endif /* C_WRAPPER_H */ |