00001 #ifndef __COMMON_H_INCLUDE__ 00002 #define __COMMON_H_INCLUDE__ 00003 00004 00005 #include "plugin.h" 00006 #include <map> 00007 00008 00009 int command_unknown( PluginMethod* method, int command, const char* command_arg ); 00010 int command_reboot( PluginMethod* method, int command, const char* command_arg ); 00011 int command_linkup( PluginMethod* method, int command, const char* command_arg ); 00012 int command_linkdown( PluginMethod* method, int command, const char* command_arg ); 00013 int command_getlog( PluginMethod* method, int command, const char* command_arg ); 00014 int command_getsyslog( PluginMethod* method, int command, const char* command_arg ); 00015 int command_getip( PluginMethod* method, int command, const char* command_arg ); 00016 int command_getips( PluginMethod* method, int command, const char* command_arg ); 00017 int command_getall( PluginMethod* method, int command, const char* command_arg ); 00018 int command_enable_eco( PluginMethod* method, int command, const char* command_arg ); 00019 int command_start_eco( PluginMethod* method, int command, const char* command_arg ); 00020 int command_disable_eco( PluginMethod* method, int command, const char* command_arg ); 00021 int command_eco( PluginMethod* method, int command, const char* command_arg ); 00022 00023 typedef int (*exec_command)( PluginMethod* method, int command, const char* command_arg ); 00024 00025 00026 00027 00028 #endif // __COMMON_H_INCLUDE__