X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device-src%2Fproperty.h;h=c2ea8f07a82af20ba2e2190da0ec4cd72f376a32;hb=deb1d6847fe421fbab7d1ede23b5a1d8c83027a4;hp=c3816ff0d77786fa2aa94dbc6a21938a2bc5dd8d;hpb=fd48f3e498442f0cbff5f3606c7c403d0566150e;p=debian%2Famanda diff --git a/device-src/property.h b/device-src/property.h index c3816ff..c2ea8f0 100644 --- a/device-src/property.h +++ b/device-src/property.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007,2008,2009 Zmanda, Inc. All Rights Reserved. + * Copyright (c) 2007, 2008, 2009, 2010 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 @@ -23,7 +23,6 @@ #include #include -#include "queueing.h" /* for StreamingRequirement */ /* The properties interface defines define capabilities and other interesting * properties. */ @@ -174,21 +173,6 @@ typedef enum { #define MEDIA_ACCESS_MODE_TYPE media_access_mode_get_type() GType media_access_mode_get_type (void); -/* This one is not a Glibified enum */ -typedef enum { - SIZE_ACCURACY_UNKNOWN, - SIZE_ACCURACY_ESTIMATE, - SIZE_ACCURACY_REAL -} SizeAccuracy; - -/* But SizeAccuracy does apear in this Glibified (gBoxed) struct. */ -typedef struct { - SizeAccuracy accuracy; - guint64 bytes; -} QualifiedSize; -#define QUALIFIED_SIZE_TYPE qualified_size_get_type() -GType qualified_size_get_type (void); - /* Standard property definitions follow. See also property.c. */ /* Value is a ConcurrencyParadigm */ @@ -196,6 +180,11 @@ extern DevicePropertyBase device_property_concurrency; #define PROPERTY_CONCURRENCY (device_property_concurrency.ID) /* Value is a StreamingRequirement */ +typedef enum { + STREAMING_REQUIREMENT_NONE, + STREAMING_REQUIREMENT_DESIRED, + STREAMING_REQUIREMENT_REQUIRED +} StreamingRequirement; extern DevicePropertyBase device_property_streaming; #define PROPERTY_STREAMING (device_property_streaming.ID) @@ -244,10 +233,6 @@ extern DevicePropertyBase device_property_partial_deletion; extern DevicePropertyBase device_property_full_deletion; #define PROPERTY_FULL_DELETION (device_property_full_deletion.ID) -/* Value is a QualifiedSize, though the accuracy may be SIZE_ACCURACY_NONE. */ -extern DevicePropertyBase device_property_free_space; -#define PROPERTY_FREE_SPACE (device_property_free_space.ID) - /* Value is a guint64. On devices that support it, this property will limit the total amount of data written to a volume; attempts to write beyond this point will cause the device to simulate "out of @@ -255,6 +240,11 @@ extern DevicePropertyBase device_property_free_space; extern DevicePropertyBase device_property_max_volume_usage; #define PROPERTY_MAX_VOLUME_USAGE (device_property_max_volume_usage.ID) +/* For devices supporting max_volume_usage this property will be used +disable/enable property max_volume_usage. If FALSE, max_volume_usage +will not be verified while writing to the device */ +extern DevicePropertyBase device_property_enforce_max_volume_usage; +#define PROPERTY_ENFORCE_MAX_VOLUME_USAGE (device_property_enforce_max_volume_usage.ID) /* Should the device produce verbose output? Value is a gboolean. Not * present in all devices. */ extern DevicePropertyBase device_property_verbose; @@ -264,4 +254,8 @@ extern DevicePropertyBase device_property_verbose; extern DevicePropertyBase device_property_comment; #define PROPERTY_COMMENT (device_property_comment.ID) +/* Does this device support LEOM? */ +extern DevicePropertyBase device_property_leom; +#define PROPERTY_LEOM (device_property_leom.ID) + #endif