Modified: apr/site/trunk/docs/docs/apr-util/apr__buckets_8h.html URL: http://svn.apache.org/viewcvs/apr/site/trunk/docs/docs/apr-util/apr__buckets_8h.html?view=diff&r1=151767&r2=151768 ============================================================================== --- apr/site/trunk/docs/docs/apr-util/apr__buckets_8h.html (original) +++ apr/site/trunk/docs/docs/apr-util/apr__buckets_8h.html Mon Feb 7 15:10:17 2005 @@ -1,11 +1,12 @@ -Apache Portable Runtime Utility Library: include/apr_buckets.h File Reference +Apache Portable Runtime Utility Library: apr_buckets.h File Reference - +
Main Page | Modules | Namespace List | Data Structures | File List | Data Fields | Globals
-

include/apr_buckets.h File Reference

APR-UTIL Buckets/Bucket Brigades. More... +

include/apr_buckets.h File Reference

APR-UTIL Buckets/Bucket Brigades. +More...

#include "apu.h"
#include "apr_network_io.h"
@@ -39,75 +40,75 @@ union  apr_bucket_structs

Defines

-#define APR_BUCKET_BUFF_SIZE   8000 +#define APR_BUCKET_BUFF_SIZE   8000 -#define APR_BRIGADE_CHECK_CONSISTENCY(b) +#define APR_BRIGADE_CHECK_CONSISTENCY(b) -#define APR_BUCKET_CHECK_CONSISTENCY(e) +#define APR_BUCKET_CHECK_CONSISTENCY(e) -#define APR_BRIGADE_SENTINEL(b)   APR_RING_SENTINEL(&(b)->list, apr_bucket, link) +#define APR_BRIGADE_SENTINEL(b)   APR_RING_SENTINEL(&(b)->list, apr_bucket, link) -#define APR_BRIGADE_EMPTY(b)   APR_RING_EMPTY(&(b)->list, apr_bucket, link) +#define APR_BRIGADE_EMPTY(b)   APR_RING_EMPTY(&(b)->list, apr_bucket, link) -#define APR_BRIGADE_FIRST(b)   APR_RING_FIRST(&(b)->list) +#define APR_BRIGADE_FIRST(b)   APR_RING_FIRST(&(b)->list) -#define APR_BRIGADE_LAST(b)   APR_RING_LAST(&(b)->list) +#define APR_BRIGADE_LAST(b)   APR_RING_LAST(&(b)->list) -#define APR_BRIGADE_INSERT_HEAD(b, e) +#define APR_BRIGADE_INSERT_HEAD(b, e) -#define APR_BRIGADE_INSERT_TAIL(b, e) +#define APR_BRIGADE_INSERT_TAIL(b, e) -#define APR_BRIGADE_CONCAT(a, b) +#define APR_BRIGADE_CONCAT(a, b) -#define APR_BRIGADE_PREPEND(a, b) +#define APR_BRIGADE_PREPEND(a, b) -#define APR_BUCKET_INSERT_BEFORE(a, b) +#define APR_BUCKET_INSERT_BEFORE(a, b) -#define APR_BUCKET_INSERT_AFTER(a, b) +#define APR_BUCKET_INSERT_AFTER(a, b) -#define APR_BUCKET_NEXT(e)   APR_RING_NEXT((e), link) +#define APR_BUCKET_NEXT(e)   APR_RING_NEXT((e), link) -#define APR_BUCKET_PREV(e)   APR_RING_PREV((e), link) +#define APR_BUCKET_PREV(e)   APR_RING_PREV((e), link) -#define APR_BUCKET_REMOVE(e)   APR_RING_REMOVE((e), link) +#define APR_BUCKET_REMOVE(e)   APR_RING_REMOVE((e), link) -#define APR_BUCKET_INIT(e)   APR_RING_ELEM_INIT((e), link) +#define APR_BUCKET_INIT(e)   APR_RING_ELEM_INIT((e), link) -#define APR_BUCKET_IS_METADATA(e)   ((e)->type->is_metadata) +#define APR_BUCKET_IS_METADATA(e)   ((e)->type->is_metadata) -#define APR_BUCKET_IS_FLUSH(e)   ((e)->type == &apr_bucket_type_flush) +#define APR_BUCKET_IS_FLUSH(e)   ((e)->type == &apr_bucket_type_flush) -#define APR_BUCKET_IS_EOS(e)   ((e)->type == &apr_bucket_type_eos) +#define APR_BUCKET_IS_EOS(e)   ((e)->type == &apr_bucket_type_eos) -#define APR_BUCKET_IS_FILE(e)   ((e)->type == &apr_bucket_type_file) +#define APR_BUCKET_IS_FILE(e)   ((e)->type == &apr_bucket_type_file) -#define APR_BUCKET_IS_PIPE(e)   ((e)->type == &apr_bucket_type_pipe) +#define APR_BUCKET_IS_PIPE(e)   ((e)->type == &apr_bucket_type_pipe) -#define APR_BUCKET_IS_SOCKET(e)   ((e)->type == &apr_bucket_type_socket) +#define APR_BUCKET_IS_SOCKET(e)   ((e)->type == &apr_bucket_type_socket) -#define APR_BUCKET_IS_HEAP(e)   ((e)->type == &apr_bucket_type_heap) +#define APR_BUCKET_IS_HEAP(e)   ((e)->type == &apr_bucket_type_heap) -#define APR_BUCKET_IS_TRANSIENT(e)   ((e)->type == &apr_bucket_type_transient) +#define APR_BUCKET_IS_TRANSIENT(e)   ((e)->type == &apr_bucket_type_transient) -#define APR_BUCKET_IS_IMMORTAL(e)   ((e)->type == &apr_bucket_type_immortal) +#define APR_BUCKET_IS_IMMORTAL(e)   ((e)->type == &apr_bucket_type_immortal) -#define APR_BUCKET_IS_MMAP(e)   ((e)->type == &apr_bucket_type_mmap) +#define APR_BUCKET_IS_MMAP(e)   ((e)->type == &apr_bucket_type_mmap) -#define APR_BUCKET_IS_POOL(e)   ((e)->type == &apr_bucket_type_pool) +#define APR_BUCKET_IS_POOL(e)   ((e)->type == &apr_bucket_type_pool) -#define APR_BUCKET_ALLOC_SIZE   APR_ALIGN_DEFAULT(2*sizeof(apr_bucket_structs)) +#define APR_BUCKET_ALLOC_SIZE   APR_ALIGN_DEFAULT(2*sizeof(apr_bucket_structs)) -#define apr_bucket_destroy(e) +#define apr_bucket_destroy(e) -#define apr_bucket_delete(e) +#define apr_bucket_delete(e) -#define apr_bucket_read(e, str, len, block)   (e)->type->read(e, str, len, block) +#define apr_bucket_read(e, str, len, block)   (e)->type->read(e, str, len, block) -#define apr_bucket_setaside(e, p)   (e)->type->setaside(e,p) +#define apr_bucket_setaside(e, p)   (e)->type->setaside(e,p) -#define apr_bucket_split(e, point)   (e)->type->split(e, point) +#define apr_bucket_split(e, point)   (e)->type->split(e, point) -#define apr_bucket_copy(e, c)   (e)->type->copy(e, c) +#define apr_bucket_copy(e, c)   (e)->type->copy(e, c)

