Lines Matching refs:apr_res_t
30 struct apr_res_t {
33 APR_RING_ENTRY(apr_res_t) link;
35 typedef struct apr_res_t apr_res_t;
40 APR_RING_HEAD(apr_resring_t, apr_res_t);
67 static apr_res_t *pop_resource(apr_reslist_t *reslist)
69 apr_res_t *res;
81 static void push_resource(apr_reslist_t *reslist, apr_res_t *resource)
83 APR_RING_INSERT_HEAD(&reslist->avail_list, resource, apr_res_t, link);
91 static apr_res_t *get_container(apr_reslist_t *reslist)
93 apr_res_t *res;
95 if (!APR_RING_EMPTY(&reslist->free_list, apr_res_t, link)) {
107 static void free_container(apr_reslist_t *reslist, apr_res_t *container)
109 APR_RING_INSERT_TAIL(&reslist->free_list, container, apr_res_t, link);
116 static apr_status_t create_resource(apr_reslist_t *reslist, apr_res_t **ret_res)
119 apr_res_t *res;
133 static apr_status_t destroy_resource(apr_reslist_t *reslist, apr_res_t *res)
142 apr_res_t *res;
180 apr_res_t *res;
290 APR_RING_INIT(&rl->avail_list, apr_res_t, link);
291 APR_RING_INIT(&rl->free_list, apr_res_t, link);
330 apr_res_t *res;
411 apr_res_t *res;