X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilc%2Flocal_command.h;fp=apps%2Fsilc%2Flocal_command.h;h=0000000000000000000000000000000000000000;hb=72c2de619079457f7a68100eb13385275a424a23;hp=134e0fdf476c17e279979ac75d2cdba187e8f951;hpb=e7b6c157b80152bf9fb9266e6bdd93f9fb0db776;p=runtime.git diff --git a/apps/silc/local_command.h b/apps/silc/local_command.h deleted file mode 100644 index 134e0fdf..00000000 --- a/apps/silc/local_command.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - - local_command.h - - Author: Pekka Riikonen - - Copyright (C) 1997 - 2000 Pekka Riikonen - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - -*/ - -#ifndef LOCAL_COMMAND_H -#define LOCAL_COMMAND_H - -/* All local commands */ -extern SilcClientCommand silc_local_command_list[]; - -/* Local commands */ -#define SILC_LOCAL_COMMAND_HELP 1 -#define SILC_LOCAL_COMMAND_CLEAR 2 -#define SILC_LOCAL_COMMAND_VERSION 3 -#define SILC_LOCAL_COMMAND_SERVER 4 -#define SILC_LOCAL_COMMAND_MSG 5 -#define SILC_LOCAL_COMMAND_AWAY 6 -#define SILC_LOCAL_COMMAND_KEY 7 -#define SILC_LOCAL_COMMAND_ME 8 -#define SILC_LOCAL_COMMAND_NOTICE 9 - -/* Macros */ - -/* Macro used for command declaration in command list structure */ -#define SILC_CLIENT_LCMD(func, cmd, name, flags, args) \ -{ silc_client_local_command_##func, SILC_LOCAL_COMMAND_##cmd, \ - name, flags, args } - -/* Macro used to declare command functions */ -#define SILC_CLIENT_LCMD_FUNC(func) \ -void silc_client_local_command_##func(void *context) - -/* Prototypes */ -SilcClientCommand *silc_client_local_command_find(const char *name); -SILC_CLIENT_LCMD_FUNC(help); -SILC_CLIENT_LCMD_FUNC(clear); -SILC_CLIENT_LCMD_FUNC(version); -SILC_CLIENT_LCMD_FUNC(msg); -SILC_CLIENT_LCMD_FUNC(server); -SILC_CLIENT_LCMD_FUNC(away); -SILC_CLIENT_LCMD_FUNC(key); -SILC_CLIENT_LCMD_FUNC(me); -SILC_CLIENT_LCMD_FUNC(notice); - -#endif