Add more symbols

This commit is contained in:
Alex D. 2021-03-14 17:56:25 +00:00
parent 91f370fa58
commit 649ea4e940
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
4 changed files with 106 additions and 3 deletions

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.16)
project(
uIRC
VERSION 0.3.1
VERSION 0.3.2
DESCRIPTION "Simple and lightweight IRC protocol helper"
LANGUAGES C
)
@ -21,16 +21,18 @@ OPTION(CODE_COVERAGE "Build with coverage tools" OFF)
set(UIRC_SOURCE
src/assemblers/message.c
src/assemblers/user.c
src/memory/list.c
src/memory/struct.c
src/tokenizers/message.c
src/tokenizers/user.c
src/memory/struct.c
src/memory/list.c
)
set(UIRC_HEADERS
include/assemblers.h
include/commands.h
include/ctcp.h
include/memory.h
include/misc.h
include/modes.h
include/replies.h
include/tokenizers.h

72
include/commands.h Normal file
View File

@ -0,0 +1,72 @@
/*
* This file is part of uIRC. (https://git.redxen.eu/caskd/uIRC)
* Copyright (c) 2019-2021 Alex-David Denes
*
* uIRC 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 3 of the License, or
* any later version.
*
* uIRC 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.
*
* You should have received a copy of the GNU General Public License
* along with uIRC. If not, see <https://www.gnu.org/licenses/>.
*/
/*! \file */
#ifndef UIRC_GUARD_PUBLIC_COMMANDS
#define UIRC_GUARD_PUBLIC_COMMANDS
#define IRC_CMD_PASS "PASS"
#define IRC_CMD_NICK "NICK"
#define IRC_CMD_USER "USER"
#define IRC_CMD_OPER "OPER"
#define IRC_CMD_MODE "MODE"
#define IRC_CMD_SERVICE "SERVICE"
#define IRC_CMD_QUIT "QUIT"
#define IRC_CMD_SQUIT "SQUIT"
#define IRC_CMD_JOIN "JOIN"
#define IRC_CMD_PART "PART"
#define IRC_CMD_MODE "MODE"
#define IRC_CMD_TOPIC "TOPIC"
#define IRC_CMD_NAMES "NAMES"
#define IRC_CMD_LIST "LIST"
#define IRC_CMD_INVITE "INVITE"
#define IRC_CMD_KICK "KICK"
#define IRC_CMD_PRIVMSG "PRIVMSG"
#define IRC_CMD_NOTICE "NOTICE"
#define IRC_CMD_MOTD "MOTD"
#define IRC_CMD_LUSERS "LUSERS"
#define IRC_CMD_VERSION "VERSION"
#define IRC_CMD_STATS "STATS"
#define IRC_CMD_LINKS "LINKS"
#define IRC_CMD_TIME "TIME"
#define IRC_CMD_CONNECT "CONNECT"
#define IRC_CMD_TRACE "TRACE"
#define IRC_CMD_ADMIN "ADMIN"
#define IRC_CMD_INFO "INFO"
#define IRC_CMD_SERVLIST "SERVLIST"
#define IRC_CMD_SQUERY "SQUERY"
#define IRC_CMD_WHO "WHO"
#define IRC_CMD_WHOIS "WHOIS"
#define IRC_CMD_WHOWAS "WHOWAS"
#define IRC_CMD_KILL "KILL"
#define IRC_CMD_PING "PING"
#define IRC_CMD_PONG "PONG"
#define IRC_CMD_ERROR "ERROR"
#define IRC_CMD_AWAY "AWAY"
#define IRC_CMD_REHASH "REHASH"
#define IRC_CMD_DIE "DIE"
#define IRC_CMD_RESTART "RESTART"
#define IRC_CMD_SUMMON "SUMMON"
#define IRC_CMD_USERS "USERS"
#define IRC_CMD_WALLOPS "WALLOPS"
#define IRC_CMD_USERHOST "USERHOST"
#define IRC_CMD_ISON "ISON"
#endif /* UIRC_GUARD_PUBLIC_COMMANDS */

27
include/misc.h Normal file
View File

@ -0,0 +1,27 @@
/*
* This file is part of uIRC. (https://git.redxen.eu/caskd/uIRC)
* Copyright (c) 2019-2021 Alex-David Denes
*
* uIRC 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 3 of the License, or
* any later version.
*
* uIRC 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.
*
* You should have received a copy of the GNU General Public License
* along with uIRC. If not, see <https://www.gnu.org/licenses/>.
*/
/*! \file */
#ifndef UIRC_GUARD_PUBLIC_MISC
#define UIRC_GUARD_PUBLIC_MISC
#define IRC_RESERVED "*"
#endif /* UIRC_GUARD_PUBLIC_MISC */

View File

@ -17,8 +17,10 @@
*/
#include "assemblers.h"
#include "commands.h"
#include "ctcp.h"
#include "memory.h"
#include "misc.h"
#include "modes.h"
#include "replies.h"
#include "tokenizers.h"