[gnome-format] Add vapi file for last commit.
- From: Michael Kanis <mkanis src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-format] Add vapi file for last commit.
- Date: Sat, 2 May 2009 04:14:05 -0400 (EDT)
commit 412af1020733768ac6c661c275a7847c2536a9f2
Author: Michael Kanis <mkanis gmx de>
Date: Sat May 2 10:06:30 2009 +0200
Add vapi file for last commit.
---
vapi/parted.vapi | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++
vapi/partition.vapi | 5 ---
2 files changed, 88 insertions(+), 5 deletions(-)
diff --git a/vapi/parted.vapi b/vapi/parted.vapi
new file mode 100644
index 0000000..2435332
--- /dev/null
+++ b/vapi/parted.vapi
@@ -0,0 +1,88 @@
+[CCode (cheader_filename = "parted/parted.h")]
+namespace Ped {
+
+ [CCode (unref_function = "ped_constraint_destroy")]
+ public class Constraint {
+ [CCode (cname = "ped_constraint_any")]
+ public Constraint.any(Device device);
+ }
+
+ [CCode (unref_function = "ped_device_destroy")]
+ public class Device {
+ public int sector_size;
+ public Sector length;
+
+ [CCode (cname = "ped_device_get")]
+ public Device (string name);
+ }
+
+ [CCode (unref_function = "ped_disk_destroy")]
+ public class Disk {
+ [CCode (cname = "ped_disk_new_fresh")]
+ public Disk(Device device, DiskType disk_type);
+
+ [CCode (cname = "ped_disk_new")]
+ public Disk.from_device(Device device);
+
+ public int get_last_partition_num();
+ public int delete_all();
+ public int add_partition(Partition part, Constraint constraint);
+ public int commit_to_dev();
+ public int commit_to_os();
+ }
+
+ [CCode (unref_function = "")]
+ public class DiskType {
+ [CCode (cname = "ped_disk_type_get")]
+ public DiskType(string name);
+ }
+
+ [SimpleType]
+ [IntegerType]
+ public struct Sector {
+ }
+
+ [CCode (unref_function = "")]
+ public class Partition {
+ public Geometry geom;
+
+ [CCode (cname = "ped_partition_new")]
+ public Partition(Disk disk,
+ PartitionType type,
+ FileSystemType fs_type,
+ Sector start,
+ Sector end);
+ }
+
+ [CCode (cprefix = "PED_PARTITION_", cname = "_PedPartitionType")]
+ public enum PartitionType {
+ NORMAL,
+ LOGICAL,
+ EXTENDED,
+ FREESPACE,
+ METADATA,
+ PROTECTED;
+ }
+
+
+ [CCode (unref_function = "")]
+ public class FileSystem {
+ [CCode (cname = "ped_file_system_create")]
+ public FileSystem.create(Geometry *geom,
+ FileSystemType type,
+ Timer? timer);
+ }
+
+ [CCode (unref_function = "")]
+ public class FileSystemType {
+ [CCode (cname="ped_file_system_type_get")]
+ public FileSystemType(string name);
+ }
+
+ public class Geometry {
+ }
+
+ public class Timer {
+ }
+}
+
diff --git a/vapi/partition.vapi b/vapi/partition.vapi
deleted file mode 100644
index 177a3fd..0000000
--- a/vapi/partition.vapi
+++ /dev/null
@@ -1,5 +0,0 @@
-namespace GnomeFormat {
- [CCode (cprefix = "", lower_case_cprefix = "", cheader_filename = "gnome-format-partition.h")]
- public void create_partition(string block_dev, string fs) throws GLib.Error;
-}
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]