forked from RDashINC/win32std
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwin32std_arginfo.h
100 lines (83 loc) · 3.94 KB
/
win32std_arginfo.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
// See: https://github.com/php/php-src/blob/master/Zend/zend_API.h
// ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(name, return_reference, required_num_args, MAY_BE_STRING|MAY_BE_BOOL)
// ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, type, allow_null)
// ZEND_ARG_TYPE_INFO(pass_by_ref, name, type_hint, allow_null)
// ZEND_ARG_TYPE_MASK(pass_by_ref, name, MAY_BE_STRING|MAY_BE_BOOL, default_value)
// ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(pass_by_ref, name, type_hint, allow_null, default_value)
// ZEND_ARG_INFO_WITH_DEFAULT_VALUE(pass_by_ref, name, default_value)
// ZEND_END_ARG_INFO()
// function res_get($res_rc, $type, $name, $lang){}
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_res_get, 0, 4, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, res_rc)
ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, lang, IS_LONG, 1, "0")
ZEND_END_ARG_INFO()
//function res_list($res_rc, $type){}
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_res_list, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, res_rc)
ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0)
ZEND_END_ARG_INFO()
//function res_list_type($res_rc, $as_string){}
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_res_list_type, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, res_rc)
ZEND_ARG_TYPE_INFO(0, as_string, _IS_BOOL, 1)
ZEND_END_ARG_INFO()
//function res_open($module){}
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_res_open, 0, 1, MAY_BE_RESOURCE|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, module, IS_STRING, 0)
ZEND_END_ARG_INFO()
//function res_close($res_rc){}
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_res_close, 0, 1, _IS_BOOL, 0)
ZEND_ARG_INFO(0, res_rc)
ZEND_END_ARG_INFO()
//function res_set($module, $type, $mnameodule, $data){}
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_res_set, 0, 4, _IS_BOOL, 0)
ZEND_ARG_INFO(0, module)
ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, data, IS_LONG, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, lang, IS_LONG, 1, "0")
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_res_exists, 0, 4, _IS_BOOL, 0)
ZEND_ARG_INFO(0, res_rc)
ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, lang, IS_LONG, 1, "0")
ZEND_END_ARG_INFO()
//function win_play_wav(){}
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_win_play_wav, 0, 2, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, file, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, loop, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
//function win_beep(){}
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_win_beep, 0, 1, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_END_ARG_INFO()
//function win_message_box(){}
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_win_message_box, 0, 3, IS_LONG)
ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 1)
ZEND_ARG_TYPE_INFO(0, caption, IS_STRING, 1)
ZEND_END_ARG_INFO()
//function win_create_link(){}
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_win_create_link, 0, 5, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, file, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, link, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, args, IS_STRING, 1)
ZEND_ARG_TYPE_INFO(0, descr, IS_STRING, 1)
ZEND_ARG_TYPE_INFO(0, workingdir, IS_STRING, 1)
ZEND_END_ARG_INFO()
//function win_browse_folder(){}
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_win_browse_folder, 0, 2, IS_STRING)
ZEND_ARG_TYPE_INFO(0, dir, IS_STRING, 1)
ZEND_ARG_TYPE_INFO(0, caption, IS_STRING, 1)
ZEND_END_ARG_INFO()
//function win_browse_file(){}
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_win_browse_file, 0, 5, MAY_BE_STRING|MAY_BE_NULL)
ZEND_ARG_TYPE_INFO(0, open, IS_LONG, 1)
ZEND_ARG_TYPE_INFO(0, path, IS_STRING, 1)
ZEND_ARG_TYPE_INFO(0, file, IS_STRING, 1)
ZEND_ARG_TYPE_INFO(0, ext, IS_STRING, 1)
ZEND_ARG_TYPE_INFO(0, zfilter, MAY_BE_STRING|MAY_BE_ARRAY, 1)
ZEND_END_ARG_INFO()