DAV_FS_URI_MYPROPS,
"executable",
DAV_PROPID_FS_executable,
- 0 /* handled special in dav_fs_is_writeable */
+ 0 /* handled special in dav_fs_is_writable */
},
{ 0 } /* sentinel */
** exist. Just bail for this case.
**
** Even though we state that the FS properties are not defined, the
- ** client cannot store dead values -- we deny that thru the is_writeable
+ ** client cannot store dead values -- we deny that thru the is_writable
** hook function.
*/
if (!resource->exists)
return which;
}
-static int dav_fs_is_writeable(const dav_resource *resource, int propid)
+static int dav_fs_is_writable(const dav_resource *resource, int propid)
{
const dav_liveprop_spec *info;
#ifndef WIN32
- /* this property is not usable (writeable) on the Win32 platform */
+ /* this property is not usable (writable) on the Win32 platform */
if (propid == DAV_PROPID_FS_executable && !resource->collection)
return 1;
#endif
static const dav_hooks_liveprop dav_hooks_liveprop_fs =
{
dav_fs_insert_prop,
- dav_fs_is_writeable,
+ dav_fs_is_writable,
dav_fs_namespace_uris,
dav_fs_patch_validate,
dav_fs_patch_exec,
/* Prop DB errors */
#define DAV_ERR_PROP_BAD_MAJOR 200 /* major version was wrong */
#define DAV_ERR_PROP_READONLY 201 /* prop is read-only */
-#define DAV_ERR_PROP_NO_DATABASE 202 /* writeable db not avail */
+#define DAV_ERR_PROP_NO_DATABASE 202 /* writable db not avail */
#define DAV_ERR_PROP_NOT_FOUND 203 /* prop not found */
#define DAV_ERR_PROP_BAD_LOCKDB 204 /* could not open lockdb */
#define DAV_ERR_PROP_OPENING 205 /* problem opening propdb */
ap_text_header *phdr);
/*
- ** Determine whether a given property is writeable.
+ ** Determine whether a given property is writable.
**
** ### we may want a different semantic. i.e. maybe it should be
** ### "can we write <value> into this property?"
**
** Returns 1 if the live property can be written, 0 if read-only.
*/
- int (*is_writeable)(const dav_resource *resource, int propid);
+ int (*is_writable)(const dav_resource *resource, int propid);
/*
** This member defines the set of namespace URIs that the provider
int propid; /* provider-local property ID */
- int is_writable; /* is the property writeable? */
+ int is_writable; /* is the property writable? */
} dav_liveprop_spec;
#include "apr_strings.h"
/*
-** There is some rough support for writeable DAV:getcontenttype and
+** There is some rough support for writable DAV:getcontenttype and
** DAV:getcontentlanguage properties. If this #define is (1), then
** this support is disabled.
**
** values for the response.
** (Handling the PUT would not be difficult, though)
*/
-#define DAV_DISABLE_WRITEABLE_PROPS 1
+#define DAV_DISABLE_WRITABLE_PROPS 1
#define DAV_GDBM_NS_KEY "METADATA"
#define DAV_GDBM_NS_KEY_LEN 8
** Check the liveprop provider (if this is a provider-defined prop)
*/
if (priv->provider != NULL) {
- return (*priv->provider->is_writeable)(propdb->resource, propid);
+ return (*priv->provider->is_writable)(propdb->resource, propid);
}
/* these are defined as read-only */
if (propid == DAV_PROPID_CORE_lockdiscovery
-#if DAV_DISABLE_WRITEABLE_PROPS
+#if DAV_DISABLE_WRITABLE_PROPS
|| propid == DAV_PROPID_CORE_getcontenttype
|| propid == DAV_PROPID_CORE_getcontentlanguage
#endif
/*
** The property is supposed to be stored into the dead-property
- ** database. Make sure the thing is truly open (and writeable).
+ ** database. Make sure the thing is truly open (and writable).
*/
if (propdb->deferred
&& (ctx->err = dav_really_open_db(propdb, 0 /* ro */)) != NULL) {
int operation, void **context,
int *defer_to_dead)
{
- /* all of our writeable props go in the dead prop database */
+ /* all of our writable props go in the dead prop database */
*defer_to_dead = 1;
return NULL;