lintian doesn't like orphan packages with uploaders...
[debian/amanda] / device-src / property.c
index a2f4c57b98ca8e2e447678ae2456aad5215b9d0d..2aff6db2a71d4bfb1071a921bdb813d539b8fc71 100644 (file)
@@ -1,9 +1,10 @@
 /*
- * Copyright (c) 2007,2008,2009 Zmanda, Inc.  All Rights Reserved.
+ * Copyright (c) 2007-2012 Zmanda, Inc.  All Rights Reserved.
  *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 as published
- * by the Free Software Foundation.
+ * 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 the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
@@ -96,23 +97,6 @@ GType media_access_mode_get_type (void) {
     return type;
 }
 
-/* Copy function for GBoxed QualifiedSize. */
-static gpointer qualified_size_copy(gpointer source) {
-    gpointer rval = g_new(QualifiedSize, 1);
-    memcpy(rval, source, sizeof(QualifiedSize));
-    return rval;
-}
-
-GType qualified_size_get_type (void) {
-    static GType type = 0;
-    if (G_UNLIKELY(type == 0)) {
-        type = g_boxed_type_register_static ("QualifiedSize",
-                                             qualified_size_copy,
-                                             free);
-    }
-    return type;
-}
-
 /******
  * Property registration and lookup
  */
@@ -248,18 +232,21 @@ void device_property_init(void) {
     device_property_fill_and_register(&device_property_full_deletion,
                                      G_TYPE_BOOLEAN, "full_deletion",
       "Does this device support recycling the entire volume?" );
-    device_property_fill_and_register(&device_property_free_space,
-                                      QUALIFIED_SIZE_TYPE, "free_space",
-      "Remaining capacity of the device.");
     device_property_fill_and_register(&device_property_max_volume_usage,
                                       G_TYPE_UINT64, "max_volume_usage",
       "Artificial limit to data written to volume.");
+    device_property_fill_and_register(&device_property_enforce_max_volume_usage,
+                                      G_TYPE_BOOLEAN, "enforce_max_volume_usage",
+      "Does max_volume_usage enabled?");
     device_property_fill_and_register(&device_property_verbose,
                                      G_TYPE_BOOLEAN, "verbose",
        "Should the device produce verbose output?");
     device_property_fill_and_register(&device_property_comment,
                                      G_TYPE_STRING, "comment",
        "User-specified comment for the device");
+    device_property_fill_and_register(&device_property_leom,
+                                     G_TYPE_BOOLEAN, "leom",
+       "Does this device support LEOM?");
 }
 
 DevicePropertyBase device_property_concurrency;
@@ -275,7 +262,8 @@ DevicePropertyBase device_property_canonical_name;
 DevicePropertyBase device_property_medium_access_type;
 DevicePropertyBase device_property_partial_deletion;
 DevicePropertyBase device_property_full_deletion;
-DevicePropertyBase device_property_free_space;
 DevicePropertyBase device_property_max_volume_usage;
-DevicePropertyBase device_property_verbose;
+DevicePropertyBase device_property_enforce_max_volume_usage;
 DevicePropertyBase device_property_comment;
+DevicePropertyBase device_property_leom;
+DevicePropertyBase device_property_verbose;