protocols/sip/purplesipprotocol.h

Sun, 10 Aug 2025 23:44:08 +0800

author
Gong Zhile <gongzl@stu.hebust.edu.cn>
date
Sun, 10 Aug 2025 23:44:08 +0800
branch
purple_conversation_find_message_by_id
changeset 43309
099e1dfb856b
parent 43245
b83427aa2c38
permissions
-rw-r--r--

Add Purple.Conversation.find_message_by_id

The method was added so that a protocol or plugin could easily lookup
for the reference for a message. This will be especially useful when a
protocol received a quoted message but only with an id.

/*
 * Purple - Internet Messaging Library
 * Copyright (C) Pidgin Developers <devel@pidgin.im>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, see <https://www.gnu.org/licenses/>.
 */

#ifndef PURPLE_SIP_PROTOCOL_H
#define PURPLE_SIP_PROTOCOL_H

#include <glib.h>
#include <glib-object.h>

#include <gplugin-native.h>

#include <purple.h>

G_BEGIN_DECLS

#define PURPLE_SIP_TYPE_PROTOCOL (purple_sip_protocol_get_type())
G_DECLARE_FINAL_TYPE(PurpleSipProtocol, purple_sip_protocol, PURPLE_SIP,
                     PROTOCOL, PurpleProtocol)

G_GNUC_INTERNAL void purple_sip_protocol_register(GPluginNativePlugin *plugin);

G_GNUC_INTERNAL PurpleProtocol *purple_sip_protocol_new(void);

G_END_DECLS

#endif /* PURPLE_SIP_PROTOCOL_H */

mercurial