code polishing
[moonshot-firefox.git] / nsMoonshotSessionState.h
index c29ef1b..7e623d8 100644 (file)
@@ -1,26 +1,27 @@
 #ifndef _nsMoonshotSessionState_h__
 #define _nsMoonshotSessionState_h__
 
+#include <nsISupportsUtils.h>
 #include <gssapi.h>
 
+typedef enum {
+    GSS_CTX_EMPTY,
+    GSS_CTX_IN_PROGRESS,
+    GSS_CTX_ESTABLISHED
+} gss_state_t;
+
 class nsMoonshotSessionState : public nsISupports
 {
     public:
-       NS_DECL_ISUPPORTS;
+       NS_DECL_ISUPPORTS
 
        nsMoonshotSessionState();
        virtual ~nsMoonshotSessionState();
-       NS_IMETHOD Reset();
-
-       enum {
-           GSS_CTX_EMPTY,
-           GSS_CTX_IN_PROGRESS,
-           GSS_CTX_ESTABLISHED
-       } gss_state;
+       void Reset();
 
+       gss_state_t gss_state;
        gss_cred_id_t gss_cred;
-
-    private:
-}
+       gss_ctx_id_t gss_ctx;
+};
 
 #endif