|
67 | 67 | /* Our stuffz */ |
68 | 68 | #include "php_phongo.h" |
69 | 69 | #include "php_bson.h" |
70 | | -#include "src/MongoDB/Monitoring.h" |
| 70 | +#include "src/MongoDB/Monitoring/functions.h" |
71 | 71 |
|
72 | 72 | #undef MONGOC_LOG_DOMAIN |
73 | 73 | #define MONGOC_LOG_DOMAIN "PHONGO" |
@@ -2409,23 +2409,18 @@ ZEND_BEGIN_ARG_INFO_EX(ai_bson_fromJSON, 0, 0, 1) |
2409 | 2409 | ZEND_ARG_INFO(0, json) |
2410 | 2410 | ZEND_END_ARG_INFO(); |
2411 | 2411 |
|
2412 | | -ZEND_BEGIN_ARG_INFO_EX(ai_Monitoring_addSubscriber, 0, 0, 1) |
2413 | | - ZEND_ARG_INFO(0, subscriber) |
2414 | | -ZEND_END_ARG_INFO() |
2415 | | - |
2416 | | -ZEND_BEGIN_ARG_INFO_EX(ai_Monitoring_removeSubscriber, 0, 0, 1) |
2417 | | - ZEND_ARG_INFO(0, subscriber) |
2418 | | -ZEND_END_ARG_INFO() |
2419 | | - |
| 2412 | +ZEND_BEGIN_ARG_INFO_EX(ai_mongodb_driver_monitoring_subscriber, 0, 0, 1) |
| 2413 | + ZEND_ARG_OBJ_INFO(0, subscriber, MongoDB\\Driver\\Monitoring\\Subscriber, 0) |
| 2414 | +ZEND_END_ARG_INFO(); |
2420 | 2415 |
|
2421 | 2416 | static const zend_function_entry mongodb_functions[] = { |
2422 | 2417 | ZEND_NS_NAMED_FE("MongoDB\\BSON", fromPHP, PHP_FN(MongoDB_BSON_fromPHP), ai_bson_fromPHP) |
2423 | 2418 | ZEND_NS_NAMED_FE("MongoDB\\BSON", toPHP, PHP_FN(MongoDB_BSON_toPHP), ai_bson_toPHP) |
2424 | 2419 | ZEND_NS_NAMED_FE("MongoDB\\BSON", toJSON, PHP_FN(MongoDB_BSON_toJSON), ai_bson_toJSON) |
2425 | 2420 | ZEND_NS_NAMED_FE("MongoDB\\BSON", toExtendedJSON, PHP_FN(MongoDB_BSON_toExtendedJSON), ai_bson_toExtendedJSON) |
2426 | 2421 | ZEND_NS_NAMED_FE("MongoDB\\BSON", fromJSON, PHP_FN(MongoDB_BSON_fromJSON), ai_bson_fromJSON) |
2427 | | - ZEND_NS_NAMED_FE("MongoDB\\Monitoring", addSubscriber, PHP_FN(MongoDB_Monitoring_addSubscriber), ai_Monitoring_addSubscriber) |
2428 | | - ZEND_NS_NAMED_FE("MongoDB\\Monitoring", removeSubscriber, PHP_FN(MongoDB_Monitoring_removeSubscriber), ai_Monitoring_removeSubscriber) |
| 2422 | + ZEND_NS_NAMED_FE("MongoDB\\Driver\\Monitoring", addSubscriber, PHP_FN(MongoDB_Driver_Monitoring_addSubscriber), ai_mongodb_driver_monitoring_subscriber) |
| 2423 | + ZEND_NS_NAMED_FE("MongoDB\\Driver\\Monitoring", removeSubscriber, PHP_FN(MongoDB_Driver_Monitoring_removeSubscriber), ai_mongodb_driver_monitoring_subscriber) |
2429 | 2424 | PHP_FE_END |
2430 | 2425 | }; |
2431 | 2426 | /* }}} */ |
|
0 commit comments