summaryrefslogtreecommitdiffhomepage
path: root/src/rust/unit-wasm-sys/macros.rs
blob: 5914ad93627e8a9f7bf7f806a4dbad8d2281bc00 (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;
pub const LUW_SRB_APPEND:    u32 = luw_srb_flags_t_LUW_SRB_APPEND;
pub const LUW_SRB_ALLOC:     u32 = luw_srb_flags_t_LUW_SRB_ALLOC;
pub const LUW_SRB_FULL_SIZE: u32 = luw_srb_flags_t_LUW_SRB_FLAGS_ALL;