This repository has been archived on 2021-04-17. You can view files and clone it, but cannot push or open issues or pull requests.
uIRC/include/uirc/memory.h

45 lines
1.8 KiB
C
Raw Normal View History

2020-07-22 16:57:59 +00:00
/*
* This file is part of uIRC. (https://git.redxen.eu/caskd/uIRC)
2021-03-11 22:52:30 +00:00
* Copyright (c) 2019-2021 Alex-David Denes
2020-07-22 16:57:59 +00:00
*
* 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/>.
2020-10-10 10:30:05 +00:00
*/
/*! \file */
2021-04-16 18:10:33 +00:00
#include "uirc/mode.h" // IRC_Modes
#include "uirc/type.h" // IRC_*
2021-03-11 22:33:08 +00:00
#include <stddef.h> // ptrdiff_t
#ifndef UIRC_GUARD_PUBLIC_MEMORY
#define UIRC_GUARD_PUBLIC_MEMORY
void uirc_struct_free(void* obj, IRC_Struct_Type type);
#ifdef UIRC_FEATURE_IRCV3
IRC_Tag* uirc_struct_assm_tag(bool clientbound, const char* key, const char* value);
IRC_Capability* uirc_struct_assm_capability(bool active, const char* name);
#endif /* UIRC_FEATURE_IRCV3 */
IRC_User* uirc_struct_assm_user(bool service, IRC_Modes* modes, const char* nick, const char* user, const char* real, const char* host);
IRC_Message* uirc_struct_assm_message(const char* cmd, bool trailing, unsigned int argc, ...);
IRC_Buffer* uirc_struct_assm_buffer(IRC_Buffer_Type type, IRC_Modes* modes, bool subscribed, const char* name, const char* key, const char* topic);
IRC_Network* uirc_struct_assm_network(const char* addr, const char* svc, const char* pass);
void* uirc_list_append(llist_t* anchor, void* content);
ptrdiff_t uirc_list_free(llist_t* list, IRC_Struct_Type type);
#endif /* UIRC_GUARD_PUBLIC_MEMORY */