#if SQUID_SNMP
-typedef struct _snmp_request_t {
+struct _snmp_request_t {
u_char *buf;
u_char *outbuf;
int len;
struct snmp_pdu *PDU;
aclCheck_t *acl_checklist;
u_char *community;
-} snmp_request_t;
+};
-typedef struct _viewEntry {
+struct _viewEntry {
char viewName[32];
int viewIndex;
int viewType;
int viewSubtreeLen;
oid viewSubtree[32];
struct _viewEntry *next;
-} viewEntry;
+};
-typedef struct _communityEntry {
+struct _communityEntry {
char name[64];
int readView;
int writeView;
acl_access *acls;
communityEntry *next;
-} communityEntry;
+};
-typedef usecEntry {
+struct _usecEntry {
u_char userName[32];
int userLen;
int qoS;
int authReadView;
int authWriteView;
usecEntry *next;
-} usecEntry;
+};
#endif
typedef struct _CacheDigest CacheDigest;
typedef struct _Version Version;
+#if SQUID_SNMP
+typedef struct _snmp_request_t snmp_request_t;
+typedef struct _viewEntry viewEntry;
+typedef struct _communityEntry communityEntry;
+typedef struct _usecEntry usecEntry;
+#endif
+
/* define AIOCB even without USE_ASYNC_IO */
typedef void AIOCB(void *, int aio_return, int aio_errno);
typedef void CWCB(int fd, char *, size_t size, int flag, void *data);