plebble
protocol.h
Go to the documentation of this file.
1 /*
2 -------------------------------------------------------------------------------
3  PLEBBLE
4 -------------------------------------------------------------------------------
5  Copyright (C) 2019-2020 KATLAS Technology. (http://katlastechnology.com)
6  Copyright (C) 2017-2020 Marcos Mayorga. (mm@mm-studios.com)
7 
8  This file is part of our Plebble(R) Platform.
9 
10  The code below cannot be copied, used for any purpose other than the one
11  agreed and/or distributed without the express permission of
12  KATLAS Technology.
13 -------------------------------------------------------------------------------
14 
15 
16 */
17 #ifndef USGOV_349f061ef490458208c80bb6358d5c6be0b925001f7b531f3860b4e66eb4420d
18 #define USGOV_349f061ef490458208c80bb6358d5c6be0b925001f7b531f3860b4e66eb4420d
19 
20 #include <inttypes.h>
21 
22 namespace us { namespace gov {
23 namespace protocol {
24  static constexpr uint16_t evidence_suffix{1};
25  static inline bool is_evidence(const uint16_t& i) { return (i&3)==evidence_suffix; }
26 
27  #include <us/api/apitool_generated__c++__protocol_gov_relay>
28 /*
29  static constexpr uint16_t gov_relay_base{400};
30  static constexpr uint16_t gov_relay_harvest{((gov_relay_base+1)<<2)+protocol_suffix};
31  static constexpr uint16_t gov_relay_harvest_rollback{((gov_relay_base+2)<<2)+protocol_suffix};
32 
33 */
34 
35 
36 
37 }
38 }}
39 
40 #endif
us
Definition: daemon.h:22
us::gov.protocol::evidence_suffix
static constexpr uint16_t evidence_suffix
Definition: protocol.h:24
us::gov.protocol.is_evidence
static boolean is_evidence(short i)
Definition: protocol.java:27