-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfliplist.h
58 lines (50 loc) · 2.07 KB
/
fliplist.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* fliplist.h
*
* Written by
* pottendo <pottendo@gmx.net>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* 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
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
* 02111-1307 USA.
*
*/
#ifndef VICE_FLIPLIST_H
#define VICE_FLIPLIST_H
#define FLIP_NEXT 1
#define FLIP_PREV 0
typedef struct fliplist_s * fliplist_t;
extern int fliplist_resources_init(void);
extern void fliplist_resources_shutdown(void);
extern int fliplist_cmdline_options_init(void);
extern void fliplist_shutdown(void);
extern void fliplist_set_current(unsigned int unit, const char *image);
extern void fliplist_add_image(unsigned int unit);
extern void fliplist_remove(unsigned int unit, const char *image);
extern void fliplist_attach_head(unsigned int unit, int direction);
extern fliplist_t fliplist_init_iterate(unsigned int unit);
extern fliplist_t fliplist_next_iterate(unsigned int unit);
/*extern char *fliplist_get_head(unsigned int unit);*/
extern const char *fliplist_get_next(unsigned int unit);
extern const char *fliplist_get_prev(unsigned int unit);
extern const char *fliplist_get_image(fliplist_t fl);
extern unsigned int fliplist_get_unit(fliplist_t fl);
extern void fliplist_clear_list(unsigned int unit);
extern int fliplist_save_list(unsigned int unit, const char *filename);
extern int fliplist_load_list(unsigned int unit, const char *filename,
int autoattach);
#endif