1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #ifndef APR_PERMS_SET_H
- #define APR_PERMS_SET_H
- #include "apr.h"
- #include "apr_pools.h"
- #include "apr_errno.h"
- #include "apr_user.h"
- #include "apr_file_info.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef apr_status_t (apr_perms_setfn_t)(void *object, apr_fileperms_t perms,
- apr_uid_t uid, apr_gid_t gid);
- #define APR_PERMS_SET_IMPLEMENT(type) \
- APR_DECLARE(apr_status_t) apr_##type##_perms_set \
- (void *the##type, apr_fileperms_t perms, \
- apr_uid_t uid, apr_gid_t gid)
- #define APR_PERMS_SET_ENOTIMPL(type) \
- APR_DECLARE(apr_status_t) apr_##type##_perms_set \
- (void *the##type, apr_fileperms_t perms, \
- apr_uid_t uid, apr_gid_t gid) \
- { return APR_ENOTIMPL ; }
- #define APR_PERMS_SET_FN(type) apr_##type##_perms_set
- #ifdef __cplusplus
- }
- #endif
- #endif
|