Compare commits

..

8 Commits

Author SHA1 Message Date
f7acc9cf82 Initial framework based off pidgin-icq 2021-04-10 20:27:58 +01:00
af7e951408 Add a makefile task to run a pidgin 2021-04-10 20:27:58 +01:00
3389ba8e81 Add some more code from pidgin-icq 2021-04-10 20:27:58 +01:00
13e90a691f purple: Allow protocol options to be configured 2021-04-10 20:27:58 +01:00
fcce5e9da0 purple: Add a way to specify the account has a password 2021-04-10 20:27:58 +01:00
c98d1920b4 purple: Add a way to access the account password 2021-04-10 20:27:58 +01:00
265e77da6a 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 20:27:56 +01:00
dedd12c66a 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 20:27:12 +01:00

View File

@@ -217,3 +217,13 @@ 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
}
}