Typedefs

typedef apr_bucket_brigade apr_bucket_brigade @@ -133,8 +134,8 @@ typedef apr_bucket_structs apr_bucket_structs

Enumerations

-enum  apr_read_type_e { APR_BLOCK_READ, -APR_NONBLOCK_READ +enum  apr_read_type_e { APR_BLOCK_READ, +APR_NONBLOCK_READ }

Functions

@@ -154,7 +155,7 @@ apr_status_t apr_brigade_pflatten (apr_bucket_brigade *bb, char **c, apr_size_t *len, apr_pool_t *pool) -apr_status_t apr_brigade_split_line (apr_bucket_brigade *bbOut, apr_bucket_brigade *bbIn, apr_read_type_e block, apr_off_t maxbytes) +apr_status_t apr_brigade_split_line (apr_bucket_brigade *bbOut, apr_bucket_brigade *bbIn, apr_read_type_e block, apr_off_t maxbytes) apr_status_t apr_brigade_to_iovec (apr_bucket_brigade *b, struct iovec *vec, int *nvec) @@ -174,79 +175,81 @@ apr_status_t apr_brigade_vprintf (apr_bucket_brigade *b, apr_brigade_flush flush, void *ctx, const char *fmt, va_list va) -apr_bucket_alloc_tapr_bucket_alloc_create (apr_pool_t *p) +apr_bucketapr_brigade_insert_file (apr_bucket_brigade *bb, apr_file_t *f, apr_off_t start, apr_off_t len, apr_pool_t *p) -apr_bucket_alloc_tapr_bucket_alloc_create_ex (apr_allocator_t *allocator) +apr_bucket_alloc_tapr_bucket_alloc_create (apr_pool_t *p) -void apr_bucket_alloc_destroy (apr_bucket_alloc_t *list) +apr_bucket_alloc_tapr_bucket_alloc_create_ex (apr_allocator_t *allocator) -void * apr_bucket_alloc (apr_size_t size, apr_bucket_alloc_t *list) +void apr_bucket_alloc_destroy (apr_bucket_alloc_t *list) -void apr_bucket_free (void *block) +void * apr_bucket_alloc (apr_size_t size, apr_bucket_alloc_t *list) -apr_status_t apr_bucket_setaside_noop (apr_bucket *data, apr_pool_t *pool) +void apr_bucket_free (void *block) -apr_status_t apr_bucket_setaside_notimpl (apr_bucket *data, apr_pool_t *pool) +apr_status_t apr_bucket_setaside_noop (apr_bucket *data, apr_pool_t *pool) -apr_status_t apr_bucket_split_notimpl (apr_bucket *data, apr_size_t point) +apr_status_t apr_bucket_setaside_notimpl (apr_bucket *data, apr_pool_t *pool) -apr_status_t apr_bucket_copy_notimpl (apr_bucket *e, apr_bucket **c) +apr_status_t apr_bucket_split_notimpl (apr_bucket *data, apr_size_t point) -void apr_bucket_destroy_noop (void *data) +apr_status_t apr_bucket_copy_notimpl (apr_bucket *e, apr_bucket **c) -apr_status_t apr_bucket_simple_split (apr_bucket *b, apr_size_t point) +void apr_bucket_destroy_noop (void *data) -apr_status_t apr_bucket_simple_copy (apr_bucket *a, apr_bucket **b) +apr_status_t apr_bucket_simple_split (apr_bucket *b, apr_size_t point) -apr_bucketapr_bucket_shared_make (apr_bucket *b, void *data, apr_off_t start, apr_size_t length) +apr_status_t apr_bucket_simple_copy (apr_bucket *a, apr_bucket **b) -int apr_bucket_shared_destroy (void *data) +apr_bucketapr_bucket_shared_make (apr_bucket *b, void *data, apr_off_t start, apr_size_t length) -apr_status_t apr_bucket_shared_split (apr_bucket *b, apr_size_t point) +int apr_bucket_shared_destroy (void *data) -apr_status_t apr_bucket_shared_copy (apr_bucket *a, apr_bucket **b) +apr_status_t apr_bucket_shared_split (apr_bucket *b, apr_size_t point) -apr_bucketapr_bucket_eos_create (apr_bucket_alloc_t *list) +apr_status_t apr_bucket_shared_copy (apr_bucket *a, apr_bucket **b) -apr_bucketapr_bucket_eos_make (apr_bucket *b) +apr_bucketapr_bucket_eos_create (apr_bucket_alloc_t *list) -apr_bucketapr_bucket_flush_create (apr_bucket_alloc_t *list) +apr_bucketapr_bucket_eos_make (apr_bucket *b) -apr_bucketapr_bucket_flush_make (apr_bucket *b) +apr_bucketapr_bucket_flush_create (apr_bucket_alloc_t *list) -apr_bucketapr_bucket_immortal_create (const char *buf, apr_size_t nbyte, apr_bucket_alloc_t *list) +apr_bucketapr_bucket_flush_make (apr_bucket *b) -apr_bucketapr_bucket_immortal_make (apr_bucket *b, const char *buf, apr_size_t nbyte) +apr_bucketapr_bucket_immortal_create (const char *buf, apr_size_t nbyte, apr_bucket_alloc_t *list) -apr_bucketapr_bucket_transient_create (const char *buf, apr_size_t nbyte, apr_bucket_alloc_t *list) +apr_bucketapr_bucket_immortal_make (apr_bucket *b, const char *buf, apr_size_t nbyte) -apr_bucketapr_bucket_transient_make (apr_bucket *b, const char *buf, apr_size_t nbyte) +apr_bucketapr_bucket_transient_create (const char *buf, apr_size_t nbyte, apr_bucket_alloc_t *list) -apr_bucketapr_bucket_heap_create (const char *buf, apr_size_t nbyte, void(*free_func)(void *data), apr_bucket_alloc_t *list) +apr_bucketapr_bucket_transient_make (apr_bucket *b, const char *buf, apr_size_t nbyte) -apr_bucketapr_bucket_heap_make (apr_bucket *b, const char *buf, apr_size_t nbyte, void(*free_func)(void *data)) +apr_bucketapr_bucket_heap_create (const char *buf, apr_size_t nbyte, void(*free_func)(void *data), apr_bucket_alloc_t *list) -apr_bucketapr_bucket_pool_create (const char *buf, apr_size_t length, apr_pool_t *pool, apr_bucket_alloc_t *list) +apr_bucketapr_bucket_heap_make (apr_bucket *b, const char *buf, apr_size_t nbyte, void(*free_func)(void *data)) -apr_bucketapr_bucket_pool_make (apr_bucket *b, const char *buf, apr_size_t length, apr_pool_t *pool) +apr_bucketapr_bucket_pool_create (const char *buf, apr_size_t length, apr_pool_t *pool, apr_bucket_alloc_t *list) -apr_bucketapr_bucket_mmap_create (apr_mmap_t *mm, apr_off_t start, apr_size_t length, apr_bucket_alloc_t *list) +apr_bucketapr_bucket_pool_make (apr_bucket *b, const char *buf, apr_size_t length, apr_pool_t *pool) -apr_bucketapr_bucket_mmap_make (apr_bucket *b, apr_mmap_t *mm, apr_off_t start, apr_size_t length) +apr_bucketapr_bucket_mmap_create (apr_mmap_t *mm, apr_off_t start, apr_size_t length, apr_bucket_alloc_t *list) -apr_bucketapr_bucket_socket_create (apr_socket_t *thissock, apr_bucket_alloc_t *list) +apr_bucketapr_bucket_mmap_make (apr_bucket *b, apr_mmap_t *mm, apr_off_t start, apr_size_t length) -apr_bucketapr_bucket_socket_make (apr_bucket *b, apr_socket_t *thissock) +apr_bucketapr_bucket_socket_create (apr_socket_t *thissock, apr_bucket_alloc_t *list) -apr_bucketapr_bucket_pipe_create (apr_file_t *thispipe, apr_bucket_alloc_t *list) +apr_bucketapr_bucket_socket_make (apr_bucket *b, apr_socket_t *thissock) -apr_bucketapr_bucket_pipe_make (apr_bucket *b, apr_file_t *thispipe) +apr_bucketapr_bucket_pipe_create (apr_file_t *thispipe, apr_bucket_alloc_t *list) -apr_bucketapr_bucket_file_create (apr_file_t *fd, apr_off_t offset, apr_size_t len, apr_pool_t *p, apr_bucket_alloc_t *list) +apr_bucketapr_bucket_pipe_make (apr_bucket *b, apr_file_t *thispipe) -apr_bucketapr_bucket_file_make (apr_bucket *b, apr_file_t *fd, apr_off_t offset, apr_size_t len, apr_pool_t *p) +apr_bucketapr_bucket_file_create (apr_file_t *fd, apr_off_t offset, apr_size_t len, apr_pool_t *p, apr_bucket_alloc_t *list) -apr_status_t apr_bucket_file_enable_mmap (apr_bucket *b, int enabled) +apr_bucketapr_bucket_file_make (apr_bucket *b, apr_file_t *fd, apr_off_t offset, apr_size_t len, apr_pool_t *p) + +apr_status_t apr_bucket_file_enable_mmap (apr_bucket *b, int enabled)

Variables

const apr_bucket_type_t apr_bucket_type_flush @@ -273,8 +276,8 @@

Detailed Description

APR-UTIL Buckets/Bucket Brigades.

-


Generated on Wed Sep 1 21:35:50 2004 for Apache Portable Runtime Utility Library by +
Generated on Mon Feb 7 13:19:18 2005 for Apache Portable Runtime Utility Library by -doxygen 1.3.8
+doxygen 1.3.7
Modified: apr/site/trunk/docs/docs/apr-util/apr__date_8h-source.html URL: http://svn.apache.org/viewcvs/apr/site/trunk/docs/docs/apr-util/apr__date_8h-source.html?view=diff&r1=151767&r2=151768 ============================================================================== --- apr/site/trunk/docs/docs/apr-util/apr__date_8h-source.html (original) +++ apr/site/trunk/docs/docs/apr-util/apr__date_8h-source.html Mon Feb 7 15:10:17 2005 @@ -3,52 +3,53 @@ Apache Portable Runtime Utility Library: include/apr_date.h Source File - +
Main Page | Modules | Namespace List | Data Structures | File List | Data Fields | Globals
-

include/apr_date.h

Go to the documentation of this file.
00001 /* Copyright 2000-2004 The Apache Software Foundation -00002 * -00003 * Licensed under the Apache License, Version 2.0 (the "License"); -00004 * you may not use this file except in compliance with the License. -00005 * You may obtain a copy of the License at -00006 * -00007 * http://www.apache.org/licenses/LICENSE-2.0 -00008 * -00009 * Unless required by applicable law or agreed to in writing, software -00010 * distributed under the License is distributed on an "AS IS" BASIS, -00011 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -00012 * See the License for the specific language governing permissions and -00013 * limitations under the License. -00014 */ -00015 -00016 #ifndef APR_DATE_H -00017 #define APR_DATE_H -00018 -00030 /* -00031 * apr_date.h: prototypes for date parsing utility routines -00032 */ -00033 -00034 #include "apu.h" -00035 #include "apr_time.h" -00036 -00037 #ifdef __cplusplus -00038 extern "C" { -00039 #endif -00040 -00042 #define APR_DATE_BAD ((apr_time_t)0) -00043 -00059 APU_DECLARE(int) apr_date_checkmask(const char *data, const char *mask); -00060 -00072 APU_DECLARE(apr_time_t) apr_date_parse_http(const char *date); -00073 -00098 APU_DECLARE(apr_time_t) apr_date_parse_rfc(const char *date); -00099 -00101 #ifdef __cplusplus -00102 } -00103 #endif -00104 -00105 #endif /* !APR_DATE_H */ -

Generated on Wed Sep 1 21:35:50 2004 for Apache Portable Runtime Utility Library by +

include/apr_date.h

Go to the documentation of this file.
00001 /* Copyright 2000-2005 The Apache Software Foundation or its licensors, as +00002 * applicable. +00003 * +00004 * Licensed under the Apache License, Version 2.0 (the "License"); +00005 * you may not use this file except in compliance with the License. +00006 * You may obtain a copy of the License at +00007 * +00008 * http://www.apache.org/licenses/LICENSE-2.0 +00009 * +00010 * Unless required by applicable law or agreed to in writing, software +00011 * distributed under the License is distributed on an "AS IS" BASIS, +00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +00013 * See the License for the specific language governing permissions and +00014 * limitations under the License. +00015 */ +00016 +00017 #ifndef APR_DATE_H +00018 #define APR_DATE_H +00019 +00031 /* +00032 * apr_date.h: prototypes for date parsing utility routines +00033 */ +00034 +00035 #include "apu.h" +00036 #include "apr_time.h" +00037 +00038 #ifdef __cplusplus +00039 extern "C" { +00040 #endif +00041 +00043 #define APR_DATE_BAD ((apr_time_t)0) +00044 +00060 APU_DECLARE(int) apr_date_checkmask(const char *data, const char *mask); +00061 +00073 APU_DECLARE(apr_time_t) apr_date_parse_http(const char *date); +00074 +00099 APU_DECLARE(apr_time_t) apr_date_parse_rfc(const char *date); +00100 +00102 #ifdef __cplusplus +00103 } +00104 #endif +00105 +00106 #endif /* !APR_DATE_H */ +

Generated on Mon Feb 7 13:19:18 2005 for Apache Portable Runtime Utility Library by -doxygen 1.3.8
+doxygen 1.3.7
Modified: apr/site/trunk/docs/docs/apr-util/apr__date_8h.html URL: http://svn.apache.org/viewcvs/apr/site/trunk/docs/docs/apr-util/apr__date_8h.html?view=diff&r1=151767&r2=151768 ============================================================================== --- apr/site/trunk/docs/docs/apr-util/apr__date_8h.html (original) +++ apr/site/trunk/docs/docs/apr-util/apr__date_8h.html Mon Feb 7 15:10:17 2005 @@ -1,11 +1,12 @@ -Apache Portable Runtime Utility Library: include/apr_date.h File Reference +Apache Portable Runtime Utility Library: apr_date.h File Reference - +
Main Page | Modules | Namespace List | Data Structures | File List | Data Fields | Globals
-

include/apr_date.h File Reference

APR-UTIL date routines. More... +

include/apr_date.h File Reference

APR-UTIL date routines. +More...

#include "apu.h"
#include "apr_time.h"
@@ -27,8 +28,8 @@


Detailed Description

APR-UTIL date routines.

-


Generated on Wed Sep 1 21:35:50 2004 for Apache Portable Runtime Utility Library by +
Generated on Mon Feb 7 13:19:18 2005 for Apache Portable Runtime Utility Library by -doxygen 1.3.8
+doxygen 1.3.7
Added: apr/site/trunk/docs/docs/apr-util/apr__dbd_8h-source.html URL: http://svn.apache.org/viewcvs/apr/site/trunk/docs/docs/apr-util/apr__dbd_8h-source.html?view=auto&rev=151768 ============================================================================== --- apr/site/trunk/docs/docs/apr-util/apr__dbd_8h-source.html (added) +++ apr/site/trunk/docs/docs/apr-util/apr__dbd_8h-source.html Mon Feb 7 15:10:17 2005 @@ -0,0 +1,285 @@ + + +Apache Portable Runtime Utility Library: include/apr_dbd.h Source File + + + +
Main Page | Modules | Namespace List | Data Structures | File List | Data Fields | Globals
+

include/apr_dbd.h

00001 /* Copyright 2000-2005 The Apache Software Foundation or its licensors, as +00002 * applicable. +00003 * +00004 * Licensed under the Apache License, Version 2.0 (the "License"); +00005 * you may not use this file except in compliance with the License. +00006 * You may obtain a copy of the License at +00007 * +00008 * http://www.apache.org/licenses/LICENSE-2.0 +00009 * +00010 * Unless required by applicable law or agreed to in writing, software +00011 * distributed under the License is distributed on an "AS IS" BASIS, +00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +00013 * See the License for the specific language governing permissions and +00014 * limitations under the License. +00015 */ +00016 +00017 /* Overview of what this is and does: +00018 * http://www.apache.org/~niq/dbd.html +00019 */ +00020 +00021 #ifndef APR_DBD_H +00022 #define APR_DBD_H +00023 +00024 #ifdef __cplusplus +00025 extern "C" { +00026 #endif +00027 +00033 #if APR_HAS_THREADS +00034 #include "apr_reslist.h" +00035 #endif +00036 +00037 /* These are opaque structs. Instantiation is up to each backend */ +00038 #ifndef APR_DBD_INTERNAL +00039 typedef struct apr_dbd_t apr_dbd_t; +00040 typedef struct apr_dbd_transaction apr_dbd_transaction; +00041 typedef struct apr_dbd_results apr_dbd_results; +00042 typedef struct apr_dbd_row apr_dbd_row; +00043 typedef struct apr_dbd_prepared apr_dbd_prepared; +00044 #endif +00045 +00046 typedef struct apr_dbd_driver_t { +00048 const char *name; +00049 +00053 void (*init)(apr_pool_t *pool); +00054 +00060 void *(*native_handle)(apr_dbd_t *handle); +00061 +00071 apr_dbd_t *(*open)(apr_pool_t *pool, const char *params); +00072 +00079 apr_status_t (*check_conn)(apr_pool_t *pool, apr_dbd_t *handle); +00080 +00086 apr_status_t (*close)(apr_dbd_t *handle); +00087 +00095 int (*set_dbname)(apr_pool_t* pool, apr_dbd_t *handle, const char *name); +00096 +00104 int (*start_transaction)(apr_pool_t *pool, apr_dbd_t *handle, +00105 apr_dbd_transaction **trans); +00106 +00114 int (*end_transaction)(apr_dbd_transaction *trans); +00115 +00124 int (*query)(apr_dbd_t *handle, apr_dbd_transaction *trans, +00125 int *nrows, const char *statement); +00126 +00139 int (*select)(apr_pool_t *pool, apr_dbd_t *handle, +00140 apr_dbd_transaction *trans, apr_dbd_results **res, +00141 const char *statement, int random); +00142 +00148 int (*num_cols)(apr_dbd_results *res); +00149 +00156 int (*num_tuples)(apr_dbd_results *res); +00157 +00167 int (*get_row)(apr_pool_t *pool, apr_dbd_results *res, +00168 apr_dbd_row **row, int rownum); +00169 +00176 const char *(*get_entry)(const apr_dbd_row *row, int col); +00177 +00185 const char *(*error)(apr_dbd_t *handle, int errnum); +00186 +00194 const char *(*escape)(apr_pool_t *pool, const char *string, +00195 apr_dbd_t *handle); +00196 +00208 int (*prepare)(apr_pool_t *pool, apr_dbd_t *handle, const char *query, +00209 const char *label, apr_dbd_prepared **statement); +00210 +00221 int (*pvquery)(apr_pool_t *pool, apr_dbd_t *handle, +00222 apr_dbd_transaction *trans, int *nrows, +00223 apr_dbd_prepared *statement, ...); +00224 +00236 int (*pvselect)(apr_pool_t *pool, apr_dbd_t *handle, +00237 apr_dbd_transaction *trans, apr_dbd_results **res, +00238 apr_dbd_prepared *statement, int random, ...); +00239 +00251 int (*pquery)(apr_pool_t *pool, apr_dbd_t *handle, +00252 apr_dbd_transaction *trans, int *nrows, +00253 apr_dbd_prepared *statement, int nargs, const char **args); +00254 +00267 int (*pselect)(apr_pool_t *pool, apr_dbd_t *handle, +00268 apr_dbd_transaction *trans, apr_dbd_results **res, +00269 apr_dbd_prepared *statement, int random, int nargs, +00270 const char **args); +00271 +00272 +00273 } apr_dbd_driver_t; +00274 +00279 APU_DECLARE(apr_status_t) apr_dbd_init(apr_pool_t *pool); +00280 +00291 APU_DECLARE(apr_status_t) apr_dbd_get_driver(apr_pool_t *pool, const char *name, +00292 apr_dbd_driver_t **driver); +00293 +00303 APU_DECLARE(apr_status_t) apr_dbd_open(apr_dbd_driver_t *driver, +00304 apr_pool_t *ptmp, const char *params, +00305 apr_dbd_t **handle); +00306 +00307 #ifdef DOXYGEN +00315 APU_DECLARE(apr_status_t) apr_dbd_close(apr_dbd_driver_t *driver, +00316 apr_dbd_t *handle); +00317 #else +00318 #define apr_dbd_close(driver,handle) (driver)->close((handle)) +00319 #endif +00320 +00321 /* apr-function-shaped versions of things */ +00322 +00323 #ifdef DOXYGEN +00329 APU_DECLARE(const char*) apr_dbd_name(apr_dbd_driver_t *driver); +00330 #else +00331 #define apr_dbd_name(driver) \ +00332 (driver)->name +00333 #endif +00334 +00335 #ifdef DOXYGEN +00342 APU_DECLARE(void*) apr_dbd_native_handle(apr_dbd_driver_t *driver, +00343 apr_dbd_t *handle); +00344 #else +00345 #define apr_dbd_native_handle(driver,handler) \ +00346 (driver)->native_handle(handler) +00347 #endif +00348 +00349 #ifdef DOXYGEN +00357 APU_DECLARE(int) apr_dbd_check_conn(apr_dbd_driver_t *driver, apr_pool_t *pool, +00358 apr_dbd_t *handle); +00359 #else +00360 #define apr_dbd_check_conn(driver,pool,handle) \ +00361 (driver)->check_conn((pool),(handle)) +00362 #endif +00363 +00364 #ifdef DOXYGEN +00373 APU_DECLARE(int) apr_dbd_set_dbname(apr_dbd_driver_t *driver, apr_pool_t *pool, +00374 apr_dbd_t *handle, const char *name); +00375 #else +00376 #define apr_dbd_set_dbname(driver,pool,handle,name) \ +00377 (driver)->set_dbname((pool),(handle),(name)) +00378 #endif +00379 +00388 APU_DECLARE(int) apr_dbd_transaction_start(apr_dbd_driver_t *driver, +00389 apr_pool_t *pool, +00390 apr_dbd_t *handle, +00391 apr_dbd_transaction **trans); +00392 +00402 APU_DECLARE(int) apr_dbd_transaction_end(apr_dbd_driver_t *driver, +00403 apr_pool_t *pool, +00404 apr_dbd_transaction *trans); +00405 +00406 #ifdef DOXYGEN +00416 APU_DECLARE(int) apr_dbd_query(apr_dbd_driver_t *driver, apr_dbd_t *handle, +00417 apr_dbd_transaction *trans, int *nrows, +00418 const char *statement); +00419 #else +00420 #define apr_dbd_query(driver,handle,trans,nrows,statement) \ +00421 (driver)->query((handle),(trans),(nrows),(statement)) +00422 #endif +00423 +00424 #ifdef DOXYGEN +00438 APU_DECLARE(int) apr_dbd_select(apr_dbd_driver_t *driver, apr_pool_t *pool, +00439 apr_dbd_t *handle, apr_dbd_transaction *trans, +00440 apr_dbd_results *res, const char *statement, +00441 int random); +00442 #else +00443 #define apr_dbd_select(driver,pool,handle,trans,res,statement,random) \ +00444 (driver)->select((pool),(handle),(trans),(res),(statement),(random)) +00445 #endif +00446 +00447 #ifdef DOXYGEN +00454 APU_DECLARE(int) apr_dbd_num_cols(apr_dbd_driver_t *driver, +00455 apr_dbd_results *res); +00456 #else +00457 #define apr_dbd_num_cols(driver,res) \ +00458 (driver)->num_cols((res)) +00459 #endif +00460 +00461 #ifdef DOXYGEN +00469 APU_DECLARE(int) apr_dbd_num_tuples(apr_dbd_driver_t *driver, +00470 apr_dbd_results *res); +00471 #else +00472 #define apr_dbd_num_tuples(driver,res) \ +00473 (driver)->num_tuples((res)) +00474 #endif +00475 +00476 #ifdef DOXYGEN +00487 APU_DECLARE(int) apr_dbd_get_row(apr_dbd_driver_t *driver, apr_pool_t *pool, +00488 apr_dbd_results *res, apr_dbd_row **row, +00489 int rownum); +00490 #else +00491 #define apr_dbd_get_row(driver,pool,res,row,rownum) \ +00492 (driver)->get_row((pool),(res),(row),(rownum)) +00493 #endif +00494 +00495 #ifdef DOXYGEN +00503 APU_DECLARE(const char*) apr_dbd_get_entry(apr_dbd_driver_t *driver, +00504 apr_dbd_row *row, int col); +00505 #else +00506 #define apr_dbd_get_entry(driver,row,col) \ +00507 (driver)->get_entry((row),(col)) +00508 #endif +00509 +00510 #ifdef DOXYGEN +00519 APU_DECLARE(const char*) apr_dbd_error(apr_dbd_driver_t *driver, +00520 apr_dbd_t *handle, int errnum); +00521 #else +00522 #define apr_dbd_error(driver,handle,errnum) \ +00523 (driver)->error((handle),(errnum)) +00524 #endif +00525 +00526 #ifdef DOXYGEN +00535 APU_DECLARE(const char*) apr_dbd_escape(apr_dbd_driver_t *driver, +00536 apr_pool_t *pool, const char *string, +00537 apr_dbd_t *handle); +00538 #else +00539 #define apr_dbd_escape(driver,pool,string,handle) \ +00540 (driver)->escape((pool),(string),(handle)) +00541 #endif +00542 +00543 #ifdef DOXYGEN +00556 APU_DECLARE(int) apr_dbd_prepare(apr_dbd_driver_t *driver, apr_pool_t *pool, +00557 apr_dbd_t *handle, const char *query, +00558 const char *label, +00559 apr_dbd_prepared **statement); +00560 #else +00561 #define apr_dbd_prepare(driver,pool,handle,query,label,statement) \ +00562 (driver)->prepare((pool),(handle),(query),(label),(statement)) +00563 #endif +00564 +00565 +00566 +00567 /* need macros that do varargs to deal with pvquery and pvselect :-) */ +00568 +00569 #ifdef DOXYGEN +00582 APU_DECLARE(int) apr_dbd_pquery(apr_dbd_driver_t *driver, apr_pool_t *pool, +00583 apr_dbd_t *handle, apr_dbd_transaction *trans, +00584 int *nrows, apr_dbd_prepared *statement, +00585 int nargs, const char **args); +00586 #else +00587 #define apr_dbd_pquery(driver,pool,handle,trans,nrows,statement,nargs,args) \ +00588 (driver)->pquery((pool),(handle),(trans),(nrows),(statement), \ +00589 (nargs),(args)) +00590 #endif +00591 +00592 #ifdef DOXYGEN +00606 APU_DECLARE(int) apr_dbd_pselect(apr_dbd_driver_t *driver, apr_pool_t *pool, +00607 apr_dbd_t *handle, apr_dbd_transaction *trans, +00608 apr_dbd_results **res, +00609 apr_dbd_prepared *statement, int random, +00610 int nargs, const char **args); +00611 #else +00612 #define apr_dbd_pselect(driver,pool,handle,trans,res,statement,random,nargs,args) \ +00613 (driver)->pselect((pool),(handle),(trans),(res),(statement), \ +00614 (random),(nargs),(args)) +00615 #endif +00616 +00617 #ifdef __cplusplus +00618 } +00619 #endif +00620 +00621 #endif +

Generated on Mon Feb 7 13:19:18 2005 for Apache Portable Runtime Utility Library by + +doxygen 1.3.7
+ +