main.cpp (94b0d134c0b8f0230e7d74c8ac34ebeea5ba91e1) | main.cpp (36e3c539df647d579f00f1cba6b482692a4ed634) |
---|---|
1#include "main.hpp" 2 3#include "comm_module.hpp" 4#include "command/guid.hpp" 5#include "command_table.hpp" 6#include "message.hpp" 7#include "message_handler.hpp" 8#include "sd_event_loop.hpp" --- 85 unchanged lines hidden (view full) --- 94 ipmi::ipmiChannelInit(); 95 if (channel.size()) 96 { 97 setInterfaceIndex(channel); 98 } 99 100 session::Manager::get().managerInit(channel); 101 // Register callback to update cache for a GUID change and cache the GUID | 1#include "main.hpp" 2 3#include "comm_module.hpp" 4#include "command/guid.hpp" 5#include "command_table.hpp" 6#include "message.hpp" 7#include "message_handler.hpp" 8#include "sd_event_loop.hpp" --- 85 unchanged lines hidden (view full) --- 94 ipmi::ipmiChannelInit(); 95 if (channel.size()) 96 { 97 setInterfaceIndex(channel); 98 } 99 100 session::Manager::get().managerInit(channel); 101 // Register callback to update cache for a GUID change and cache the GUID |
102 command::getUIDObjectInfo(); | |
103 command::registerGUIDChangeCallback(); | 102 command::registerGUIDChangeCallback(); |
104 cache::guid = command::getSystemGUID(); | |
105 106 // Register callback to update cache for sol conf change 107 sol::registerSolConfChangeCallbackHandler(channel); 108 109 // Register the phosphor-net-ipmid session setup commands 110 command::sessionSetupCommands(); 111 112 // Register the phosphor-net-ipmid SOL commands 113 sol::command::registerCommands(); 114 115 auto& loop = eventloop::EventLoop::get(); 116 if (loop.setupSocket(sdbusp, channel)) 117 { 118 return EXIT_FAILURE; 119 } 120 121 // Start Event Loop 122 return loop.startEventLoop(); 123} | 103 104 // Register callback to update cache for sol conf change 105 sol::registerSolConfChangeCallbackHandler(channel); 106 107 // Register the phosphor-net-ipmid session setup commands 108 command::sessionSetupCommands(); 109 110 // Register the phosphor-net-ipmid SOL commands 111 sol::command::registerCommands(); 112 113 auto& loop = eventloop::EventLoop::get(); 114 if (loop.setupSocket(sdbusp, channel)) 115 { 116 return EXIT_FAILURE; 117 } 118 119 // Start Event Loop 120 return loop.startEventLoop(); 121} |