diff options
author | Peter Powell <petpow@saberuk.com> | 2019-08-07 19:37:27 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-08-07 19:37:27 +0100 |
commit | 714284aa306f2912eaca0c28d779d227db62a96b (patch) | |
tree | a559faf3cfb5b986255ad8b40adf8af1a3866654 /include/modules | |
parent | 85182d727c0d549b9cf6659ad36dec70fcf02278 (diff) |
Convert all core ExtensionItem code away from {un,}serialize.
Diffstat (limited to 'include/modules')
-rw-r--r-- | include/modules/cap.h | 5 | ||||
-rw-r--r-- | include/modules/invite.h | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/include/modules/cap.h b/include/modules/cap.h index 6dcb9f3bc..5f63b58ce 100644 --- a/include/modules/cap.h +++ b/include/modules/cap.h @@ -32,8 +32,9 @@ namespace Cap { public: ExtItem(Module* mod); - std::string serialize(SerializeFormat format, const Extensible* container, void* item) const CXX11_OVERRIDE; - void unserialize(SerializeFormat format, Extensible* container, const std::string& value) CXX11_OVERRIDE; + void FromInternal(Extensible* container, const std::string& value) CXX11_OVERRIDE; + std::string ToHuman(const Extensible* container, void* item) const CXX11_OVERRIDE; + std::string ToInternal(const Extensible* container, void* item) const CXX11_OVERRIDE; }; class Capability; diff --git a/include/modules/invite.h b/include/modules/invite.h index e53d5202f..abd483247 100644 --- a/include/modules/invite.h +++ b/include/modules/invite.h @@ -101,11 +101,11 @@ class Invite::Invite : public insp::intrusive_list_node<Invite, LocalUser>, publ bool IsTimed() const { return (expiretimer != NULL); } /** Serialize this object - * @param format Serialization format + * @param human Whether to serialize for human consumption or not. * @param show_chans True to include channel in the output, false to include the nick/uuid * @param out Output will be appended to this string */ - void Serialize(SerializeFormat format, bool show_chans, std::string& out); + void Serialize(bool human, bool show_chans, std::string& out); friend class APIImpl; |