-
Notifications
You must be signed in to change notification settings - Fork 14
/
uuid_legacy_arginfo.h
136 lines (121 loc) · 4.32 KB
/
uuid_legacy_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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: f9608bd9b52b78c63d11ae9e93fca592c459b8df */
ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_create, 0, 0, 0)
ZEND_ARG_INFO(0, uuid_type)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_is_valid, 0, 0, 1)
ZEND_ARG_INFO(0, uuid)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_compare, 0, 0, 2)
ZEND_ARG_INFO(0, uuid1)
ZEND_ARG_INFO(0, uuid2)
ZEND_END_ARG_INFO()
#define arginfo_uuid_is_null arginfo_uuid_is_valid
#if defined(HAVE_UUID_GENERATE_MD5)
ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_generate_md5, 0, 0, 2)
ZEND_ARG_INFO(0, uuid_ns)
ZEND_ARG_INFO(0, name)
ZEND_END_ARG_INFO()
#endif
#if defined(HAVE_UUID_GENERATE_SHA1)
ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_generate_sha1, 0, 0, 2)
ZEND_ARG_INFO(0, uuid_ns)
ZEND_ARG_INFO(0, name)
ZEND_END_ARG_INFO()
#endif
#if defined(HAVE_UUID_TYPE)
ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_type, 0, 0, 1)
ZEND_ARG_INFO(0, uuid)
ZEND_END_ARG_INFO()
#endif
#if defined(HAVE_UUID_VARIANT)
ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_variant, 0, 0, 1)
ZEND_ARG_INFO(0, uuid)
ZEND_END_ARG_INFO()
#endif
#if defined(HAVE_UUID_TIME) || defined(HAVE_UUID_TIME64)
ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_time, 0, 0, 1)
ZEND_ARG_INFO(0, uuid)
ZEND_END_ARG_INFO()
#endif
#define arginfo_uuid_mac arginfo_uuid_is_valid
#define arginfo_uuid_parse arginfo_uuid_is_valid
#define arginfo_uuid_unparse arginfo_uuid_is_valid
ZEND_FUNCTION(uuid_create);
ZEND_FUNCTION(uuid_is_valid);
ZEND_FUNCTION(uuid_compare);
ZEND_FUNCTION(uuid_is_null);
#if defined(HAVE_UUID_GENERATE_MD5)
ZEND_FUNCTION(uuid_generate_md5);
#endif
#if defined(HAVE_UUID_GENERATE_SHA1)
ZEND_FUNCTION(uuid_generate_sha1);
#endif
#if defined(HAVE_UUID_TYPE)
ZEND_FUNCTION(uuid_type);
#endif
#if defined(HAVE_UUID_VARIANT)
ZEND_FUNCTION(uuid_variant);
#endif
#if defined(HAVE_UUID_TIME) || defined(HAVE_UUID_TIME64)
ZEND_FUNCTION(uuid_time);
#endif
ZEND_FUNCTION(uuid_mac);
ZEND_FUNCTION(uuid_parse);
ZEND_FUNCTION(uuid_unparse);
static const zend_function_entry ext_functions[] = {
ZEND_FE(uuid_create, arginfo_uuid_create)
ZEND_FE(uuid_is_valid, arginfo_uuid_is_valid)
ZEND_FE(uuid_compare, arginfo_uuid_compare)
ZEND_FE(uuid_is_null, arginfo_uuid_is_null)
#if defined(HAVE_UUID_GENERATE_MD5)
ZEND_FE(uuid_generate_md5, arginfo_uuid_generate_md5)
#endif
#if defined(HAVE_UUID_GENERATE_SHA1)
ZEND_FE(uuid_generate_sha1, arginfo_uuid_generate_sha1)
#endif
#if defined(HAVE_UUID_TYPE)
ZEND_FE(uuid_type, arginfo_uuid_type)
#endif
#if defined(HAVE_UUID_VARIANT)
ZEND_FE(uuid_variant, arginfo_uuid_variant)
#endif
#if defined(HAVE_UUID_TIME) || defined(HAVE_UUID_TIME64)
ZEND_FE(uuid_time, arginfo_uuid_time)
#endif
ZEND_FE(uuid_mac, arginfo_uuid_mac)
ZEND_FE(uuid_parse, arginfo_uuid_parse)
ZEND_FE(uuid_unparse, arginfo_uuid_unparse)
ZEND_FE_END
};
static void register_uuid_symbols(int module_number)
{
#if defined(UUID_VARIANT_NCS)
REGISTER_LONG_CONSTANT("UUID_VARIANT_NCS", UUID_VARIANT_NCS, CONST_PERSISTENT | CONST_CS);
#endif
#if defined(UUID_VARIANT_DCE)
REGISTER_LONG_CONSTANT("UUID_VARIANT_DCE", UUID_VARIANT_DCE, CONST_PERSISTENT | CONST_CS);
#endif
#if defined(UUID_VARIANT_MICROSOFT)
REGISTER_LONG_CONSTANT("UUID_VARIANT_MICROSOFT", UUID_VARIANT_MICROSOFT, CONST_PERSISTENT | CONST_CS);
#endif
#if defined(UUID_VARIANT_OTHER)
REGISTER_LONG_CONSTANT("UUID_VARIANT_OTHER", UUID_VARIANT_OTHER, CONST_PERSISTENT | CONST_CS);
#endif
REGISTER_LONG_CONSTANT("UUID_TYPE_DEFAULT", 0, CONST_PERSISTENT | CONST_CS);
REGISTER_LONG_CONSTANT("UUID_TYPE_DCE", UUID_TYPE_DCE, CONST_PERSISTENT | CONST_CS);
REGISTER_LONG_CONSTANT("UUID_TYPE_NAME", UUID_TYPE_NAME, CONST_PERSISTENT | CONST_CS);
REGISTER_LONG_CONSTANT("UUID_TYPE_TIME", UUID_TYPE_TIME, CONST_PERSISTENT | CONST_CS);
#if defined(UUID_TYPE_DCE_SECURITY)
REGISTER_LONG_CONSTANT("UUID_TYPE_SECURITY", UUID_TYPE_DCE_SECURITY, CONST_PERSISTENT | CONST_CS);
#endif
#if defined(UUID_TYPE_DCE_MD5)
REGISTER_LONG_CONSTANT("UUID_TYPE_MD5", UUID_TYPE_DCE_MD5, CONST_PERSISTENT | CONST_CS);
#endif
REGISTER_LONG_CONSTANT("UUID_TYPE_RANDOM", UUID_TYPE_DCE_RANDOM, CONST_PERSISTENT | CONST_CS);
#if defined(UUID_TYPE_DCE_SHA1)
REGISTER_LONG_CONSTANT("UUID_TYPE_SHA1", UUID_TYPE_DCE_SHA1, CONST_PERSISTENT | CONST_CS);
#endif
REGISTER_LONG_CONSTANT("UUID_TYPE_NULL", -1, CONST_PERSISTENT | CONST_CS);
REGISTER_LONG_CONSTANT("UUID_TYPE_INVALID", -42, CONST_PERSISTENT | CONST_CS);
}