protocols/demo/purpledemocommands.h

Fri, 15 Nov 2024 02:23:29 -0600

author
Gary Kramlich <grim@reaperworld.com>
date
Fri, 15 Nov 2024 02:23:29 -0600
changeset 43066
850400fb36c0
permissions
-rw-r--r--

Add an edited command to the demo protocol

This will send a message with the edited flag set to true.

Testing Done:
Used the command with `echo` and verified it showed as edited. Also called in the turtles for good measure.

Reviewed at https://reviews.imfreedom.org/r/3656/

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