about summary refs log tree commit diff stats
path: root/src/common.h
Commit message (Collapse)AuthorAgeFilesLines
* Put getting mentions in own functionMichael Vetter2020-02-201-0/+1
| | | | | | So we can use it somewhere else too. Regards https://github.com/profanity-im/profanity/issues/1261
* Add vim modelineMichael Vetter2019-11-131-0/+1
|
* Move code from jid_random_resource() into own functionMichael Vetter2019-10-161-0/+2
| | | | | Move the code that creates a random string into it's own function +get_random_string().
* Update copyright to include 2019Michael Vetter2019-01-221-1/+1
|
* Merge pull request #1011 from jubalh/sha1Michael Vetter2018-09-191-2/+0
|\ | | | | Get rid of p_sha1 dependency
| * Move p_sha1_hash() to stanza.cMichael Vetter2018-09-061-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Move `p_sha1_hash()` from `common.c` to `xmpp/stanza.c` as it is only used in this file and now depends on libstrophe so xmpp is a better namespace folder. Renaming it as `_stanza_create_sha1_hash()`. And making static since only used here. The function cannot be tested in the unit tests anymore. Once functional tests are working again we should write a test for the sha1 functionality.
* | use gio functions for file copyPhilip Flohr2018-09-061-1/+1
|/
* Move ID generation to xmpp folderMichael Vetter2018-08-301-1/+0
| | | | | | | | | | | create_unique_id() was changed to use UUIDs instead of a counter in the last commit. Since now it depends on connection_create_uuid() which is in the xmpp subfolder the function should also be moved there. Renamed it to connection_create_stanza_id() and moved it to src/xmpp/connection.c. Discussion happened in https://github.com/boothj5/profanity/pull/1010
* Use uuid in create_unique_id instead of counterMichael Vetter2018-08-141-1/+0
| | | | | | | | | | | | Message IDs should be unique so they can be used by XEPs like delivery receipts, chat markers, message correction. So far it used a counter so restarting profanity will cause the counter to be 0 again. Let's rather use an UUID since we have such a function in the xmpp/xmpp.h already. Closes https://github.com/boothj5/profanity/issues/998
* Update copyrightJames Booth2018-01-211-1/+1
|
* Update Glib dependency to 2.40James Booth2017-03-251-20/+0
|
* Allow installing plugins from directoryJames Booth2017-02-051-0/+4
|
* Update CopyrightJames Booth2017-01-281-1/+1
|
* Move window functions to window_list.cJames Booth2016-07-241-3/+1
|
* Move resource conversionsJames Booth2016-07-241-6/+1
|
* Add config/files.cJames Booth2016-07-241-2/+0
|
* Update GPL link in headersJames Booth2016-07-241-1/+1
|
* Add /plugins install commandJames Booth2016-07-121-0/+1
|
* Added whole word matches for room mentionJames Booth2016-04-071-1/+2
|
* Added prof_strstr functionJames Booth2016-04-031-1/+2
|
* Updated copyrightJames Booth2016-02-141-1/+1
|
* Applied coding style to src/James Booth2015-10-261-2/+1
|
* Use consistent style for pointersMichael Vetter2015-10-211-13/+13
|
* Create is_notify_enabled functionMichael Vetter2015-10-121-0/+1
| | | | | The same code was used on two different occasions. I put it into a function.
* Fixed OTR decryption checkJames Booth2015-08-271-1/+1
|
* Added str_contains_str to commonJames Booth2015-08-261-0/+1
|
* I removed ncurses header dependencies, removed unused codeJames Booth2015-06-151-7/+0
|
* Added more connect testsJames Booth2015-05-241-0/+1
|
* Moved _strtoi to common, strtoi_rangeJames Booth2015-03-161-0/+1
|
* Merge branch 'master' into readlineJames Booth2015-02-111-1/+1
|\ | | | | | | | | | | Conflicts: src/tools/history.c src/tools/history.h
| * Updated copyrightJames Booth2015-02-101-1/+1
| |
* | Merge branch 'master' into readlineJames Booth2015-02-081-0/+1
|\|
| * Moved quote stripper to common, added testsJames Booth2015-02-081-0/+1
| |
* | Refactor inputwin.cJames Booth2015-01-181-0/+8
|/
* Added utf8_display_lenJames Booth2015-01-171-0/+1
|
* Simplified autocompleters and command historyJames Booth2015-01-161-1/+1
|
* fgets: buffer sizePeter Vilim2015-01-071-0/+5
|
* Follow symlinks for profrc and accounts filesJames Booth2014-10-261-0/+2
|
* Added license exemption for OpenSSL to source headersJames Booth2014-08-241-0/+12
|
* Renamed generate_unique_id -> create_unique_idJames Booth2014-06-151-1/+1
|
* Renamed sha1 functions to avoid naming clashesJames Booth2014-06-151-1/+1
|
* Fixed define for g_hash_table_contains (glib < 2.32)James Booth2014-05-221-1/+1
|
* Added g_hash_table_contains for glib < 2.32James Booth2014-05-221-0/+2
|
* Added glib g_hash_table_add for glib < 2.32James Booth2014-05-221-0/+6
|
* Added backwards compatible g_list_free_full for glib < 2.28James Booth2014-05-211-0/+2
|
* Changed to use gnutls instead of openssl for sha1 hashingJames Booth2014-05-011-0/+1
|
* Updated copyrightJames Booth2014-03-091-1/+1
|
* generate_unique_id allows prefixJames Booth2014-01-251-1/+1
|
* Removed unused encode.xmlJames Booth2014-01-211-1/+0
|
* Removed limit on number of windows, WIPJames Booth2013-08-271-1/+1
|