bool
HelperModule::load (const String &name)
{
- char buf[256] = {0};
- snprintf (buf, sizeof (buf), "time:%ld pid:%d %s %s (%s)\n", time (0), getpid (), __FILE__, __func__, name.c_str ());
- isf_save_log (buf);
-
try {
if (!m_module.load (name, "Helper"))
return false;
}
if (m_set_path_info) {
- m_set_path_info(m_module.get_path().c_str());
+ m_set_path_info (m_module.get_path ().c_str ());
}
} catch (...) {
m_module.unload ();
bool
HelperModule::unload ()
{
- char buf[256] = {0};
- snprintf (buf, sizeof (buf), "time:%ld pid:%d %s %s ()\n", time (0), getpid (), __FILE__, __func__);
- isf_save_log (buf);
-
return m_module.unload ();
}
bool
IMEngineModule::load (const String &name, const ConfigPointer &config)
{
- char buf[256] = {0};
- snprintf (buf, sizeof (buf), "time:%ld pid:%d %s %s (%s)\n", time (0), getpid (), __FILE__, __func__, name.c_str ());
- isf_save_log (buf);
-
m_module_name = name;
try {
if (!m_module.load (name, "IMEngine"))
bool
IMEngineModule::unload ()
{
- char buf[256] = {0};
- snprintf (buf, sizeof (buf), "time:%ld pid:%d %s %s ()\n", time (0), getpid (), __FILE__, __func__);
- isf_save_log (buf);
-
return m_module.unload ();
}
if (cmd == SCIM_TRANS_CMD_START_HELPER) {
socket_start_helper (client_id, context, uuid);
continue;
- }
- else if (cmd == SCIM_TRANS_CMD_SEND_HELPER_EVENT) {
+ } else if (cmd == SCIM_TRANS_CMD_SEND_HELPER_EVENT) {
socket_send_helper_event (client_id, context, uuid);
continue;
- }
- else if (cmd == SCIM_TRANS_CMD_STOP_HELPER) {
+ } else if (cmd == SCIM_TRANS_CMD_STOP_HELPER) {
socket_stop_helper (client_id, context, uuid);
continue;
}