384 /* --- Begin type definitions --- */ |
384 /* --- Begin type definitions --- */ |
385 |
385 |
386 /* NOTE: both SYS_FILE and SYS_NETFD are actually NSPR PRFileDesc * and can */ |
386 /* NOTE: both SYS_FILE and SYS_NETFD are actually NSPR PRFileDesc * and can */ |
387 /* be used with NSPR API calls (after casting them to PRFileDesc *) */ |
387 /* be used with NSPR API calls (after casting them to PRFileDesc *) */ |
388 |
388 |
|
389 // NOTE: no they are not NSPR PRFileDesc* |
|
390 // they are VFSFile* |
|
391 // TODO: fix NOTE |
|
392 |
|
393 |
389 #ifndef SYS_FILE_T |
394 #ifndef SYS_FILE_T |
390 typedef void *SYS_FILE; |
395 typedef struct VFSFile *SYS_FILE; |
391 #define SYS_FILE_T void * |
396 #define SYS_FILE_T void * |
392 #endif /* !SYS_FILE_T */ |
397 #endif /* !SYS_FILE_T */ |
393 |
398 |
394 #define SYS_ERROR_FD ((SYS_FILE)-1) |
399 #define SYS_ERROR_FD ((SYS_FILE)-1) // TODO: fix |
395 |
400 |
396 #ifndef SYS_NETFD_T |
401 #ifndef SYS_NETFD_T |
397 typedef void *SYS_NETFD; |
402 typedef void *SYS_NETFD; |
398 #define SYS_NETFD_T void * |
403 #define SYS_NETFD_T void * |
399 #endif /* !SYS_NETFD_T */ |
404 #endif /* !SYS_NETFD_T */ |
639 |
644 |
640 #define SESSION_HASHSIZE 5 |
645 #define SESSION_HASHSIZE 5 |
641 |
646 |
642 typedef struct PListStruct_s PListStruct_s; |
647 typedef struct PListStruct_s PListStruct_s; |
643 typedef struct ACLListHandle ACLListHandle; |
648 typedef struct ACLListHandle ACLListHandle; |
|
649 typedef struct VFS VFS; |
|
650 typedef struct VFSContext VFSContext; |
644 |
651 |
645 #ifndef PR_AF_INET |
652 #ifndef PR_AF_INET |
646 typedef union PRNetAddr PRNetAddr; |
653 typedef union PRNetAddr PRNetAddr; |
647 #endif |
654 #endif |
648 |
655 |
990 char *aclname; /* name of deciding ACL */ |
997 char *aclname; /* name of deciding ACL */ |
991 pblock *aclpb; /* OBSOLETE */ |
998 pblock *aclpb; /* OBSOLETE */ |
992 /* 3.0 ACL list pointer */ |
999 /* 3.0 ACL list pointer */ |
993 ACLListHandle *acllist; |
1000 ACLListHandle *acllist; |
994 uint32_t aclreqaccess; /* new - required access rights */ |
1001 uint32_t aclreqaccess; /* new - required access rights */ |
|
1002 |
|
1003 VFS *vfs; /* new - virtual file system */ |
995 |
1004 |
996 int request_is_cacheable; /* */ |
1005 int request_is_cacheable; /* */ |
997 int directive_is_cacheable; /* set by SAFs with no external side effects that make decisions based solely on URI and path */ |
1006 int directive_is_cacheable; /* set by SAFs with no external side effects that make decisions based solely on URI and path */ |
998 |
1007 |
999 char *cached_headers; /* OBSOLETE */ |
1008 char *cached_headers; /* OBSOLETE */ |