Sat, 09 Aug 2025 17:37:27 +0800
Fix the birb header path
The birb header referred would only work with birb provided by wrap casuing
build to fail because of system-installed birb dependency. The commit points
it to the correct path <birb.h>.
See: https://keep.imfreedom.org/birb/birb/file/5bf00c7d7f80/birb/meson.build#l77
|
43057
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | /* |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | * |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | * Purple is the legal property of its developers, whose names are too numerous |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
7 | * source distribution. |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | * |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
9 | * This library is free software; you can redistribute it and/or modify it |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
10 | * under the terms of the GNU General Public License as published by the Free |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
11 | * Software Foundation; either version 2 of the License, or (at your option) |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
12 | * any later version. |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | * |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
14 | * This library is distributed in the hope that it will be useful, but WITHOUT |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
16 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
17 | * more details. |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
18 | * |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License along with |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
20 | * this library; if not, see <https://www.gnu.org/licenses/>. |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
21 | */ |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
22 | |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
23 | #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION) |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
24 | # error "only <purple.h> may be included directly" |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
25 | #endif |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
26 | |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
27 | #ifndef PURPLE_COMMANDS_H |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
28 | #define PURPLE_COMMANDS_H |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
29 | |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
30 | #include <glib.h> |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | #include <glib-object.h> |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
32 | |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
33 | #include "purplecommand.h" |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
34 | #include "purpleversion.h" |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
35 | |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
36 | G_BEGIN_DECLS |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
37 | |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
38 | /** |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
39 | * purple_action_command_new: |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
40 | * |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
41 | * Create a new `action` command. |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
42 | * |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
43 | * An action command will create a message out of the given parameters and set |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
44 | * [property@Message:action] to %TRUE on the message before sending it. |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
45 | * |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
46 | * Returns: (transfer full): The new instance. |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
47 | * |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
48 | * Since: 3.0 |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
49 | */ |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
50 | PURPLE_AVAILABLE_IN_3_0 |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
51 | PurpleCommand *purple_action_command_new(void); |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
52 | |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
53 | /** |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
54 | * purple_say_command_new: |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
55 | * |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
56 | * Creates a new `say` command. |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
57 | * |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
58 | * The `say` command creates a message from the parameters and writes it to the |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
59 | * conversation. This is typically used in combination with the `alias` command |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
60 | * to create shortcut commands. |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
61 | * |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
62 | * The `say` command has no tags meaning it will be available in all |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
63 | * conversations. |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
64 | * |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
65 | * Returns: (transfer full): The new instance. |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
66 | * |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
67 | * Since: 3.0 |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
68 | */ |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
69 | PURPLE_AVAILABLE_IN_3_0 |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
70 | PurpleCommand *purple_say_command_new(void); |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
71 | |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
72 | G_END_DECLS |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
73 | |
|
2c801eae5449
Add commands for say and action
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
74 | #endif /* PURPLE_COMMANDS_H */ |