1 /* This is a generated file, edit the .stub.php file instead. 2 * Stub hash: dc3f1b78feb7b9c87f6c16aab78a1555e4bcf010 */ 3 4 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_snmpget, 0, 3, IS_MIXED, 0) 5 ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0) 6 ZEND_ARG_TYPE_INFO(0, community, IS_STRING, 0) 7 ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING, NULL) 8 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeout, IS_LONG, 0, "-1") 9 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, retries, IS_LONG, 0, "-1") 10 ZEND_END_ARG_INFO() 11 12 #define arginfo_snmpgetnext arginfo_snmpget 13 14 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_snmpwalk, 0, 3, MAY_BE_ARRAY|MAY_BE_FALSE) 15 ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0) 16 ZEND_ARG_TYPE_INFO(0, community, IS_STRING, 0) 17 ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING, NULL) 18 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeout, IS_LONG, 0, "-1") 19 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, retries, IS_LONG, 0, "-1") 20 ZEND_END_ARG_INFO() 21 22 #define arginfo_snmprealwalk arginfo_snmpwalk 23 24 #define arginfo_snmpwalkoid arginfo_snmpwalk 25 26 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_snmpset, 0, 5, _IS_BOOL, 0) 27 ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0) 28 ZEND_ARG_TYPE_INFO(0, community, IS_STRING, 0) 29 ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING, NULL) 30 ZEND_ARG_TYPE_MASK(0, type, MAY_BE_ARRAY|MAY_BE_STRING, NULL) 31 ZEND_ARG_TYPE_MASK(0, value, MAY_BE_ARRAY|MAY_BE_STRING, NULL) 32 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeout, IS_LONG, 0, "-1") 33 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, retries, IS_LONG, 0, "-1") 34 ZEND_END_ARG_INFO() 35 36 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_snmp_get_quick_print, 0, 0, _IS_BOOL, 0) 37 ZEND_END_ARG_INFO() 38 39 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_snmp_set_quick_print, 0, 1, _IS_BOOL, 0) 40 ZEND_ARG_TYPE_INFO(0, enable, _IS_BOOL, 0) 41 ZEND_END_ARG_INFO() 42 43 #define arginfo_snmp_set_enum_print arginfo_snmp_set_quick_print 44 45 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_snmp_set_oid_output_format, 0, 1, _IS_BOOL, 0) 46 ZEND_ARG_TYPE_INFO(0, format, IS_LONG, 0) 47 ZEND_END_ARG_INFO() 48 49 #define arginfo_snmp_set_oid_numeric_print arginfo_snmp_set_oid_output_format 50 51 #define arginfo_snmp2_get arginfo_snmpget 52 53 #define arginfo_snmp2_getnext arginfo_snmpget 54 55 #define arginfo_snmp2_walk arginfo_snmpwalk 56 57 #define arginfo_snmp2_real_walk arginfo_snmpwalk 58 59 #define arginfo_snmp2_set arginfo_snmpset 60 61 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_snmp3_get, 0, 8, IS_MIXED, 0) 62 ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0) 63 ZEND_ARG_TYPE_INFO(0, security_name, IS_STRING, 0) 64 ZEND_ARG_TYPE_INFO(0, security_level, IS_STRING, 0) 65 ZEND_ARG_TYPE_INFO(0, auth_protocol, IS_STRING, 0) 66 ZEND_ARG_TYPE_INFO(0, auth_passphrase, IS_STRING, 0) 67 ZEND_ARG_TYPE_INFO(0, privacy_protocol, IS_STRING, 0) 68 ZEND_ARG_TYPE_INFO(0, privacy_passphrase, IS_STRING, 0) 69 ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING, NULL) 70 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeout, IS_LONG, 0, "-1") 71 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, retries, IS_LONG, 0, "-1") 72 ZEND_END_ARG_INFO() 73 74 #define arginfo_snmp3_getnext arginfo_snmp3_get 75 76 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_snmp3_walk, 0, 8, MAY_BE_ARRAY|MAY_BE_FALSE) 77 ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0) 78 ZEND_ARG_TYPE_INFO(0, security_name, IS_STRING, 0) 79 ZEND_ARG_TYPE_INFO(0, security_level, IS_STRING, 0) 80 ZEND_ARG_TYPE_INFO(0, auth_protocol, IS_STRING, 0) 81 ZEND_ARG_TYPE_INFO(0, auth_passphrase, IS_STRING, 0) 82 ZEND_ARG_TYPE_INFO(0, privacy_protocol, IS_STRING, 0) 83 ZEND_ARG_TYPE_INFO(0, privacy_passphrase, IS_STRING, 0) 84 ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING, NULL) 85 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeout, IS_LONG, 0, "-1") 86 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, retries, IS_LONG, 0, "-1") 87 ZEND_END_ARG_INFO() 88 89 #define arginfo_snmp3_real_walk arginfo_snmp3_walk 90 91 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_snmp3_set, 0, 10, _IS_BOOL, 0) 92 ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0) 93 ZEND_ARG_TYPE_INFO(0, security_name, IS_STRING, 0) 94 ZEND_ARG_TYPE_INFO(0, security_level, IS_STRING, 0) 95 ZEND_ARG_TYPE_INFO(0, auth_protocol, IS_STRING, 0) 96 ZEND_ARG_TYPE_INFO(0, auth_passphrase, IS_STRING, 0) 97 ZEND_ARG_TYPE_INFO(0, privacy_protocol, IS_STRING, 0) 98 ZEND_ARG_TYPE_INFO(0, privacy_passphrase, IS_STRING, 0) 99 ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING, NULL) 100 ZEND_ARG_TYPE_MASK(0, type, MAY_BE_ARRAY|MAY_BE_STRING, NULL) 101 ZEND_ARG_TYPE_MASK(0, value, MAY_BE_ARRAY|MAY_BE_STRING, NULL) 102 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeout, IS_LONG, 0, "-1") 103 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, retries, IS_LONG, 0, "-1") 104 ZEND_END_ARG_INFO() 105 106 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_snmp_set_valueretrieval, 0, 1, _IS_BOOL, 0) 107 ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) 108 ZEND_END_ARG_INFO() 109 110 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_snmp_get_valueretrieval, 0, 0, IS_LONG, 0) 111 ZEND_END_ARG_INFO() 112 113 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_snmp_read_mib, 0, 1, _IS_BOOL, 0) 114 ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) 115 ZEND_END_ARG_INFO() 116 117 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SNMP___construct, 0, 0, 3) 118 ZEND_ARG_TYPE_INFO(0, version, IS_LONG, 0) 119 ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0) 120 ZEND_ARG_TYPE_INFO(0, community, IS_STRING, 0) 121 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeout, IS_LONG, 0, "-1") 122 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, retries, IS_LONG, 0, "-1") 123 ZEND_END_ARG_INFO() 124 125 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SNMP_close, 0, 0, 0) 126 ZEND_END_ARG_INFO() 127 128 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SNMP_setSecurity, 0, 0, 1) 129 ZEND_ARG_TYPE_INFO(0, securityLevel, IS_STRING, 0) 130 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, authProtocol, IS_STRING, 0, "\"\"") 131 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, authPassphrase, IS_STRING, 0, "\"\"") 132 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, privacyProtocol, IS_STRING, 0, "\"\"") 133 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, privacyPassphrase, IS_STRING, 0, "\"\"") 134 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, contextName, IS_STRING, 0, "\"\"") 135 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, contextEngineId, IS_STRING, 0, "\"\"") 136 ZEND_END_ARG_INFO() 137 138 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SNMP_get, 0, 0, 1) 139 ZEND_ARG_TYPE_MASK(0, objectId, MAY_BE_ARRAY|MAY_BE_STRING, NULL) 140 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, preserveKeys, _IS_BOOL, 0, "false") 141 ZEND_END_ARG_INFO() 142 143 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SNMP_getnext, 0, 0, 1) 144 ZEND_ARG_TYPE_MASK(0, objectId, MAY_BE_ARRAY|MAY_BE_STRING, NULL) 145 ZEND_END_ARG_INFO() 146 147 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SNMP_walk, 0, 0, 1) 148 ZEND_ARG_TYPE_MASK(0, objectId, MAY_BE_ARRAY|MAY_BE_STRING, NULL) 149 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, suffixAsKey, _IS_BOOL, 0, "false") 150 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, maxRepetitions, IS_LONG, 0, "-1") 151 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, nonRepeaters, IS_LONG, 0, "-1") 152 ZEND_END_ARG_INFO() 153 154 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SNMP_set, 0, 0, 3) 155 ZEND_ARG_TYPE_MASK(0, objectId, MAY_BE_ARRAY|MAY_BE_STRING, NULL) 156 ZEND_ARG_TYPE_MASK(0, type, MAY_BE_ARRAY|MAY_BE_STRING, NULL) 157 ZEND_ARG_TYPE_MASK(0, value, MAY_BE_ARRAY|MAY_BE_STRING, NULL) 158 ZEND_END_ARG_INFO() 159 160 #define arginfo_class_SNMP_getErrno arginfo_class_SNMP_close 161 162 #define arginfo_class_SNMP_getError arginfo_class_SNMP_close 163 164 165 ZEND_FUNCTION(snmpget); 166 ZEND_FUNCTION(snmpgetnext); 167 ZEND_FUNCTION(snmpwalk); 168 ZEND_FUNCTION(snmprealwalk); 169 ZEND_FUNCTION(snmpset); 170 ZEND_FUNCTION(snmp_get_quick_print); 171 ZEND_FUNCTION(snmp_set_quick_print); 172 ZEND_FUNCTION(snmp_set_enum_print); 173 ZEND_FUNCTION(snmp_set_oid_output_format); 174 ZEND_FUNCTION(snmp2_get); 175 ZEND_FUNCTION(snmp2_getnext); 176 ZEND_FUNCTION(snmp2_walk); 177 ZEND_FUNCTION(snmp2_real_walk); 178 ZEND_FUNCTION(snmp2_set); 179 ZEND_FUNCTION(snmp3_get); 180 ZEND_FUNCTION(snmp3_getnext); 181 ZEND_FUNCTION(snmp3_walk); 182 ZEND_FUNCTION(snmp3_real_walk); 183 ZEND_FUNCTION(snmp3_set); 184 ZEND_FUNCTION(snmp_set_valueretrieval); 185 ZEND_FUNCTION(snmp_get_valueretrieval); 186 ZEND_FUNCTION(snmp_read_mib); 187 ZEND_METHOD(SNMP, __construct); 188 ZEND_METHOD(SNMP, close); 189 ZEND_METHOD(SNMP, setSecurity); 190 ZEND_METHOD(SNMP, get); 191 ZEND_METHOD(SNMP, getnext); 192 ZEND_METHOD(SNMP, walk); 193 ZEND_METHOD(SNMP, set); 194 ZEND_METHOD(SNMP, getErrno); 195 ZEND_METHOD(SNMP, getError); 196 197 198 static const zend_function_entry ext_functions[] = { 199 ZEND_FE(snmpget, arginfo_snmpget) 200 ZEND_FE(snmpgetnext, arginfo_snmpgetnext) 201 ZEND_FE(snmpwalk, arginfo_snmpwalk) 202 ZEND_FE(snmprealwalk, arginfo_snmprealwalk) 203 ZEND_FALIAS(snmpwalkoid, snmprealwalk, arginfo_snmpwalkoid) 204 ZEND_FE(snmpset, arginfo_snmpset) 205 ZEND_FE(snmp_get_quick_print, arginfo_snmp_get_quick_print) 206 ZEND_FE(snmp_set_quick_print, arginfo_snmp_set_quick_print) 207 ZEND_FE(snmp_set_enum_print, arginfo_snmp_set_enum_print) 208 ZEND_FE(snmp_set_oid_output_format, arginfo_snmp_set_oid_output_format) 209 ZEND_FALIAS(snmp_set_oid_numeric_print, snmp_set_oid_output_format, arginfo_snmp_set_oid_numeric_print) 210 ZEND_FE(snmp2_get, arginfo_snmp2_get) 211 ZEND_FE(snmp2_getnext, arginfo_snmp2_getnext) 212 ZEND_FE(snmp2_walk, arginfo_snmp2_walk) 213 ZEND_FE(snmp2_real_walk, arginfo_snmp2_real_walk) 214 ZEND_FE(snmp2_set, arginfo_snmp2_set) 215 ZEND_FE(snmp3_get, arginfo_snmp3_get) 216 ZEND_FE(snmp3_getnext, arginfo_snmp3_getnext) 217 ZEND_FE(snmp3_walk, arginfo_snmp3_walk) 218 ZEND_FE(snmp3_real_walk, arginfo_snmp3_real_walk) 219 ZEND_FE(snmp3_set, arginfo_snmp3_set) 220 ZEND_FE(snmp_set_valueretrieval, arginfo_snmp_set_valueretrieval) 221 ZEND_FE(snmp_get_valueretrieval, arginfo_snmp_get_valueretrieval) 222 ZEND_FE(snmp_read_mib, arginfo_snmp_read_mib) 223 ZEND_FE_END 224 }; 225 226 227 static const zend_function_entry class_SNMP_methods[] = { 228 ZEND_ME(SNMP, __construct, arginfo_class_SNMP___construct, ZEND_ACC_PUBLIC) 229 ZEND_ME(SNMP, close, arginfo_class_SNMP_close, ZEND_ACC_PUBLIC) 230 ZEND_ME(SNMP, setSecurity, arginfo_class_SNMP_setSecurity, ZEND_ACC_PUBLIC) 231 ZEND_ME(SNMP, get, arginfo_class_SNMP_get, ZEND_ACC_PUBLIC) 232 ZEND_ME(SNMP, getnext, arginfo_class_SNMP_getnext, ZEND_ACC_PUBLIC) 233 ZEND_ME(SNMP, walk, arginfo_class_SNMP_walk, ZEND_ACC_PUBLIC) 234 ZEND_ME(SNMP, set, arginfo_class_SNMP_set, ZEND_ACC_PUBLIC) 235 ZEND_ME(SNMP, getErrno, arginfo_class_SNMP_getErrno, ZEND_ACC_PUBLIC) 236 ZEND_ME(SNMP, getError, arginfo_class_SNMP_getError, ZEND_ACC_PUBLIC) 237 ZEND_FE_END 238 }; 239 240 241 static const zend_function_entry class_SNMPException_methods[] = { 242 ZEND_FE_END 243 }; 244