about summary refs log tree commit diff stats
path: root/src/xmpp/avatar.c
Commit message (Collapse)AuthorAgeFilesLines
* Add config.h in files were it was missingMichael Vetter2021-03-261-0/+2
| | | | Related to https://github.com/profanity-im/profanity/issues/1512
* avatar: make _avatar_request_item_result_handler saferMichael Vetter2021-03-251-0/+4
|
* avatar: make _avatar_metadata_handler saferMichael Vetter2021-03-251-11/+20
|
* Update copyrightMichael Vetter2021-01-081-1/+1
|
* Remove not needed includeMichael Vetter2020-12-161-1/+0
|
* Since the string from strerror should never be modified, use const.Philipp Klaus Krause2020-10-141-1/+1
|
* Replace stanza_get_child_by_name_and_ns with ↵Michael Vetter2020-09-301-1/+1
| | | | | | | | xmpp_stanza_get_child_by_name_and_ns Replace our own stanza_get_child_by_name_and_ns() with the upstreamed xmpp_stanza_get_child_by_name_and_ns() provided by the new libstrophe/libmesode 0.10.0.
* Apply coding styleMichael Vetter2020-07-071-42/+43
|
* Revert "Apply coding style"Michael Vetter2020-07-071-48/+47
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-071-47/+48
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* Get output and error streams from the command spawned by external_call()Pierre Mazière2020-06-031-1/+4
| | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
* Create call_external() helper functionMichael Vetter2020-05-201-9/+1
|
* xep-0084/avatar: add option to open avatar directlyMichael Vetter2020-03-101-2/+27
| | | | | | | | | | | Change: `/avatar me@somewhere.org` -> `/avatar get me@somewhere.org` New: `/avatar cmd feh` `/avatar open me@somewhere.org` Implement https://github.com/profanity-im/profanity/issues/1281
* avatar: use unique id for stanza idMichael Vetter2020-02-071-3/+6
| | | | "retrieve1" should have been only for testing.
* xep-0084: use hash table for avatar lookupMichael Vetter2020-01-221-8/+11
|
* Update my Copyright to 2020Michael Vetter2020-01-031-1/+1
|
* Add comments to avatar.cMichael Vetter2019-12-231-8/+11
| | | | And use better function names.
* Add string.h to avatars.cMichael Vetter2019-12-191-0/+1
| | | | Regards https://github.com/profanity-im/profanity/issues/1241
* Include stdlib.h in avatar.cMichael Vetter2019-12-191-0/+1
| | | | | | We use malloc() and free(). Fix https://github.com/profanity-im/profanity/issues/1241
* xep-0084: add test stub fileMichael Vetter2019-12-181-1/+1
|
* xep-0084: make internal functions staticMichael Vetter2019-12-181-8/+8
|
* xep-0084: move id to avatar_metadataMichael Vetter2019-12-181-12/+12
|
* xep-0084: Add correct file extensionMichael Vetter2019-12-181-9/+41
|
* xep-0084: Normalize at out of image filenameMichael Vetter2019-12-181-1/+3
|
* xep-0084: Improve helpMichael Vetter2019-12-181-1/+1
|
* xep-0084:Michael Vetter2019-12-181-0/+4
| | | | | | | | | | | | So far we removed the avatar feature only after a succesful retrive in avatar_request_item_by_id() before we are going to retrieve the actual image. We should remove it at every `/avatar barejid` call too so in case one retrieval was unsucessful that we can call it again. So far it seems like there is no other way to trigger getting the nodes except announcing that we support the avatar feature.
* Fix headerMichael Vetter2019-12-181-1/+1
|
* xep-0084: save avatars in own directoryMichael Vetter2019-12-181-4/+20
|
* xep-0084: Make it work multiple timesMichael Vetter2019-12-181-0/+4
|
* xep-0084: Download avatarsMichael Vetter2019-12-181-3/+80
| | | | | Proof of concept. Needs error checking, a nice interface, general cleanup..
* xep-0084: Look for specific user and print IDMichael Vetter2019-12-181-1/+21
| | | | Add a `/avatar` command.
* Start implementing XEP-0084Michael Vetter2019-12-181-0/+94
So far we just subscribe and get the IDs.