]> git.sesse.net Git - ccbs/blobdiff - bigscreen/fetch_list_of_active_groups.h
Make the bigscreen application read in the number of players per machine, but don...
[ccbs] / bigscreen / fetch_list_of_active_groups.h
index 113160d85f5b69f21357e132a11946e8dc9b0f05..68f0500bd6ba22bfbc7d9bac70671df1b8c9cda1 100644 (file)
@@ -4,17 +4,17 @@
 #include <pqxx/transactor>
 #include <vector>
 
 #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:
 };
 
 /* 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:
 
 public:
-       FetchListOfActiveGroups(std::vector<Group> *active);
+       FetchListOfActiveGroups(std::vector<SkeletonGroup> *active);
        void operator() (pqxx::transaction<> &t);
 };
 
        void operator() (pqxx::transaction<> &t);
 };