@@ -281,17 +281,34 @@ FOR_EACH_BLOCKING_FUNCTION( DEFINE_GVL_STUB_DECL );
281281 * Definitions of callback functions and their parameters
282282 */
283283
284+ #define FOR_EACH_PARAM_OF_auth_data_hook_proxy (param ) \
285+ param(PGauthData, type) \
286+ param(PGconn *, conn)
287+
284288#define FOR_EACH_PARAM_OF_notice_processor_proxy (param ) \
285289 param(void *, arg)
286290
287291#define FOR_EACH_PARAM_OF_notice_receiver_proxy (param ) \
288292 param(void *, arg)
289293
294+ #ifdef HAVE_PQSETAUTHDATAHOOK
295+
290296/* function( name, void_or_nonvoid, returntype, lastparamtype, lastparamname ) */
291297#define FOR_EACH_CALLBACK_FUNCTION (function ) \
298+ function(auth_data_hook_proxy, GVL_TYPE_NONVOID, int, void *, data) \
292299 function(notice_processor_proxy, GVL_TYPE_VOID, void, const char *, message) \
293300 function(notice_receiver_proxy, GVL_TYPE_VOID, void, const PGresult *, result) \
294301
302+ #else
303+
304+ /* function( name, void_or_nonvoid, returntype, lastparamtype, lastparamname ) */
305+ #define FOR_EACH_CALLBACK_FUNCTION (function ) \
306+ function(notice_processor_proxy, GVL_TYPE_VOID, void, const char *, message) \
307+ function(notice_receiver_proxy, GVL_TYPE_VOID, void, const PGresult *, result) \
308+
309+ #endif
310+
295311FOR_EACH_CALLBACK_FUNCTION ( DEFINE_GVL_STUB_DECL );
296312
313+
297314#endif /* end __gvl_wrappers_h */
0 commit comments