summaryrefslogtreecommitdiffhomepage
path: root/src/rust/unit-wasm-sys/macros.rs
blob: 080d702e6138efbfc1dc6eb8290de70942b0999f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: Apache-2.0 */

/*
 * Copyright (C) Andrew Clayton
 * Copyright (C) F5, Inc.
 */

pub const LUW_VERSION_MAJOR: i32 = 0;
pub const LUW_VERSION_MINOR: i32 = 2;
pub const LUW_VERSION_PATCH: i32 = 0;

pub const LUW_VERSION_NUMBER: i32 =
    (LUW_VERSION_MAJOR << 24) |
    (LUW_VERSION_MINOR << 16) |
    (LUW_VERSION_PATCH << 8);

pub const LUW_SRB_NONE:      u32 = luw_srb_flags_t::LUW_SRB_NONE as u32;
pub const LUW_SRB_APPEND:    u32 = luw_srb_flags_t::LUW_SRB_APPEND as u32;
pub const LUW_SRB_ALLOC:     u32 = luw_srb_flags_t::LUW_SRB_ALLOC as u32;
pub const LUW_SRB_FULL_SIZE: u32 = luw_srb_flags_t::LUW_SRB_FLAGS_ALL as u32;