00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef APR_PERMS_SET_H
00018 #define APR_PERMS_SET_H
00019
00020
00021
00022
00023
00024
00025 #include "apr.h"
00026 #include "apr_pools.h"
00027 #include "apr_errno.h"
00028 #include "apr_user.h"
00029 #include "apr_file_info.h"
00030
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034
00035
00036
00037
00038
00039
00040
00041
00042 typedef apr_status_t (apr_perms_setfn_t)(void *object, apr_fileperms_t perms,
00043 apr_uid_t uid, apr_gid_t gid);
00044
00045 #define APR_PERMS_SET_IMPLEMENT(type) \
00046 APR_DECLARE(apr_status_t) apr_##type##_perms_set \
00047 (void *the##type, apr_fileperms_t perms, \
00048 apr_uid_t uid, apr_gid_t gid)
00049
00050 #define APR_PERMS_SET_ENOTIMPL(type) \
00051 APR_DECLARE(apr_status_t) apr_##type##_perms_set \
00052 (void *the##type, apr_fileperms_t perms, \
00053 apr_uid_t uid, apr_gid_t gid) \
00054 { return APR_ENOTIMPL ; }
00055
00056 #define APR_PERMS_SET_FN(type) apr_##type##_perms_set
00057
00058
00059
00060
00061 #ifdef __cplusplus
00062 }
00063 #endif
00064
00065 #endif