Rename hk=>smo
This commit is contained in:
@@ -11,11 +11,11 @@
|
||||
#include <senseApis/senseApiManager.h>
|
||||
#include "componentThread.h"
|
||||
|
||||
namespace hk {
|
||||
namespace smo {
|
||||
|
||||
static int initializeHarikoff(int argc, char **argv, char **envp);
|
||||
static int initializeSalmanoff(int argc, char **argv, char **envp);
|
||||
|
||||
} // namespace hk
|
||||
} // namespace smo
|
||||
|
||||
int main(int argc, char **argv, char **envp)
|
||||
{
|
||||
@@ -25,12 +25,12 @@ int main(int argc, char **argv, char **envp)
|
||||
boost::asio::io_service::work work(mrntLoop);
|
||||
|
||||
// Validate thread IDs
|
||||
hk::ComponentThread::validateThreadIds();
|
||||
smo::ComponentThread::validateThreadIds();
|
||||
|
||||
// Post initializeHarikoff to mrntLoop
|
||||
// Post initializeSalmanoff to mrntLoop
|
||||
mrntLoop.post([&]()
|
||||
{
|
||||
int ret = hk::initializeHarikoff(argc, argv, envp);
|
||||
int ret = smo::initializeSalmanoff(argc, argv, envp);
|
||||
if (ret != 0)
|
||||
{
|
||||
std::cerr << "Initialization failed with code: "
|
||||
@@ -57,15 +57,15 @@ int main(int argc, char **argv, char **envp)
|
||||
return 0;
|
||||
}
|
||||
|
||||
namespace hk {
|
||||
namespace smo {
|
||||
|
||||
static int initializeHarikoff(int argc, char **argv, char **envp)
|
||||
static int initializeSalmanoff(int argc, char **argv, char **envp)
|
||||
{
|
||||
std::cout << __func__ << ": Entering" << std::endl;
|
||||
|
||||
using namespace hk;
|
||||
using namespace smo;
|
||||
OptionParser &options = OptionParser::getOptions();
|
||||
hk::Mind mind;
|
||||
smo::Mind mind;
|
||||
|
||||
std::cout << PACKAGE_NAME << " " << PACKAGE_VERSION << std::endl;
|
||||
|
||||
@@ -100,12 +100,12 @@ std::cerr << "Done attachAllSenseDevicesFromSpecs" << std::endl;
|
||||
|
||||
/* Start the threads */
|
||||
for (const auto& [id, componentThread]
|
||||
: hk::ComponentThread::componentThreads) {
|
||||
hk::ComponentThread::signalThread(id);
|
||||
: smo::ComponentThread::componentThreads) {
|
||||
smo::ComponentThread::signalThread(id);
|
||||
}
|
||||
|
||||
std::cout << __func__ << ": Exiting" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
} // namespace hk
|
||||
} // namespace smo
|
||||
|
||||
Reference in New Issue
Block a user