summaryrefslogtreecommitdiff
path: root/libpurple/util.h
Commit message (Collapse)AuthorAgeFilesLines
* Oops, I forgot to save this before committing.Paul Aurich2010-04-171-1/+2
|
* Add network listen functions that accept a family argument (AF_INET(6?)).Paul Aurich2010-04-171-0/+22
| | | | | | | These allow code to portably support IPv6 for listeners (mostly file transfers and Bonjour). Callers should use the purple_socket_speaks_ipv4 to determine whether they need two sockets or just an IPv6 one. I used GIO's g_socket_speaks_ipv4 as the inspiration for that.
* Remove a bunch of old references to prpl-oscarMark Doliner2010-03-291-0/+4
|
* Combine the three purple_unescape_text()s into one.Paul Aurich2010-02-101-6/+23
| | | | | | purple_unescape_text is like purple_unescape_html, except better. I say better, but really, what I should say is "libxml2 BLOWS", because of its crazy way of leaving attributes "unescaped".
* propagate from branch 'im.pidgin.pidgin' (head ↵Paul Aurich2010-02-101-2/+4
|\ | | | | | | | | | | 7a5f2bd8adbbf9031f2506d22f9cf93093a94d3c) to branch 'im.pidgin.pidgin.next.minor' (head a6719c36e51f6a4e80bbba4bf6aa7c455b195fb2)
| * Might as well make this comment accurate.Paul Aurich2010-02-101-2/+4
| |
* | Include signals.h to provide PurpleCallback. I guess all the other placesMichael Ruprecht2009-10-221-0/+1
| | | | | | | | util.h was included after signals.h, directly or indirectly.
* | Broke out the generation of random UUIDs to its own functionMarcus Lundblad2009-10-131-0/+8
|/ | | | Adapted the Google group chat functionallity to use the new function
* Fix a bunch of doxygen warnings.Paul Aurich2009-08-301-1/+7
|
* Hmm, g_unichar_isgraph is too restrictive in the characters allowed (it ↵Paul Aurich2009-08-271-5/+3
| | | | munges \t). Change purple_utf8_strip_unprintables to simply remove ASCII control characters instead.
* Add purple_ipv6_address_is_valid; guess what it does?Paul Aurich2009-07-111-0/+23
|
* ChangeLog.API and @since mark purple_markup_escape_text.Etan Reisner2009-07-071-0/+2
|
* Create a purple_markup_escape_text() function and use it in one placeMark Doliner2009-07-061-0/+11
| | | | | | | | | | | | | | | | | | | | | | in oscar. This function is identical to glib's g_markup_escape_text() except that it does not replace ' with ' ' is not a valid HTML entity in HTML 4, and IE7 displays it as the raw characters and not as an apostrophe. gtk of course displays it as an apostrophe, but gtk seems to have no problems with unescaped apostrophes I really don't know why g_markup_escape_text() escapes this character. So this change should not affect Pidgin at all, and it should help any user of libpurple who displays our HTML in IE (or possibly other web browsers--I'm not sure how webkit handles ') Are people ok with this change? We should probably change a lot of other places to use this function instead of the glib one. Basically anything that converts text to html should use this. I think anything that escapes XML should continue using g_markup_escape_text(). And entry_key_pressed() in Finch can be changed to use this instead of g_markup_escape_text() and purple_strreplace()
* @since!Paul Aurich2009-06-041-0/+1
|
* Add purple_utf8_strip_unprintables and use it on outgoing XMPP messages.Paul Aurich2009-06-031-0/+15
| | | | | We will no longer send messages which contain entities considered invalid in XML 1.0 (i.e.  and other ASCII control characters). Closes #5768.
* Add a utlity function purple_markup_is_rtlSadrul Habib Chowdhury2009-06-031-0/+10
| | | | Use this function to check for RTL text in messages. Fixes #9261.
* Remove reference to purple_escape_html, which stuck around for only a few ↵Paul Aurich2009-06-031-2/+0
| | | | minutes before I went to g_markup_escape_text.
* Add yet another URL fetching function. This one takes an account as aJohn Bailey2009-05-301-1/+25
| | | | | | | | | | | parameter. It's needed because the Yahoo 16 code uses URL fetching as part of its login process, and without giving the account to purple_proxy_connect (which wass called in purple_util_fetch_url_request_len), we ignore account- specific proxy configurations. This is a bad thing, as evidenced by Adium's ticket 12231. In adding this function, I deprecated purple_util_fetch_url_request_len and made it a shell that calls this new function with a NULL account parameter. This maintains the previous behavior without a mountain of duplicated code.
* Sadrul pointed me at g_markup_escape_text, thanks!Paul Aurich2009-05-021-15/+0
|
* Escape all the values when appending them to the Entity Caps verification str.Paul Aurich2009-05-021-1/+19
| | | | | | | | | | xmlnode_get_attrib and xmlnode_get_data unescape what they return. Thanks to Tobias and Waqas. This will still fail to validate if the other side uses entity codes (or uses other entities unnecessarily), but that should be dealt with as a hash failure instead of a collision. (10:12:11) Tobias: [18:48:43] <waqas> <identity category='client' type='pc' name='SomeClient'/><feature var='http://jabber.org/protocol/muc'/> turns into 'client/pc//SomeClient<http://jabber.org/protocol/caps<' but so does <identity category='client' type='pc' name='SomeClient&lt;http://jabber.org/protocol/caps'/>, which is a collision, right?
* Add PURPLE to the media header sentinels and reorder includes to fix ↵Paul Aurich2009-04-051-6/+9
| | | | building gf2
* propagate from branch 'im.pidgin.pidgin.next.minor' (head ↵Elliott Sales de Andrade2009-03-021-1/+1
|\ | | | | | | | | | | d24c4a9d28f21eaa47bd76e50ed31053733edcb1) to branch 'im.pidgin.pidgin' (head b60aeb4ba1b0a2368dfeed19db8cbeb808769d1f)
| * I'm pretty sure this is what we meant here.Etan Reisner2009-02-121-1/+1
| |
* | Add @since 2.6.0 doxygen comments to some of our new functions, andMark Doliner2009-01-261-0/+1
| | | | | | | | try to make the formatting of our comments a little more uniform
* | Patch from Paul Aurich to add purple_strequal to help readability and ↵Paul Aurich2009-01-061-0/+14
|/ | | | | | | | | | simplicity of code. Ie, don't need to negate the value of strcmp, since this does a strcmp and does the negation for us closes #7790 committer: Gary Kramlich <grim@reaperworld.com>
* disapproval of revision 'd1b14f50b2dda78576543959a24618e97acfa66d'Elliott Sales de Andrade2008-08-151-15/+0
|
* Fix compatibility with glib < 2.4 for g_markup_printf_escaped. untested.Stu Tomlinson2008-08-151-0/+15
|
* Add temporary purple_util_fetch_url_request_len and purple_util_fetch_url_lenDaniel Atallah2008-08-081-0/+39
| | | | | | | to enable restricting the length of HTTP downloads. Set a maximum size of 128kB to the UPnP-related downloads. Thanks to Andrew Hunt and Christian Grothoff for discovering the issue and providing a solution.
* Add purple_get_host_name to get the hostname of the machine.Sadrul Habib Chowdhury2008-07-131-0/+8
| | | | | This is a replacement for g_get_host_name in glib2.8+. Thanks to Phil Hannent and Marcus Lundblad for the initial patch. References #5627.
* Use "email" and "Email" consistently. This is potentially controversial,Richard Laager2008-05-251-1/+1
| | | | | but here it is. For reference, Google and Yahoo call it "email" and dropping the hyphen on no-longer-new words is apparently standard practice.
* propagate from branch 'im.pidgin.pidgin.custom_smiley' (head ↵Sadrul Habib Chowdhury2008-05-121-1/+1
|\ | | | | | | | | | | 9ff3135a6478cd03be8a6e501d9297cf3830a866) to branch 'im.pidgin.pidgin.next.minor' (head 0f8e81fcea751b16d89ae9b7f2fe2fc723ba089a)
| * Assorted cleanups, mostly to the Doxygen comments. I added a few missingRichard Laager2008-05-111-1/+1
| | | | | | | | @since tags.
* | propagate from branch 'im.pidgin.pidgin' (head ↵Sadrul Habib Chowdhury2008-04-281-0/+5
|\ \ | |/ |/| | | | | | | e4822ac43f3805f2ec0b9cd8dfbd37c9b34deab9) to branch 'im.pidgin.pidgin.custom_smiley' (head bc6dfe40f4969c30badd3de45f08ba205b8d0c2b)
| * propagate from branch 'im.pidgin.pidgin' (head ↵Sadrul Habib Chowdhury2008-03-051-0/+9
| |\ | | | | | | | | | | | | | | | 04cfb0cf0974e7b6b10ed513f82384958e7a6887) to branch 'im.pidgin.pidgin.custom_smiley' (head ab437cdb59435f8f8694eef58db2af584c556602)
| * | Apply the custom smiley patches from #1187, from Jorge Villase?o (Masca) andSadrul Habib Chowdhury2008-02-191-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mauro S?rgio Ferreira Brasil. I have not applied the bits on MSN yet. I will have to look at it later, but I would rather someone else more familiar with the MSN code look at it first. I changed some bits of the applied patch (whitespacing, camelcasing etc.), and the bit that required a major version bump (in gtkthemes.h). There are a few more things that need to be done for this to be merged back to i.p.p.
* | | Super minor documentation improvementMark Doliner2008-04-161-3/+7
| | |
* | | Documentation changesMark Doliner2008-04-041-2/+5
| |/ |/|
* | Use connect server as FQDN for SASL auth except when it is an IP address.Stu Tomlinson2008-02-261-0/+9
|/ | | | References #699.
* Utility functions to set and format song information. Closes #4398.Sadrul Habib Chowdhury2008-01-051-0/+25
|
* Update the changelogs, and the @since doxy-tags for new functions.Sadrul Habib Chowdhury2007-12-181-0/+1
|
* Create a purple_gai_strerror() function similar to g_str_error() whichMark Doliner2007-12-181-0/+11
| | | | | calls gai_strerror() then tries to convert the result into UTF-8. I believe this fixes #3003
* Add and call a purple_util_uninit() to free user_dir and customer_home_dirRichard Laager2007-10-151-0/+21
| | | | at shutdown. Fixes #3132
* purple_util_write_data_to_file_absolute() should take a signed argument for ↵Daniel Atallah2007-10-091-1/+1
| | | | the size as -1 is used to indicate that the string is nul-delimited. This resolves CID 330.
* applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defaRichard Laager2007-09-281-2/+3
| | | | through 133f2968e112c003cac1320d1ca0128d5da74066
* The FSF changed its address a while ago; our files were out of date.John Bailey2007-09-081-1/+1
| | | | This is a quick update done with a for loop, find, and sed.
* Fix purple_util_write_data_to_file signature.Daniel Atallah2007-08-281-1/+1
|
* propagate from branch 'im.pidgin.pidgin' (head ↵William Ehlhardt2007-08-281-1/+1
|\ | | | | | | | | | | 0c99d79b617e9687302edb80e0eca33f01cfe708) to branch 'im.pidgin.soc.2007.certmgr' (head 4c14c89dcf02c5a4896ab35c2cd5f3a828eaf596)
| * Fix some conversion warnings about using negative values with unsigned ↵Daniel Atallah2007-08-241-2/+2
| | | | | | | | types. There are more, but these were easy fixes. You may think that I'm changing the API, but I'm really not - it was just wrong.
* | - Add purple_util_write_data_to_file_absolute; glib'ssoc.2007.certmgrWilliam Ehlhardt2007-08-251-0/+20
|/ | | | | g_file_set_contents is a post-2.0 addition. - Change ssl-gnutls plugin to use it
* Remove static meify from yahoochat.c and replace use of it withWill Thompson2007-06-291-2/+3
| | | | | purple_message_meify, to which it was identical. Clarify the documentation of the latter slightly.