OSDN Git Service

rename all "support" parameters; avoid new compiler warnings
[android-x86/external-parted.git] / libparted / labels / mac.c
index 3ec8390..e89dc20 100644 (file)
@@ -1,6 +1,6 @@
 /*
     libparted - a library for manipulating disk partitions
-    Copyright (C) 2000, 2002, 2004, 2007-2008 Free Software Foundation, Inc.
+    Copyright (C) 2000, 2002, 2004, 2007-2009 Free Software Foundation, Inc.
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -21,6 +21,7 @@
 #include <parted/parted.h>
 #include <parted/debug.h>
 #include <parted/endian.h>
+#include <stdbool.h>
 
 #if ENABLE_NLS
 #  include <libintl.h>
@@ -1563,6 +1564,13 @@ mac_get_max_primary_partition_count (const PedDisk* disk)
                - mac_disk_data->free_part_entry_count + 1;
 }
 
+static bool
+mac_get_max_supported_partition_count (const PedDisk* disk, int *max_n)
+{
+       *max_n = 65536;
+       return true;
+}
+
 static PedDiskOps mac_disk_ops = {
        probe:                  mac_probe,
 #ifndef DISCOVER_ONLY
@@ -1596,7 +1604,9 @@ static PedDiskOps mac_disk_ops = {
 
        alloc_metadata:         mac_alloc_metadata,
        get_max_primary_partition_count:
-                               mac_get_max_primary_partition_count
+                               mac_get_max_primary_partition_count,
+       get_max_supported_partition_count:
+                               mac_get_max_supported_partition_count
 };
 
 static PedDiskType mac_disk_type = {