comparison libpurple/util.h @ 19536:a77432fe2f3b

merge of '5d55a7b785e21cf51b586dd442481032b187c6c6' and '98084aa63392b62af11d017ae863f4cb2f43cf83'
author Richard Laager <rlaager@wiktel.com>
date Thu, 30 Aug 2007 00:09:47 +0000
parents 6e4b16081dff
children 44b4e8bd759b 7f8cf35fc99b
comparison
equal deleted inserted replaced
19406:7c84cbb57972 19536:a77432fe2f3b
584 * null-terminated you can pass in -1. 584 * null-terminated you can pass in -1.
585 * 585 *
586 * @return TRUE if the file was written successfully. FALSE otherwise. 586 * @return TRUE if the file was written successfully. FALSE otherwise.
587 */ 587 */
588 gboolean purple_util_write_data_to_file(const char *filename, const char *data, 588 gboolean purple_util_write_data_to_file(const char *filename, const char *data,
589 size_t size); 589 gssize size);
590
591 /**
592 * Write data to a file using the absolute path.
593 *
594 * This exists for Glib backwards compatibility reasons.
595 *
596 * @param filename_full Filename to write to
597 * @param data A null-terminated string of data to write.
598 * @param size The size of the data to save. If data is
599 * null-terminated you can pass in -1.
600 *
601 * @return TRUE if the file was written successfully. FALSE otherwise.
602 *
603 * @todo Remove this function (use g_file_set_contents instead) when 3.0.0
604 * rolls around.
605 * @see purple_util_write_data_to_file()
606 *
607 */
608 gboolean
609 purple_util_write_data_to_file_absolute(const char *filename_full, const char *data, size_t size);
590 610
591 /** 611 /**
592 * Read the contents of a given file and parse the results into an 612 * Read the contents of a given file and parse the results into an
593 * xmlnode tree structure. This is intended to be used to read 613 * xmlnode tree structure. This is intended to be used to read
594 * Purple's configuration xml files (prefs.xml, pounces.xml, etc.) 614 * Purple's configuration xml files (prefs.xml, pounces.xml, etc.)
1111 * @param len The message length, or -1 1131 * @param len The message length, or -1
1112 * 1132 *
1113 * @return TRUE if it starts with "/me ", and it has been removed, otherwise 1133 * @return TRUE if it starts with "/me ", and it has been removed, otherwise
1114 * FALSE 1134 * FALSE
1115 */ 1135 */
1116 gboolean purple_message_meify(char *message, size_t len); 1136 gboolean purple_message_meify(char *message, gssize len);
1117 1137
1118 /** 1138 /**
1119 * Removes the underscore characters from a string used identify the mnemonic 1139 * Removes the underscore characters from a string used identify the mnemonic
1120 * character. 1140 * character.
1121 * 1141 *