X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Firssi%2Fsrc%2Fsilc%2Fcore%2Fsilc-commands.h;fp=apps%2Firssi%2Fsrc%2Fsilc%2Fcore%2Fsilc-commands.h;h=0000000000000000000000000000000000000000;hb=72c2de619079457f7a68100eb13385275a424a23;hp=a2832f0f94924656acad4d98216c163d0fd65540;hpb=e7b6c157b80152bf9fb9266e6bdd93f9fb0db776;p=runtime.git diff --git a/apps/irssi/src/silc/core/silc-commands.h b/apps/irssi/src/silc/core/silc-commands.h deleted file mode 100644 index a2832f0f..00000000 --- a/apps/irssi/src/silc/core/silc-commands.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef SILC_COMMANDS_H -#define SILC_COMMANDS_H - -#define command_bind_silc(cmd, section, signal) \ - command_bind_proto(cmd, SILC_PROTOCOL, section, signal) -#define command_bind_silc_first(cmd, section, signal) \ - command_bind_proto_first(cmd, SILC_PROTOCOL, section, signal) -#define command_bind_silc_last(cmd, section, signal) \ - command_bind_proto_last(cmd, SILC_PROTOCOL, section, signal) - -/* Simply returns if server isn't for SILC protocol. Prints ERR_NOT_CONNECTED - error if there's no server or server isn't connected yet */ -#define CMD_SILC_SERVER(server) \ - G_STMT_START { \ - if (server != NULL && !IS_SILC_SERVER(server)) \ - return; \ - if (server == NULL || !(server)->connected) \ - cmd_return_error(CMDERR_NOT_CONNECTED); \ - } G_STMT_END - -/* Returning from command function with error */ -#define cmd_return_error_value(a,v) \ - G_STMT_START { \ - signal_emit("error command", 1, GINT_TO_POINTER(a)); \ - signal_stop(); \ - return (v); \ - } G_STMT_END - -#endif