"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/components.h" between
gnuchess-6.2.4.tar.gz and gnuchess-6.2.5.tar.gz

About: GNU Chess is a chess-playing program.

components.h  (gnuchess-6.2.4):components.h  (gnuchess-6.2.5)
/* GNU Chess 6 - components.h - Pipes shared across modules /* GNU Chess 6 - components.h - Pipes shared across modules
Copyright (c) 2001-2015 Free Software Foundation, Inc. Copyright (c) 2001-2017 Free Software Foundation, Inc.
GNU Chess is based on the two research programs GNU Chess is based on the two research programs
Cobalt by Chua Kong-Sian and Gazebo by Stuart Cracraft. Cobalt by Chua Kong-Sian and Gazebo by Stuart Cracraft.
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
skipping to change at line 26 skipping to change at line 26
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
Contact Info: Contact Info:
bug-gnu-chess@gnu.org bug-gnu-chess@gnu.org
cracraft@ai.mit.edu, cracraft@stanfordalumni.org, cracraft@earthlink.net cracraft@ai.mit.edu, cracraft@stanfordalumni.org, cracraft@earthlink.net
*/ */
#ifndef COMPONENTS_H
#define COMPONENTS_H
#include <pthread.h> #include <pthread.h>
/* File descriptors for the pipes to be used to communicate frontend, adapter an d engine */ /* File descriptors for the pipes to be used to communicate frontend, adapter an d engine */
extern int pipefd_i2f[2];
extern int pipefd_f2a[2]; extern int pipefd_f2a[2];
extern int pipefd_a2f[2]; extern int pipefd_a2f[2];
extern int pipefd_a2e[2]; extern int pipefd_a2e[2];
extern int pipefd_e2a[2]; extern int pipefd_e2a[2];
/* Adapter thread */
extern pthread_t adapter_thread;
/* /*
* Entry point for the adapter thread * Entry point for the adapter thread
*/ */
void *input_func(void *arg);
void *adapter_func(void *arg); void *adapter_func(void *arg);
void *engine_func(void *arg); void *engine_func(void *arg);
/* /*
* Starts the adapter (based on Polyglot 1.4) on a separate thread. * Starts the adapter (based on Polyglot 1.4) on a separate thread.
*/ */
void InitInput();
void InitAdapter(); void InitAdapter();
void InitEngine(); void InitEngine();
void TerminateAdapterEngine(); void TerminateAdapterEngine();
void TerminateInput();
#endif /* COMPONENTS_H */
 End of changes. 7 change blocks. 
4 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)