comparison libpurple/util.h @ 19499:47a2d00ab060

propagate from branch 'im.pidgin.pidgin' (head 1ade185e4daf699979b517ddb70cee47cd15e7ee) to branch 'im.pidgin.soc.2007.certmgr' (head 59d49a3a37747b811f234de6931e7c575bf885fb)
author William Ehlhardt <williamehlhardt@gmail.com>
date Tue, 28 Aug 2007 01:14:08 +0000
parents cc36a5aac908 7589b218f89a
children 6e4b16081dff
comparison
equal deleted inserted replaced
19481:8c00833b9959 19499:47a2d00ab060
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 gssize size); 589 size_t 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.)