fork of PCE focusing on macplus, supporting DaynaPort SCSI network emulation
1/*****************************************************************************
2 * pce *
3 *****************************************************************************/
4
5/*****************************************************************************
6 * File name: src/drivers/options.h *
7 * Created: 2009-10-17 by Hampa Hug <hampa@hampa.ch> *
8 * Copyright: (C) 2009-2011 Hampa Hug <hampa@hampa.ch> *
9 *****************************************************************************/
10
11/*****************************************************************************
12 * This program is free software. You can redistribute it and / or modify it *
13 * under the terms of the GNU General Public License version 2 as published *
14 * by the Free Software Foundation. *
15 * *
16 * This program is distributed in the hope that it will be useful, but *
17 * WITHOUT ANY WARRANTY, without even the implied warranty of *
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
19 * Public License for more details. *
20 *****************************************************************************/
21
22
23#ifndef PCE_DRIVERS_OPTIONS_H
24#define PCE_DRIVERS_OPTIONS_H 1
25
26
27/*!***************************************************************************
28 * @short Get a named driver option
29 * @return The option value or NULL if the option is not defined in str
30 *
31 * The returned string is owned by the caller.
32 *****************************************************************************/
33char *drv_get_option (const char *str, const char *name);
34
35/*!***************************************************************************
36 * @short Get a named boolean driver option
37 @ @return The option value
38 *****************************************************************************/
39int drv_get_option_bool (const char *str, const char *name, int def);
40
41/*!***************************************************************************
42 * @short Get a named unsigned integer driver option
43 @ @return The option value
44 *****************************************************************************/
45unsigned long drv_get_option_uint (const char *str, const char *name, unsigned long def);
46
47/*!***************************************************************************
48 * @short Get a named integer driver option
49 @ @return The option value
50 *****************************************************************************/
51long drv_get_option_sint (const char *str, const char *name, long def);
52
53
54#endif