Compare commits

..

8 Commits

Author SHA1 Message Date
37f652f106 Initial framework based off pidgin-icq 2021-04-10 20:15:38 +01:00
c41e7c6259 Add a makefile task to run a pidgin 2021-04-10 20:15:38 +01:00
45406b30b1 Add some more code from pidgin-icq 2021-04-10 20:15:08 +01:00
f718015318 purple: Allow protocol options to be configured 2021-04-10 20:15:08 +01:00
0b577205b3 purple: Add a way to specify the account has a password 2021-04-10 20:14:52 +01:00
6cca0cf014 purple: Add a way to access the account password 2021-04-10 18:29:39 +01:00
80985f25f0 purple: Support libpurple 2.13
get_cb_alias was introduced in 2.14 and referencing it directly in this
macro breaks compilation against libpurple-2.13, as found in Debian
Buster.

https://docs.pidgin.im/pidgin/2.x.y/struct__PurplePluginProtocolInfo.html#ad43cef005f1634b0d170cc2972c69550
2021-04-10 18:29:32 +01:00
f4d380876d Vendor in a purple-sys wrapper
This code comes from https://github.com/Flared/purple-icq/tree/master/src/purple

It is GPL-3 licensed
2021-04-10 14:25:19 +01:00

View File

@@ -217,13 +217,3 @@ impl_extra_handler_builder! {
send_im => SendIMHandler
chat_send => ChatSendHandler
}
// get_cb_alias is only available in Purple 2.14
#[cfg(libpurple2_14)]
impl<T: crate::purple::handlers::traits::GetChatBuddyAlias> RegisterContext<T> {
#[allow(dead_code)]
pub fn enable_get_cb_alias(mut self) -> Self {
self.extra_info.get_cb_alias = Some(crate::purple::handlers::entrypoints::get_cb_alias::<T>);
self
}
}