Make the bigscreen application read in the number of players per machine, but don...
[ccbs] / bigscreen / fetch_list_of_active_groups.h
index 113160d..68f0500 100644 (file)
@@ -4,17 +4,17 @@
 #include <pqxx/transactor>
 #include <vector>
 
-struct Group {
-       unsigned tournament, round, parallel;
+struct SkeletonGroup {
+       unsigned tournament, round, parallel, num_machines, players_per_machine;
 };
 
 /* A transactor that fetches the current list of active groups. */
 class FetchListOfActiveGroups : public pqxx::transactor<> {
 private:
-       std::vector<Group> *active;
+       std::vector<SkeletonGroup> *active;
 
 public:
-       FetchListOfActiveGroups(std::vector<Group> *active);
+       FetchListOfActiveGroups(std::vector<SkeletonGroup> *active);
        void operator() (pqxx::transaction<> &t);
 };