1 /* pk-ios.h - IOS-related functions for poke.  */
2 
3 /* Copyright (C) 2020, 2021 Jose E. Marchesi */
4 
5 /* This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef PK_IOS_H
20 #define PK_IOS_H
21 
22 #include <config.h>
23 
24 /* Open a new IO space in the application and return its IOS id.
25 
26    HANDLER is the handler identifying the IO space.  This is typically
27    the name of a file.
28 
29    SET_CUR_P is 1 if the IOS is to become the current IOS after being
30    opened.  0 otherwise.
31 
32    Return the IOS id of the newly opened IOS, or PK_IOS_ERROR if the
33    given handler coulnd't be opened.  */
34 
35 int pk_open_ios (const char *handler, int set_cur_p);
36 
37 #endif /* ! PK_IOS_H */
38