protocols/demo/purpledemocommands.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 43066
850400fb36c0
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.

43066
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 /*
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 * Purple - Internet Messaging Library
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 *
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 * This library is free software; you can redistribute it and/or
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 * modify it under the terms of the GNU Lesser General Public
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 * License as published by the Free Software Foundation; either
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 * version 2 of the License, or (at your option) any later version.
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 *
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10 * This library is distributed in the hope that it will be useful,
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 * Lesser General Public License for more details.
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 *
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15 * You should have received a copy of the GNU Lesser General Public
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 * License along with this library; if not, see <https://www.gnu.org/licenses/>.
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
17 */
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19 #ifndef PURPLE_DEMO_COMMANDS_H
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
20 #define PURPLE_DEMO_COMMANDS_H
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
22 #include <glib.h>
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
23
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
24 #include <purple.h>
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
25
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
26 G_BEGIN_DECLS
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
27
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
28 G_GNUC_INTERNAL void purple_demo_commands_add(void);
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
29 G_GNUC_INTERNAL void purple_demo_commands_remove(void);
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
30
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
31 G_END_DECLS
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
32
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
33 #endif /* PURPLE_DEMO_COMMANDS_H */

mercurial