Apache HTTPD
Classes | Macros | Typedefs | Enumerations | Functions | Variables
props.c File Reference
#include "apr.h"
#include "apr_strings.h"
#include "apr_want.h"
#include "mod_dav.h"
#include "http_log.h"
#include "http_request.h"

Go to the source code of this file.

Classes

struct  dav_propdb
 
struct  dav_rollback_item
 

Macros

#define APR_WANT_STDIO
 
#define APR_WANT_BYTEFUNC
 
#define DAV_DISABLE_WRITABLE_PROPS   1
 
#define DAV_EMPTY_VALUE   "\0" /* TWO null terms */
 
#define DAV_PROP_ELEMENT   "mod_dav-element"
 

Typedefs

typedef struct dav_rollback_item dav_rollback_item
 

Enumerations

enum  {
  DAV_PROPID_CORE_getcontenttype = 10000 , DAV_PROPID_CORE_getcontentlanguage , DAV_PROPID_CORE_lockdiscovery , DAV_PROPID_CORE_supportedlock ,
  DAV_PROPID_CORE_UNKNOWN
}
 

Functions

static int dav_find_liveprop_provider (dav_propdb *propdb, const char *ns_uri, const char *propname, const dav_hooks_liveprop **provider)
 
static void dav_find_liveprop (dav_propdb *propdb, apr_xml_elem *elem)
 
static int dav_rw_liveprop (dav_propdb *propdb, dav_elem_private *priv)
 
static void dav_do_prop_subreq (dav_propdb *propdb)
 
static dav_errordav_insert_coreprop (dav_propdb *propdb, int propid, const char *name, dav_prop_insert what, apr_text_header *phdr, dav_prop_insert *inserted)
 
static dav_errordav_insert_liveprop (dav_propdb *propdb, const apr_xml_elem *elem, dav_prop_insert what, apr_text_header *phdr, dav_prop_insert *inserted)
 
static void dav_output_prop_name (apr_pool_t *pool, const dav_prop_name *name, dav_xmlns_info *xi, apr_text_header *phdr)
 
static void dav_insert_xmlns (apr_pool_t *p, const char *pre_prefix, long ns, const char *ns_uri, apr_text_header *phdr)
 
static dav_errordav_really_open_db (dav_propdb *propdb, int ro)
 
dav_errordav_open_propdb (request_rec *r, dav_lockdb *lockdb, const dav_resource *resource, int flags, apr_array_header_t *ns_xlate, dav_propdb **p_propdb)
 
dav_errordav_popen_propdb (apr_pool_t *p, request_rec *r, dav_lockdb *lockdb, const dav_resource *resource, int flags, apr_array_header_t *ns_xlate, dav_propdb **p_propdb)
 
void dav_close_propdb (dav_propdb *propdb)
 
dav_get_props_result dav_get_allprops (dav_propdb *propdb, dav_prop_insert what)
 
dav_get_props_result dav_get_props (dav_propdb *propdb, apr_xml_doc *doc)
 
void dav_get_liveprop_supported (dav_propdb *propdb, const char *ns_uri, const char *propname, apr_text_header *body)
 
dav_liveprop_elemdav_get_liveprop_element (const dav_resource *resource)
 
void dav_prop_validate (dav_prop_ctx *ctx)
 
void dav_prop_exec (dav_prop_ctx *ctx)
 
void dav_prop_commit (dav_prop_ctx *ctx)
 
void dav_prop_rollback (dav_prop_ctx *ctx)
 

Variables

static const char *const dav_core_props []
 

Macro Definition Documentation

◆ APR_WANT_BYTEFUNC

#define APR_WANT_BYTEFUNC

Definition at line 147 of file props.c.

◆ APR_WANT_STDIO

#define APR_WANT_STDIO

Definition at line 146 of file props.c.

◆ DAV_DISABLE_WRITABLE_PROPS

#define DAV_DISABLE_WRITABLE_PROPS   1

Definition at line 166 of file props.c.

◆ DAV_EMPTY_VALUE

#define DAV_EMPTY_VALUE   "\0" /* TWO null terms */

Definition at line 168 of file props.c.

◆ DAV_PROP_ELEMENT

#define DAV_PROP_ELEMENT   "mod_dav-element"

Definition at line 170 of file props.c.

Typedef Documentation

◆ dav_rollback_item

Enumeration Type Documentation

◆ anonymous enum

Enumerator
DAV_PROPID_CORE_getcontenttype 
DAV_PROPID_CORE_getcontentlanguage 
DAV_PROPID_CORE_lockdiscovery 
DAV_PROPID_CORE_supportedlock 
DAV_PROPID_CORE_UNKNOWN 

Definition at line 208 of file props.c.

Function Documentation

◆ dav_do_prop_subreq()

static void dav_do_prop_subreq ( dav_propdb propdb)
static

Definition at line 326 of file props.c.

◆ dav_find_liveprop()

static void dav_find_liveprop ( dav_propdb propdb,
apr_xml_elem elem 
)
static

< no namespace for this elem/attr

< namespace ID for "DAV:"

Definition at line 264 of file props.c.

◆ dav_find_liveprop_provider()

static int dav_find_liveprop_provider ( dav_propdb propdb,
const char ns_uri,
const char propname,
const dav_hooks_liveprop **  provider 
)
static

Definition at line 229 of file props.c.

◆ dav_insert_coreprop()

static dav_error * dav_insert_coreprop ( dav_propdb propdb,
int  propid,
const char name,
dav_prop_insert  what,
apr_text_header phdr,
dav_prop_insert inserted 
)
static

Definition at line 338 of file props.c.

◆ dav_insert_liveprop()

static dav_error * dav_insert_liveprop ( dav_propdb propdb,
const apr_xml_elem elem,
dav_prop_insert  what,
apr_text_header phdr,
dav_prop_insert inserted 
)
static

Definition at line 454 of file props.c.

◆ dav_insert_xmlns()

static void dav_insert_xmlns ( apr_pool_t p,
const char pre_prefix,
long  ns,
const char ns_uri,
apr_text_header phdr 
)
static

Definition at line 495 of file props.c.

◆ dav_output_prop_name()

static void dav_output_prop_name ( apr_pool_t pool,
const dav_prop_name name,
dav_xmlns_info xi,
apr_text_header phdr 
)
static

Definition at line 477 of file props.c.

◆ dav_really_open_db()

static dav_error * dav_really_open_db ( dav_propdb propdb,
int  ro 
)
static

Definition at line 504 of file props.c.

◆ dav_rw_liveprop()

static int dav_rw_liveprop ( dav_propdb propdb,
dav_elem_private priv 
)
static

Definition at line 288 of file props.c.

Variable Documentation

◆ dav_core_props

const char* const dav_core_props[]
static
Initial value:
=
{
"getcontenttype",
"getcontentlanguage",
"lockdiscovery",
"supportedlock",
}
return NULL
Definition mod_so.c:359

Definition at line 199 of file props.c.