#pragma once
/*
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2, or (at your option)
 *  any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software Foundation,
 *  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */

/**
 * $Id: e7eeda83eb9dc5fa2c8a50d7e7e937762b1d5c8b $
 *
 * @file unlang/subrequest_child_priv.h
 *
 * @copyright 2021 Arran Cudbard-Bell (a.cudbardb@freeradius.org)
 */
#include <freeradius-devel/server/request.h>
#include "subrequest_priv.h"

#ifdef __cplusplus
extern "C" {
#endif

unlang_action_t unlang_subrequest_child_run(rlm_rcode_t *p_result, request_t *request, unlang_stack_frame_t *frame);

int	unlang_subrequest_child_push_resume(request_t *child, unlang_frame_state_subrequest_t *state);

int	unlang_subrequest_child_op_init(void);

void	unlang_subrequest_child_op_free(void);

#ifdef __cplusplus
}
#endif
