| Top |
EActivity * e_file_replace_contents_async (,GFile *fileconst,gchar *contents,gsize lengthconst,gchar *etag,gboolean make_backup,GFileCreateFlags flags,GAsyncReadyCallback callback);gpointer user_data
This is a wrapper for g_file_replace_contents_async()g_file_replace_contents_async()
file |
input |
|
contents |
string of contents to replace the file with |
|
length |
the length of |
|
etag |
a new entity tag for the |
|
make_backup |
|
|
flags |
a set of |
|
callback |
a |
|
user_data |
the data to pass to the callback function |
gboolean e_file_replace_contents_finish (,GFile *file,GAsyncResult *result,gchar **new_etag);GError **error
Finishes an asynchronous replace of the given file
. See
e_file_replace_contents_async(). Sets new_etag
to the new entity
tag for the document, if present. Free it with g_free()