From: Nick Porter Date: Thu, 2 Feb 2023 10:03:47 +0000 (+0000) Subject: Add slab to rlm_rest_thread_t X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b7a3e312da2b5dc694c35e185ec102461f08fdd;p=thirdparty%2Ffreeradius-server.git Add slab to rlm_rest_thread_t --- diff --git a/src/modules/rlm_rest/rest.h b/src/modules/rlm_rest/rest.h index 2e1c5ee6201..774661bd629 100644 --- a/src/modules/rlm_rest/rest.h +++ b/src/modules/rlm_rest/rest.h @@ -29,6 +29,7 @@ RCSIDH(rest_h, "$Id$") #include #include #include +#include /* * The common JSON library (also tells us if we have json-c) @@ -171,12 +172,16 @@ typedef struct { #endif } rlm_rest_t; +FR_SLAB_TYPES(rest, fr_curl_io_request_t) +FR_SLAB_FUNCS(rest, fr_curl_io_request_t) + /** Thread specific rlm_rest instance data * */ typedef struct { rlm_rest_t const *inst; //!< Instance of rlm_rest. fr_pool_t *pool; //!< Thread specific connection pool. + fr_rest_slab_list_t *slab; //!< Slab list for connection handles. fr_curl_handle_t *mhandle; //!< Thread specific multi handle. Serves as the dispatch //!< and coralling structure for REST requests. } rlm_rest_thread_t;