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
| 42844 | 1 | /* |
| 2 | * Purple - Internet Messaging Library | |
| 3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> | |
| 4 | * | |
| 5 | * Purple is the legal property of its developers, whose names are too numerous | |
| 6 | * to list here. Please refer to the COPYRIGHT file distributed with this | |
| 7 | * source distribution. | |
| 8 | * | |
| 9 | * This library is free software; you can redistribute it and/or modify it | |
| 10 | * under the terms of the GNU General Public License as published by the Free | |
| 11 | * Software Foundation; either version 2 of the License, or (at your option) | |
| 12 | * any later version. | |
| 13 | * | |
| 14 | * This library is distributed in the hope that it will be useful, but WITHOUT | |
| 15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 16 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 17 | * more details. | |
| 18 | * | |
| 19 | * You should have received a copy of the GNU General Public License along with | |
| 20 | * this library; if not, see <https://www.gnu.org/licenses/>. | |
| 21 | */ | |
| 22 | ||
| 23 | #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION) | |
| 24 | # error "only <purple.h> may be included directly" | |
| 25 | #endif | |
| 26 | ||
| 27 | #ifndef PURPLE_MESSAGES_H | |
| 28 | #define PURPLE_MESSAGES_H | |
| 29 | ||
| 30 | #include <glib.h> | |
| 31 | #include <gio/gio.h> | |
| 32 | ||
| 33 | #include "purpleconversation.h" | |
| 34 | #include "purplemessage.h" | |
| 35 | #include "purpleversion.h" | |
| 36 | ||
| 37 | G_BEGIN_DECLS | |
| 38 | ||
| 39 | #define PURPLE_TYPE_MESSAGES (purple_messages_get_type()) | |
| 40 | ||
| 41 | /** | |
| 42 | * PurpleMessages: | |
| 43 | * | |
| 44 | * A read-only collection of [class@Message]'s and the [class@Conversation] | |
| 45 | * that they belong to. | |
| 46 | * | |
| 47 | * This collection is meant to make it easy to pass around a number of related | |
| 48 | * messages. For example getting messages from a server or displaying a few | |
| 49 | * messages in a search result. | |
| 50 | * | |
| 51 | * Since: 3.0 | |
| 52 | */ | |
| 53 | PURPLE_AVAILABLE_IN_3_0 | |
| 54 | G_DECLARE_FINAL_TYPE(PurpleMessages, purple_messages, PURPLE, MESSAGES, | |
| 55 | GObject) | |
| 56 | ||
| 57 | /** | |
| 58 | * purple_messages_new: | |
| 59 | * @conversation: The conversation. | |
| 60 | * | |
| 61 | * Creates a new instance for @conversation. | |
| 62 | * | |
| 63 | * Returns: (transfer full): The new instance. | |
| 64 | * | |
| 65 | * Since: 3.0 | |
| 66 | */ | |
| 67 | PURPLE_AVAILABLE_IN_3_0 | |
| 68 | PurpleMessages *purple_messages_new(PurpleConversation *conversation); | |
| 69 | ||
| 70 | /** | |
| 71 | * purple_messages_get_conversation: | |
| 72 | * @messages: The instance. | |
| 73 | * | |
| 74 | * Gets the conversation from @messages. | |
| 75 | * | |
| 76 | * Returns: (transfer none): The conversation. | |
| 77 | * | |
| 78 | * Since: 3.0 | |
| 79 | */ | |
| 80 | PURPLE_AVAILABLE_IN_3_0 | |
| 81 | PurpleConversation *purple_messages_get_conversation(PurpleMessages *messages); | |
| 82 | ||
| 83 | /** | |
| 84 | * purple_messages_add: | |
| 85 | * @messages: The instance. | |
| 86 | * @message: The message to add. | |
| 87 | * | |
| 88 | * Adds @message to @messages. | |
| 89 | * | |
| 90 | * @message will be sorted inserted according to @message's created timestamp | |
| 91 | * and no duplication checking is performed. | |
| 92 | * | |
| 93 | * Since: 3.0 | |
| 94 | */ | |
| 95 | PURPLE_AVAILABLE_IN_3_0 | |
| 96 | void purple_messages_add(PurpleMessages *messages, PurpleMessage *message); | |
| 97 | ||
| 98 | G_END_DECLS | |
| 99 | ||
| 100 | #endif /* PURPLE_MESSAGES_H */ |