Rev 140 | Rev 153 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 140 | Rev 150 | ||
|---|---|---|---|
| Line 31... | Line 31... | ||
| 31 | int Buffer_Prepend (buffer_t *buffer, char *data, unsigned long data_size); |
31 | int Buffer_Prepend (buffer_t *buffer, char *data, unsigned long data_size); |
| 32 | #define Buffer_PrependCString(buffer,string_data) Buffer_Prepend ((buffer), (string_data), strlen (string_data)) |
32 | #define Buffer_PrependCString(buffer,string_data) Buffer_Prepend ((buffer), (string_data), strlen (string_data)) |
| 33 | #define Buffer_PrependCharArray(buffer,char_array) Buffer_Prepend ((buffer), (char_array), sizeof (char_array) - 1) |
33 | #define Buffer_PrependCharArray(buffer,char_array) Buffer_Prepend ((buffer), (char_array), sizeof (char_array) - 1) |
| 34 | #define Buffer_PrependBuffer(buffer,prependable) Buffer_Prepend ((buffer), (prependable)->data, (prependable)->size) |
34 | #define Buffer_PrependBuffer(buffer,prependable) Buffer_Prepend ((buffer), (prependable)->data, (prependable)->size) |
| 35 | int Buffer_WriteAt (buffer_t *buffer, unsigned long write_index, char *data, unsigned long data_size); |
35 | int Buffer_WriteAt (buffer_t *buffer, unsigned long write_index, char *data, unsigned long data_size); |
| 36 | char *Buffer_SHA1 (buffer_t *buffer, char *hash_buffer); |
- | |
| 37 | int Buffer_ReadFromFile (buffer_t *buffer, const char *file_pathname); |
36 | int Buffer_ReadFromFile (buffer_t *buffer, const char *file_pathname); |
| 38 | int Buffer_ReadFromFileW (buffer_t *buffer, const wchar_t *file_pathname); |
37 | int Buffer_ReadFromFileW (buffer_t *buffer, const wchar_t *file_pathname); |
| 39 | int Buffer_WriteToFile (buffer_t *buffer, const char *file_pathname); |
38 | int Buffer_WriteToFile (buffer_t *buffer, const char *file_pathname); |
| 40 | int Buffer_WriteToFileW (buffer_t *buffer, const wchar_t *file_pathname); |
39 | int Buffer_WriteToFileW (buffer_t *buffer, const wchar_t *file_pathname); |
| 41 | char *Buffer_Find (buffer_t *buffer, char *needle, unsigned long needle_length); |
40 | char *Buffer_Find (buffer_t *buffer, char *needle, unsigned long needle_length); |
| Line 146... | Line 145... | ||
| 146 | 145 | ||
| 147 | // pgnfile.cpp function prototypes |
146 | // pgnfile.cpp function prototypes |
| 148 | bool PGNFile_Load (const wchar_t *pgnfile_pathname); |
147 | bool PGNFile_Load (const wchar_t *pgnfile_pathname); |
| 149 | bool PGNFile_LoadGame (board_t *board, const wchar_t *pgnfile_pathname, pgngame_t *game); |
148 | bool PGNFile_LoadGame (board_t *board, const wchar_t *pgnfile_pathname, pgngame_t *game); |
| 150 | bool PGNFile_Save (board_t *board, const wchar_t *pgnfile_pathname); |
149 | bool PGNFile_Save (board_t *board, const wchar_t *pgnfile_pathname); |
| - | 150 | ||
| - | 151 | // pipe.cpp function prototypes |
|
| - | 152 | FILE *pipe_open (const wchar_t *shell_command, const wchar_t *mode); |
|
| - | 153 | int pipe_close (FILE *stream); |
|
| - | 154 | int pipe_isalive (FILE *stream); |
|
| - | 155 | int pipe_hasdata (FILE *stream); |
|
| - | 156 | int pipe_read (FILE *stream, void *dstbuf, int nbytes); |
|
| - | 157 | int pipe_write (FILE *stream, void *srcbuf, int nbytes); |
|
| 151 | 158 | ||
| 152 | // player.cpp function prototypes |
159 | // player.cpp function prototypes |
| 153 | void Player_Init (player_t *player, int color, int type); |
160 | void Player_Init (player_t *player, int color, int type); |
| 154 | void Player_Shutdown (player_t *player); |
161 | void Player_Shutdown (player_t *player); |
| 155 | void Player_ResetView (player_t *player); |
162 | void Player_ResetView (player_t *player); |