-
-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathcdef.h
More file actions
23 lines (18 loc) · 1.04 KB
/
cdef.h
File metadata and controls
23 lines (18 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* Python specific cdefs which are loaded directly into cffi. */
#include "../libtcod/src/libtcod/libtcod.h"
extern "Python" {
bool _pycall_parser_new_struct(TCOD_parser_struct_t str, const char* name);
bool _pycall_parser_new_flag(const char* name);
bool _pycall_parser_new_property(const char* propname, TCOD_value_type_t type, TCOD_value_t value);
bool _pycall_parser_end_struct(TCOD_parser_struct_t str, const char* name);
void _pycall_parser_error(const char* msg);
bool _pycall_bsp_callback(TCOD_bsp_t* node, void* userData);
float _pycall_path_old(int x, int y, int xDest, int yDest, void* user_data);
float _pycall_path_simple(int x, int y, int xDest, int yDest, void* user_data);
float _pycall_path_swap_src_dest(int x1, int y1, int x2, int y2, void* user_data);
float _pycall_path_dest_only(int x1, int y1, int x2, int y2, void* user_data);
void _pycall_sdl_hook(struct SDL_Surface*);
void _pycall_cli_output(void* userdata, const char* output);
// Libtcod log watch function.
void _libtcod_log_watcher(const TCOD_LogMessage* message, void* userdata);
}