xref: /php-src/ext/sysvmsg/sysvmsg_arginfo.h (revision 53cb8967)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: ed5b1e4e5dda6a65ce336fc4daa975520c354f17 */
3 
4 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_msg_get_queue, 0, 1, SysvMessageQueue, MAY_BE_FALSE)
5 	ZEND_ARG_TYPE_INFO(0, key, IS_LONG, 0)
6 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, permissions, IS_LONG, 0, "0666")
7 ZEND_END_ARG_INFO()
8 
9 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_msg_send, 0, 3, _IS_BOOL, 0)
10 	ZEND_ARG_OBJ_INFO(0, queue, SysvMessageQueue, 0)
11 	ZEND_ARG_TYPE_INFO(0, message_type, IS_LONG, 0)
12 	ZEND_ARG_INFO(0, message)
13 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, serialize, _IS_BOOL, 0, "true")
14 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, blocking, _IS_BOOL, 0, "true")
15 	ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, error_code, "null")
16 ZEND_END_ARG_INFO()
17 
18 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_msg_receive, 0, 5, _IS_BOOL, 0)
19 	ZEND_ARG_OBJ_INFO(0, queue, SysvMessageQueue, 0)
20 	ZEND_ARG_TYPE_INFO(0, desired_message_type, IS_LONG, 0)
21 	ZEND_ARG_INFO(1, received_message_type)
22 	ZEND_ARG_TYPE_INFO(0, max_message_size, IS_LONG, 0)
23 	ZEND_ARG_TYPE_INFO(1, message, IS_MIXED, 0)
24 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, unserialize, _IS_BOOL, 0, "true")
25 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
26 	ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, error_code, "null")
27 ZEND_END_ARG_INFO()
28 
29 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_msg_remove_queue, 0, 1, _IS_BOOL, 0)
30 	ZEND_ARG_OBJ_INFO(0, queue, SysvMessageQueue, 0)
31 ZEND_END_ARG_INFO()
32 
33 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_msg_stat_queue, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
34 	ZEND_ARG_OBJ_INFO(0, queue, SysvMessageQueue, 0)
35 ZEND_END_ARG_INFO()
36 
37 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_msg_set_queue, 0, 2, _IS_BOOL, 0)
38 	ZEND_ARG_OBJ_INFO(0, queue, SysvMessageQueue, 0)
39 	ZEND_ARG_TYPE_INFO(0, data, IS_ARRAY, 0)
40 ZEND_END_ARG_INFO()
41 
42 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_msg_queue_exists, 0, 1, _IS_BOOL, 0)
43 	ZEND_ARG_TYPE_INFO(0, key, IS_LONG, 0)
44 ZEND_END_ARG_INFO()
45 
46 ZEND_FUNCTION(msg_get_queue);
47 ZEND_FUNCTION(msg_send);
48 ZEND_FUNCTION(msg_receive);
49 ZEND_FUNCTION(msg_remove_queue);
50 ZEND_FUNCTION(msg_stat_queue);
51 ZEND_FUNCTION(msg_set_queue);
52 ZEND_FUNCTION(msg_queue_exists);
53 
54 static const zend_function_entry ext_functions[] = {
55 	ZEND_FE(msg_get_queue, arginfo_msg_get_queue)
56 	ZEND_FE(msg_send, arginfo_msg_send)
57 	ZEND_FE(msg_receive, arginfo_msg_receive)
58 	ZEND_FE(msg_remove_queue, arginfo_msg_remove_queue)
59 	ZEND_FE(msg_stat_queue, arginfo_msg_stat_queue)
60 	ZEND_FE(msg_set_queue, arginfo_msg_set_queue)
61 	ZEND_FE(msg_queue_exists, arginfo_msg_queue_exists)
62 	ZEND_FE_END
63 };
64 
register_sysvmsg_symbols(int module_number)65 static void register_sysvmsg_symbols(int module_number)
66 {
67 	REGISTER_LONG_CONSTANT("MSG_IPC_NOWAIT", PHP_MSG_IPC_NOWAIT, CONST_PERSISTENT);
68 	REGISTER_LONG_CONSTANT("MSG_EAGAIN", EAGAIN, CONST_PERSISTENT);
69 	REGISTER_LONG_CONSTANT("MSG_ENOMSG", ENOMSG, CONST_PERSISTENT);
70 	REGISTER_LONG_CONSTANT("MSG_NOERROR", PHP_MSG_NOERROR, CONST_PERSISTENT);
71 	REGISTER_LONG_CONSTANT("MSG_EXCEPT", PHP_MSG_EXCEPT, CONST_PERSISTENT);
72 }
73 
register_class_SysvMessageQueue(void)74 static zend_class_entry *register_class_SysvMessageQueue(void)
75 {
76 	zend_class_entry ce, *class_entry;
77 
78 	INIT_CLASS_ENTRY(ce, "SysvMessageQueue", NULL);
79 	class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE);
80 
81 	return class_entry;
82 }
83