#ifndef __CONFIG_HPP__ #define __CONFIG_HPP__ #include #include "enclave_api.h" // startweight is the running total of all the weight entries of nodes // lower numbered than this one. E.g., if the weights of nodes 0, 1, // ..., etc. are [1, 2, 4, 1, 2, ...], the startweight values will be // [0, 1, 3, 7, 8, ...]. struct NodeWeight { uint16_t startweight; uint8_t weight; }; struct Config { nodenum_t num_nodes; nodenum_t my_node_num; uint16_t msgsize; std::vector weights; }; extern Config g_teems_config; #endif