Line data Source code
1 : /* Automatically generated nanopb header */
2 : /* Generated by nanopb-0.4.9.1 */
3 :
4 : #ifndef PB_ORG_SOLANA_SEALEVEL_V1_PACK_PB_H_INCLUDED
5 : #define PB_ORG_SOLANA_SEALEVEL_V1_PACK_PB_H_INCLUDED
6 :
7 : #include "../../../nanopb/pb_firedancer.h"
8 : #include "metadata.pb.h"
9 : #include "context.pb.h"
10 :
11 : #if PB_PROTO_HEADER_VERSION != 40
12 : #error Regenerate this file with the current version of nanopb generator.
13 : #endif
14 :
15 : /* Struct definitions */
16 : typedef struct fd_exec_test_pack_compute_budget_context {
17 : pb_size_t instr_datas_count;
18 : pb_bytes_array_t **instr_datas;
19 : bool has_features;
20 : fd_exec_test_feature_set_t features;
21 : } fd_exec_test_pack_compute_budget_context_t;
22 :
23 : typedef struct fd_exec_test_pack_compute_budget_effects {
24 : uint64_t compute_unit_limit;
25 : uint64_t rewards;
26 : uint32_t heap_sz;
27 : uint32_t loaded_acct_data_sz;
28 : /* To prevent empty effects when encoding a "skipped" effects */
29 : uint32_t is_empty;
30 : } fd_exec_test_pack_compute_budget_effects_t;
31 :
32 : typedef struct fd_exec_test_pack_compute_budget_fixture {
33 : bool has_metadata;
34 : fd_exec_test_fixture_metadata_t metadata;
35 : bool has_input;
36 : fd_exec_test_pack_compute_budget_context_t input;
37 : bool has_output;
38 : fd_exec_test_pack_compute_budget_effects_t output;
39 : } fd_exec_test_pack_compute_budget_fixture_t;
40 :
41 :
42 : #ifdef __cplusplus
43 : extern "C" {
44 : #endif
45 :
46 : /* Initializer values for message structs */
47 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_INIT_DEFAULT {0, NULL, false, FD_EXEC_TEST_FEATURE_SET_INIT_DEFAULT}
48 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_INIT_DEFAULT {0, 0, 0, 0, 0}
49 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_FIXTURE_INIT_DEFAULT {false, FD_EXEC_TEST_FIXTURE_METADATA_INIT_DEFAULT, false, FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_INIT_DEFAULT, false, FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_INIT_DEFAULT}
50 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_INIT_ZERO {0, NULL, false, FD_EXEC_TEST_FEATURE_SET_INIT_ZERO}
51 0 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_INIT_ZERO {0, 0, 0, 0, 0}
52 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_FIXTURE_INIT_ZERO {false, FD_EXEC_TEST_FIXTURE_METADATA_INIT_ZERO, false, FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_INIT_ZERO, false, FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_INIT_ZERO}
53 :
54 : /* Field tags (for use in manual encoding/decoding) */
55 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_INSTR_DATAS_TAG 1
56 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_FEATURES_TAG 2
57 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_COMPUTE_UNIT_LIMIT_TAG 1
58 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_REWARDS_TAG 2
59 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_HEAP_SZ_TAG 3
60 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_LOADED_ACCT_DATA_SZ_TAG 4
61 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_IS_EMPTY_TAG 5
62 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_FIXTURE_METADATA_TAG 1
63 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_FIXTURE_INPUT_TAG 2
64 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_FIXTURE_OUTPUT_TAG 3
65 :
66 : /* Struct field encoding specification for nanopb */
67 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_FIELDLIST(X, a) \
68 : X(a, POINTER, REPEATED, BYTES, instr_datas, 1) \
69 : X(a, STATIC, OPTIONAL, MESSAGE, features, 2)
70 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_CALLBACK NULL
71 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_DEFAULT NULL
72 : #define fd_exec_test_pack_compute_budget_context_t_features_MSGTYPE fd_exec_test_feature_set_t
73 :
74 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_FIELDLIST(X, a) \
75 : X(a, STATIC, SINGULAR, UINT64, compute_unit_limit, 1) \
76 : X(a, STATIC, SINGULAR, UINT64, rewards, 2) \
77 : X(a, STATIC, SINGULAR, UINT32, heap_sz, 3) \
78 : X(a, STATIC, SINGULAR, UINT32, loaded_acct_data_sz, 4) \
79 : X(a, STATIC, SINGULAR, UINT32, is_empty, 5)
80 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_CALLBACK NULL
81 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_DEFAULT NULL
82 :
83 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_FIXTURE_FIELDLIST(X, a) \
84 : X(a, STATIC, OPTIONAL, MESSAGE, metadata, 1) \
85 : X(a, STATIC, OPTIONAL, MESSAGE, input, 2) \
86 : X(a, STATIC, OPTIONAL, MESSAGE, output, 3)
87 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_FIXTURE_CALLBACK NULL
88 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_FIXTURE_DEFAULT NULL
89 : #define fd_exec_test_pack_compute_budget_fixture_t_metadata_MSGTYPE fd_exec_test_fixture_metadata_t
90 : #define fd_exec_test_pack_compute_budget_fixture_t_input_MSGTYPE fd_exec_test_pack_compute_budget_context_t
91 : #define fd_exec_test_pack_compute_budget_fixture_t_output_MSGTYPE fd_exec_test_pack_compute_budget_effects_t
92 :
93 : extern const pb_msgdesc_t fd_exec_test_pack_compute_budget_context_t_msg;
94 : extern const pb_msgdesc_t fd_exec_test_pack_compute_budget_effects_t_msg;
95 : extern const pb_msgdesc_t fd_exec_test_pack_compute_budget_fixture_t_msg;
96 :
97 : /* Defines for backwards compatibility with code written before nanopb-0.4.0 */
98 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_FIELDS &fd_exec_test_pack_compute_budget_context_t_msg
99 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_FIELDS &fd_exec_test_pack_compute_budget_effects_t_msg
100 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_FIXTURE_FIELDS &fd_exec_test_pack_compute_budget_fixture_t_msg
101 :
102 : /* Maximum encoded size of messages (where known) */
103 : /* fd_exec_test_PackComputeBudgetContext_size depends on runtime parameters */
104 : /* fd_exec_test_PackComputeBudgetFixture_size depends on runtime parameters */
105 : #define FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_SIZE 40
106 : #define ORG_SOLANA_SEALEVEL_V1_PACK_PB_H_MAX_SIZE FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_SIZE
107 :
108 : /* Mapping from canonical names (mangle_names or overridden package name) */
109 : #define org_solana_sealevel_v1_PackComputeBudgetContext fd_exec_test_PackComputeBudgetContext
110 : #define org_solana_sealevel_v1_PackComputeBudgetEffects fd_exec_test_PackComputeBudgetEffects
111 : #define org_solana_sealevel_v1_PackComputeBudgetFixture fd_exec_test_PackComputeBudgetFixture
112 : #define ORG_SOLANA_SEALEVEL_V1_PACK_COMPUTE_BUDGET_CONTEXT_INIT_DEFAULT FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_INIT_DEFAULT
113 : #define ORG_SOLANA_SEALEVEL_V1_PACK_COMPUTE_BUDGET_EFFECTS_INIT_DEFAULT FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_INIT_DEFAULT
114 : #define ORG_SOLANA_SEALEVEL_V1_PACK_COMPUTE_BUDGET_FIXTURE_INIT_DEFAULT FD_EXEC_TEST_PACK_COMPUTE_BUDGET_FIXTURE_INIT_DEFAULT
115 : #define ORG_SOLANA_SEALEVEL_V1_PACK_COMPUTE_BUDGET_CONTEXT_INIT_ZERO FD_EXEC_TEST_PACK_COMPUTE_BUDGET_CONTEXT_INIT_ZERO
116 : #define ORG_SOLANA_SEALEVEL_V1_PACK_COMPUTE_BUDGET_EFFECTS_INIT_ZERO FD_EXEC_TEST_PACK_COMPUTE_BUDGET_EFFECTS_INIT_ZERO
117 : #define ORG_SOLANA_SEALEVEL_V1_PACK_COMPUTE_BUDGET_FIXTURE_INIT_ZERO FD_EXEC_TEST_PACK_COMPUTE_BUDGET_FIXTURE_INIT_ZERO
118 :
119 : #ifdef __cplusplus
120 : } /* extern "C" */
121 : #endif
122 :
123 : #endif
|