# HG changeset patch # User David Demelier # Date 1531740588 -7200 # Node ID 2fa1f2c898ee1607604dae57dbb150214f86d26a # Parent 34af864668fa0ad87f2f4b50399c919e5264926f Irccd: use struct's in server events diff -r 34af864668fa -r 2fa1f2c898ee libirccd/irccd/daemon/server.hpp --- a/libirccd/irccd/daemon/server.hpp Mon Jul 16 13:14:10 2018 +0200 +++ b/libirccd/irccd/daemon/server.hpp Mon Jul 16 13:29:48 2018 +0200 @@ -58,8 +58,7 @@ /** * \brief A channel to join with an optional password. */ -class channel { -public: +struct channel { std::string name; //!< the channel to join std::string password; //!< the optional password }; @@ -67,8 +66,7 @@ /** * \brief Describe a whois information. */ -class whois_info { -public: +struct whois_info { std::string nick; //!< user's nickname std::string user; //!< user's user std::string host; //!< hostname @@ -79,24 +77,21 @@ /** * \brief Connection success event. */ -class connect_event { -public: +struct connect_event { std::shared_ptr server; //!< The server. }; /** * \brief Connection success event. */ -class disconnect_event { -public: +struct disconnect_event { std::shared_ptr server; //!< The server. }; /** * \brief Invite event. */ -class invite_event { -public: +struct invite_event { std::shared_ptr server; //!< The server. std::string origin; //!< The originator. std::string channel; //!< The channel. @@ -106,8 +101,7 @@ /** * \brief Join event. */ -class join_event { -public: +struct join_event { std::shared_ptr server; //!< The server. std::string origin; //!< The originator. std::string channel; //!< The channel. @@ -116,8 +110,7 @@ /** * \brief Kick event. */ -class kick_event { -public: +struct kick_event { std::shared_ptr server; //!< The server. std::string origin; //!< The originator. std::string channel; //!< The channel. @@ -128,8 +121,7 @@ /** * \brief Message event. */ -class message_event { -public: +struct message_event { std::shared_ptr server; //!< The server. std::string origin; //!< The originator. std::string channel; //!< The channel. @@ -139,8 +131,7 @@ /** * \brief CTCP action event. */ -class me_event { -public: +struct me_event { std::shared_ptr server; //!< The server. std::string origin; //!< The originator. std::string channel; //!< The channel. @@ -150,8 +141,7 @@ /** * \brief Mode event. */ -class mode_event { -public: +struct mode_event { std::shared_ptr server; //!< The server. std::string origin; //!< The originator. std::string channel; //!< The channel or target. @@ -164,8 +154,7 @@ /** * \brief Names listing event. */ -class names_event { -public: +struct names_event { std::shared_ptr server; //!< The server. std::string channel; //!< The channel. std::vector names; //!< The names. @@ -174,8 +163,7 @@ /** * \brief Nick change event. */ -class nick_event { -public: +struct nick_event { std::shared_ptr server; //!< The server. std::string origin; //!< The originator. std::string nickname; //!< The new nickname. @@ -184,8 +172,7 @@ /** * \brief Notice event. */ -class notice_event { -public: +struct notice_event { std::shared_ptr server; //!< The server. std::string origin; //!< The originator. std::string channel; //!< The channel or target. @@ -195,8 +182,7 @@ /** * \brief Part event. */ -class part_event { -public: +struct part_event { std::shared_ptr server; //!< The server. std::string origin; //!< The originator. std::string channel; //!< The channel. @@ -206,8 +192,7 @@ /** * \brief Query event. */ -class query_event { -public: +struct query_event { std::shared_ptr server; //!< The server. std::string origin; //!< The originator. std::string message; //!< The message. @@ -216,8 +201,7 @@ /** * \brief Topic event. */ -class topic_event { -public: +struct topic_event { std::shared_ptr server; //!< The server. std::string origin; //!< The originator. std::string channel; //!< The channel. @@ -227,8 +211,7 @@ /** * \brief Whois event. */ -class whois_event { -public: +struct whois_event { std::shared_ptr server; //!< The server. whois_info whois; //!< The whois information. };