diff --git a/conf_arginfo.h b/conf_arginfo.h index 7befd4de..983e0e64 100644 --- a/conf_arginfo.h +++ b/conf_arginfo.h @@ -32,7 +32,9 @@ ZEND_END_ARG_INFO() #define arginfo_class_RdKafka_Conf_setLogCb arginfo_class_RdKafka_Conf_setErrorCb +#ifdef HAS_RD_KAFKA_OAUTHBEARER_TOKEN_REFRESH_CB #define arginfo_class_RdKafka_Conf_setOauthbearerTokenRefreshCb arginfo_class_RdKafka_Conf_setErrorCb +#endif #define arginfo_class_RdKafka_TopicConf___construct arginfo_class_RdKafka_Conf___construct @@ -56,7 +58,11 @@ ZEND_METHOD(RdKafka_Conf, setRebalanceCb); ZEND_METHOD(RdKafka_Conf, setConsumeCb); ZEND_METHOD(RdKafka_Conf, setOffsetCommitCb); ZEND_METHOD(RdKafka_Conf, setLogCb); + +#ifdef HAS_RD_KAFKA_OAUTHBEARER_TOKEN_REFRESH_CB ZEND_METHOD(RdKafka_Conf, setOauthbearerTokenRefreshCb); +#endif + ZEND_METHOD(RdKafka_TopicConf, __construct); ZEND_METHOD(RdKafka_TopicConf, setPartitioner); @@ -73,7 +79,9 @@ static const zend_function_entry class_RdKafka_Conf_methods[] = { ZEND_ME(RdKafka_Conf, setConsumeCb, arginfo_class_RdKafka_Conf_setConsumeCb, ZEND_ACC_PUBLIC) ZEND_ME(RdKafka_Conf, setOffsetCommitCb, arginfo_class_RdKafka_Conf_setOffsetCommitCb, ZEND_ACC_PUBLIC) ZEND_ME(RdKafka_Conf, setLogCb, arginfo_class_RdKafka_Conf_setLogCb, ZEND_ACC_PUBLIC) + #ifdef HAS_RD_KAFKA_OAUTHBEARER_TOKEN_REFRESH_CB ZEND_ME(RdKafka_Conf, setOauthbearerTokenRefreshCb, arginfo_class_RdKafka_Conf_setOauthbearerTokenRefreshCb, ZEND_ACC_PUBLIC) + #endif ZEND_FE_END }; diff --git a/conf_legacy_arginfo.h b/conf_legacy_arginfo.h index b86438b3..6120e1cf 100644 --- a/conf_legacy_arginfo.h +++ b/conf_legacy_arginfo.h @@ -32,7 +32,9 @@ ZEND_END_ARG_INFO() #define arginfo_class_RdKafka_Conf_setLogCb arginfo_class_RdKafka_Conf_setErrorCb +#ifdef HAS_RD_KAFKA_OAUTHBEARER_TOKEN_REFRESH_CB #define arginfo_class_RdKafka_Conf_setOauthbearerTokenRefreshCb arginfo_class_RdKafka_Conf_setErrorCb +#endif #define arginfo_class_RdKafka_TopicConf___construct arginfo_class_RdKafka_Conf___construct @@ -56,7 +58,9 @@ ZEND_METHOD(RdKafka_Conf, setRebalanceCb); ZEND_METHOD(RdKafka_Conf, setConsumeCb); ZEND_METHOD(RdKafka_Conf, setOffsetCommitCb); ZEND_METHOD(RdKafka_Conf, setLogCb); +#ifdef HAS_RD_KAFKA_OAUTHBEARER_TOKEN_REFRESH_CB ZEND_METHOD(RdKafka_Conf, setOauthbearerTokenRefreshCb); +#endif ZEND_METHOD(RdKafka_TopicConf, __construct); ZEND_METHOD(RdKafka_TopicConf, setPartitioner); @@ -73,7 +77,9 @@ static const zend_function_entry class_RdKafka_Conf_methods[] = { ZEND_ME(RdKafka_Conf, setConsumeCb, arginfo_class_RdKafka_Conf_setConsumeCb, ZEND_ACC_PUBLIC) ZEND_ME(RdKafka_Conf, setOffsetCommitCb, arginfo_class_RdKafka_Conf_setOffsetCommitCb, ZEND_ACC_PUBLIC) ZEND_ME(RdKafka_Conf, setLogCb, arginfo_class_RdKafka_Conf_setLogCb, ZEND_ACC_PUBLIC) + #ifdef HAS_RD_KAFKA_OAUTHBEARER_TOKEN_REFRESH_CB ZEND_ME(RdKafka_Conf, setOauthbearerTokenRefreshCb, arginfo_class_RdKafka_Conf_setOauthbearerTokenRefreshCb, ZEND_ACC_PUBLIC) + #endif ZEND_FE_END };