[vala] glib-2.0: add GLib.FileUtils.get/set_data methods
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] glib-2.0: add GLib.FileUtils.get/set_data methods
- Date: Thu, 29 Apr 2010 16:44:45 +0000 (UTC)
commit 65991ccc26feda4b15faeb03707123b9795de1df
Author: Evan Nemerson <evan coeus-group com>
Date: Thu Apr 29 08:41:17 2010 -0700
glib-2.0: add GLib.FileUtils.get/set_data methods
vapi/glib-2.0.vapi | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index b864b34..404dc7a 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -2600,6 +2600,10 @@ namespace GLib {
namespace FileUtils {
public static bool get_contents (string filename, out string contents, out size_t length = null) throws FileError;
public static bool set_contents (string filename, string contents, ssize_t length = -1) throws FileError;
+ [CCode (cname = "g_file_get_contents")]
+ public static bool get_data (string filename, [CCode (type = "gchar**", array_length_type = "size_t")] out uint8[] contents) throws FileError;
+ [CCode (cname = "g_file_set_contents")]
+ public static bool set_data (string filename, [CCode (type = "const char*", array_length_type = "size_t")] uint8[] contents) throws FileError;
public static bool test (string filename, FileTest test);
public static int open_tmp (string tmpl, out string name_used) throws FileError;
public static string read_link (string filename) throws FileError;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]