Added prof_on_shutdown hooks to test plugins

This commit is contained in:
James Booth
2013-09-03 22:25:10 +01:00
parent 2eea66796c
commit 3d610785b4
3 changed files with 13 additions and 0 deletions

View File

@@ -30,6 +30,10 @@ module RubyTest
return message + "[RUBY]"
end
def self.prof_on_shutdown()
Prof::log_info("RubyTest: on_shutdown");
end
def self.cmd_ruby()
return Proc.new { | msg |
if msg

View File

@@ -25,6 +25,9 @@ def prof_on_message_send(jid, message):
prof.cons_alert()
return message + "[PYTHON]"
def prof_on_shutdown():
prof.log_info("python-test: on_shutdown")
def cmd_python(msg):
if msg:
prof.cons_show("python-test: /python command called, arg = " + msg)

View File

@@ -93,3 +93,9 @@ prof_on_message_send(const char * const jid, const char *message)
return result;
}
void
prof_on_shutdown(void)
{
prof_log_info("c-test: on_shutdown");
}