X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Ftypedefs.h;h=3222c5d2f03429baa90bd46f196a1c5055ceaad7;hb=31897d26f2ae1f0fc794a5af512dd4e81053611b;hp=8733829999819a39379ec6b5dd04bec75ce3ca15;hpb=e191f0ed6cdca421407ebc67c28fafabc6cc63f7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/typedefs.h b/include/typedefs.h index 873382999..3222c5d2f 100644 --- a/include/typedefs.h +++ b/include/typedefs.h @@ -1,9 +1,12 @@ /* * InspIRCd -- Internet Relay Chat Daemon * - * Copyright (C) 2009 Daniel De Graaf - * Copyright (C) 2005, 2008 Craig Edwards + * Copyright (C) 2013, 2016, 2018, 2020 Sadie Powell + * Copyright (C) 2012-2014, 2016, 2018 Attila Molnar + * Copyright (C) 2012 Robby + * Copyright (C) 2009-2010 Daniel De Graaf * Copyright (C) 2007 Dennis Friis + * Copyright (C) 2005, 2010 Craig Edwards * * This file is part of InspIRCd. InspIRCd is free software: you can * redistribute it and/or modify it under the terms of the GNU General Public @@ -49,15 +52,41 @@ class XLineFactory; struct ConnectClass; struct ModResult; +namespace ClientProtocol +{ + class Event; + class EventProvider; + class Message; + class MessageTagEvent; + class MessageTagProvider; + class Serializer; + + typedef std::vector MessageList; + typedef std::vector ParamList; + typedef std::string SerializedMessage; + + struct MessageTagData + { + MessageTagProvider* tagprov; + std::string value; + void* provdata; + + MessageTagData(MessageTagProvider* prov, const std::string& val, void* data = NULL); + }; + + /** Map of message tag values and providers keyed by their name. + * Sorted in descending order to ensure tag names beginning with symbols (such as '+') come later when iterating + * the container than tags with a normal name. + */ + typedef insp::flat_map > TagMap; +} + #include "hashcomp.h" #include "base.h" typedef TR1NS::unordered_map user_hash; typedef TR1NS::unordered_map chan_hash; -/** A list of failed port bindings, used for informational purposes on startup */ -typedef std::vector > FailedPortList; - /** List of channels to consider when building the neighbor list of a user */ typedef std::vector IncludeChanList; @@ -85,10 +114,6 @@ typedef std::map ConfigFileCache; /** Generic user list, used for exceptions */ typedef std::set CUList; -/** A set of strings. - */ -typedef std::vector string_list; - /** Contains an ident and host split into two strings */ typedef std::pair IdentHostPair;