bottle_steam type introduced

This commit is contained in:
2025-02-03 17:50:33 -08:00
parent d11b690708
commit de049cea1a
5 changed files with 19 additions and 27 deletions

View File

@@ -18,7 +18,8 @@ namespace cellar {
bottle_error,
bottle_anonymous,
bottle_labelled,
bottle_symlink
bottle_symlink,
bottle_steam
};
/**

View File

@@ -0,0 +1,13 @@
#pragma once
#include <map>
#include <string>
#include <vector>
#include "commands.hpp"
namespace cellar {
namespace steam {
extern std::vector<std::string> find_steam_libraries();
}
}

View File

@@ -1,26 +0,0 @@
#pragma once
#include <map>
#include <string>
#include <vector>
#include "commands.hpp"
namespace cellar {
namespace steam {
extern std::vector<std::string> find_steam_libraries();
extern void test_command(int argc, std::vector<std::string> argv);
/*[[[cog
import cog
with open("src/steam/commands.txt") as commandsfile:
for line in commandsfile:
item = line.strip().split(" ")
cog.outl("extern void {0} (int, vector<string>);".format(item[1]))
]]]*/
//[[[end]]]
}
namespace commands {
extern std::map<std::string,cellar::commands::CommandFunction> steam_commands();
}
}