---
source: varnish-macros/src/tests.rs
---
mod vcl_args {
#[allow(non_snake_case, unused_imports, unused_qualifications, unused_variables)]
#[allow(clippy::needless_question_mark, clippy::new_without_default)]
#[automatically_derived]
mod varnish_generated {
use std::ffi::{c_char, c_int, c_uint, c_void, CStr};
use std::ptr::null;
use varnish::ffi::{
VCL_BACKEND, VCL_BLOB, VCL_BOOL, VCL_DURATION, VCL_INT, VCL_IP, VCL_PROBE,
VCL_REAL, VCL_STRING, VCL_SUB, VCL_TIME, VCL_VOID, VMOD_ABI_Version,
VclEvent, vmod_data, vmod_priv, vrt_ctx, VMOD_PRIV_METHODS_MAGIC,
vmod_priv_methods,
};
use varnish::vcl::{Ctx, IntoVCL, PerVclState, Workspace};
use super::*;
unsafe extern "C" fn vmod_c_arg_vcl_backend(
__ctx: *mut vrt_ctx,
_backend: VCL_BACKEND,
) {
super::arg_vcl_backend(_backend.into())
}
#[repr(C)]
pub struct VmodExports {
vmod_c_arg_vcl_backend: Option<
unsafe extern "C" fn(__ctx: *mut vrt_ctx, _backend: VCL_BACKEND),
>,
}
pub static VMOD_EXPORTS: VmodExports = VmodExports {
vmod_c_arg_vcl_backend: Some(vmod_c_arg_vcl_backend),
};
#[allow(non_upper_case_globals)]
#[no_mangle]
pub static Vmod_vcl_args_Data: vmod_data = vmod_data {
vrt_major: 0,
vrt_minor: 0,
file_id: c"cf940e5ee9fadce80fad56b4600fd4f7d9d90a0dc2c91cd3d8b99bcbef7271d0"
.as_ptr(),
name: c"vcl_args".as_ptr(),
func_name: c"Vmod_vmod_vcl_args_Func".as_ptr(),
func_len: ::std::mem::size_of::<VmodExports>() as c_int,
func: &VMOD_EXPORTS as *const _ as *const c_void,
abi: VMOD_ABI_Version.as_ptr(),
json: JSON.as_ptr(),
proto: null(),
vcs: c"".as_ptr(),
version: c"".as_ptr(),
};
const JSON: &CStr = c"(moved to @json.snap files)";
}
use varnish::ffi::VCL_BACKEND;
pub fn arg_vcl_backend(_backend: VCL_BACKEND) {}
}