]> git.proxmox.com Git - ceph.git/blob - ceph/src/cls/lua/cls_lua_ops.h
update sources to v12.1.0
[ceph.git] / ceph / src / cls / lua / cls_lua_ops.h
1 #ifndef CEPH_CLS_LUA_OPS_H
2 #define CEPH_CLS_LUA_OPS_H
3
4 struct cls_lua_eval_op {
5 std::string script;
6 std::string handler;
7 bufferlist input;
8
9 void encode(bufferlist &bl) const {
10 ENCODE_START(1, 1, bl);
11 ::encode(script, bl);
12 ::encode(handler, bl);
13 ::encode(input, bl);
14 ENCODE_FINISH(bl);
15 }
16
17 void decode(bufferlist::iterator &bl) {
18 DECODE_START(1, bl);
19 ::decode(script, bl);
20 ::decode(handler, bl);
21 ::decode(input, bl);
22 DECODE_FINISH(bl);
23 }
24 };
25 WRITE_CLASS_ENCODER(cls_lua_eval_op)
26
27 #endif