|
26 | 26 | * provider's business; the core only offers the awaiting_info hook so |
27 | 27 | * that the wait state can be inspected for diagnostics. |
28 | 28 | */ |
29 | | -#define ZEND_ASYNC_API "AsyncCore ABI v0.1.0" |
30 | | -#define ZEND_ASYNC_API_VERSION_MAJOR 0 |
31 | | -#define ZEND_ASYNC_API_VERSION_MINOR 1 |
32 | | -#define ZEND_ASYNC_API_VERSION_PATCH 0 |
33 | | - |
34 | | -#define ZEND_ASYNC_API_VERSION_NUMBER \ |
35 | | - ((ZEND_ASYNC_API_VERSION_MAJOR << 16) | (ZEND_ASYNC_API_VERSION_MINOR << 8) \ |
36 | | - | (ZEND_ASYNC_API_VERSION_PATCH)) |
37 | 29 |
|
38 | 30 | typedef struct _zend_coroutine_s zend_coroutine_t; |
39 | 31 | typedef struct _zend_async_context_s zend_async_context_t; |
@@ -357,12 +349,14 @@ typedef bool (*zend_async_gc_destructors_t)(zend_async_gc_run_dtors_fn run); |
357 | 349 | typedef zend_coroutine_t *(*zend_async_intercept_fiber_t)(zend_fiber *fiber); |
358 | 350 |
|
359 | 351 | /** |
360 | | - * Versioned scheduler API bundle. A provider fills the struct and calls |
| 352 | + * Scheduler API bundle. A provider fills the struct and calls |
361 | 353 | * zend_async_scheduler_register(). New slots are appended at the end only; |
362 | 354 | * `size` lets the core detect how much of the struct the provider knows. |
| 355 | + * ABI compatibility rides on the standard PHP module API (ZEND_MODULE_API_NO), |
| 356 | + * enforced when the provider extension is loaded — there is no separate |
| 357 | + * Async API version. |
363 | 358 | */ |
364 | 359 | typedef struct _zend_async_scheduler_api_s { |
365 | | - uint32_t version; /* ZEND_ASYNC_API_VERSION_NUMBER the provider was built against */ |
366 | 360 | size_t size; /* sizeof(zend_async_scheduler_api_t) at provider build time */ |
367 | 361 |
|
368 | 362 | zend_async_new_coroutine_t new_coroutine; |
@@ -427,8 +421,6 @@ ZEND_API void zend_async_scheduler_unregister(void); |
427 | 421 | ZEND_API bool zend_async_is_enabled(void); |
428 | 422 | /* The module name of the registered scheduler, or NULL when none. */ |
429 | 423 | ZEND_API const char *zend_async_get_scheduler_module(void); |
430 | | -ZEND_API const char *zend_async_get_api_version(void); |
431 | | -ZEND_API int zend_async_get_api_version_number(void); |
432 | 424 |
|
433 | 425 | END_EXTERN_C() |
434 | 426 |
|
|
0 commit comments