]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/auth/QueueNode.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / auth / QueueNode.h
index 70bf0b8248df557de171b0841785b65bc19eef2c..b305de2ec670ce3813374f14fc800c45f80dc0f3 100644 (file)
@@ -1,6 +1,16 @@
+/*
+ * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
+
 #ifndef SQUID_SRC_AUTH_QUEUENODE_H
 #define SQUID_SRC_AUTH_QUEUENODE_H
 
+#include "cbdata.h"
+
 namespace Auth
 {
 
@@ -16,6 +26,7 @@ namespace Auth
  */
 class QueueNode
 {
+    MEMPROXY_CLASS(Auth::QueueNode);
 
 private:
     // we store CBDATA here, copy is not safe
@@ -23,7 +34,11 @@ private:
     QueueNode &operator =(const QueueNode &);
 
 public:
-    QueueNode(Auth::UserRequest *aRequest, AUTHCB *aHandler, void *aData) : auth_user_request(aRequest), handler(aHandler), data(cbdataReference(aData)) {}
+    QueueNode(Auth::UserRequest *aRequest, AUTHCB *aHandler, void *aData) :
+        next(NULL),
+        auth_user_request(aRequest),
+        handler(aHandler),
+        data(cbdataReference(aData)) {}
     ~QueueNode() {
         cbdataReferenceDone(data);
         while (next) {
@@ -38,12 +53,9 @@ public:
     Auth::UserRequest::Pointer auth_user_request;
     AUTHCB *handler;
     void *data;
-
-    MEMPROXY_CLASS(Auth::QueueNode);
 };
 
-MEMPROXY_CLASS_INLINE(Auth::QueueNode);
-
 } // namespace Auth
 
 #endif /* SQUID_SRC_AUTH_QUEUENODE_H */
+