/usr/include/firefox/nsIPKCS11Slot.h is in firefox-dev 11.0+build1-0ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/firefox-11.0+build1/build-tree/mozilla/security/manager/ssl/public/nsIPKCS11Slot.idl
*/
#ifndef __gen_nsIPKCS11Slot_h__
#define __gen_nsIPKCS11Slot_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIPK11Token; /* forward declaration */
/* starting interface: nsIPKCS11Slot */
#define NS_IPKCS11SLOT_IID_STR "c2d4f296-ee60-11d4-998b-00b0d02354a0"
#define NS_IPKCS11SLOT_IID \
{0xc2d4f296, 0xee60, 0x11d4, \
{ 0x99, 0x8b, 0x00, 0xb0, 0xd0, 0x23, 0x54, 0xa0 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIPKCS11Slot : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPKCS11SLOT_IID)
/* readonly attribute wstring name; */
NS_SCRIPTABLE NS_IMETHOD GetName(PRUnichar * *aName) = 0;
/* readonly attribute wstring desc; */
NS_SCRIPTABLE NS_IMETHOD GetDesc(PRUnichar * *aDesc) = 0;
/* readonly attribute wstring manID; */
NS_SCRIPTABLE NS_IMETHOD GetManID(PRUnichar * *aManID) = 0;
/* readonly attribute wstring HWVersion; */
NS_SCRIPTABLE NS_IMETHOD GetHWVersion(PRUnichar * *aHWVersion) = 0;
/* readonly attribute wstring FWVersion; */
NS_SCRIPTABLE NS_IMETHOD GetFWVersion(PRUnichar * *aFWVersion) = 0;
enum {
SLOT_DISABLED = 0U,
SLOT_NOT_PRESENT = 1U,
SLOT_UNINITIALIZED = 2U,
SLOT_NOT_LOGGED_IN = 3U,
SLOT_LOGGED_IN = 4U,
SLOT_READY = 5U
};
/* readonly attribute unsigned long status; */
NS_SCRIPTABLE NS_IMETHOD GetStatus(PRUint32 *aStatus) = 0;
/* nsIPK11Token getToken (); */
NS_SCRIPTABLE NS_IMETHOD GetToken(nsIPK11Token * *_retval NS_OUTPARAM) = 0;
/* readonly attribute wstring tokenName; */
NS_SCRIPTABLE NS_IMETHOD GetTokenName(PRUnichar * *aTokenName) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIPKCS11Slot, NS_IPKCS11SLOT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPKCS11SLOT \
NS_SCRIPTABLE NS_IMETHOD GetName(PRUnichar * *aName); \
NS_SCRIPTABLE NS_IMETHOD GetDesc(PRUnichar * *aDesc); \
NS_SCRIPTABLE NS_IMETHOD GetManID(PRUnichar * *aManID); \
NS_SCRIPTABLE NS_IMETHOD GetHWVersion(PRUnichar * *aHWVersion); \
NS_SCRIPTABLE NS_IMETHOD GetFWVersion(PRUnichar * *aFWVersion); \
NS_SCRIPTABLE NS_IMETHOD GetStatus(PRUint32 *aStatus); \
NS_SCRIPTABLE NS_IMETHOD GetToken(nsIPK11Token * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetTokenName(PRUnichar * *aTokenName);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPKCS11SLOT(_to) \
NS_SCRIPTABLE NS_IMETHOD GetName(PRUnichar * *aName) { return _to GetName(aName); } \
NS_SCRIPTABLE NS_IMETHOD GetDesc(PRUnichar * *aDesc) { return _to GetDesc(aDesc); } \
NS_SCRIPTABLE NS_IMETHOD GetManID(PRUnichar * *aManID) { return _to GetManID(aManID); } \
NS_SCRIPTABLE NS_IMETHOD GetHWVersion(PRUnichar * *aHWVersion) { return _to GetHWVersion(aHWVersion); } \
NS_SCRIPTABLE NS_IMETHOD GetFWVersion(PRUnichar * *aFWVersion) { return _to GetFWVersion(aFWVersion); } \
NS_SCRIPTABLE NS_IMETHOD GetStatus(PRUint32 *aStatus) { return _to GetStatus(aStatus); } \
NS_SCRIPTABLE NS_IMETHOD GetToken(nsIPK11Token * *_retval NS_OUTPARAM) { return _to GetToken(_retval); } \
NS_SCRIPTABLE NS_IMETHOD GetTokenName(PRUnichar * *aTokenName) { return _to GetTokenName(aTokenName); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPKCS11SLOT(_to) \
NS_SCRIPTABLE NS_IMETHOD GetName(PRUnichar * *aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
NS_SCRIPTABLE NS_IMETHOD GetDesc(PRUnichar * *aDesc) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDesc(aDesc); } \
NS_SCRIPTABLE NS_IMETHOD GetManID(PRUnichar * *aManID) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetManID(aManID); } \
NS_SCRIPTABLE NS_IMETHOD GetHWVersion(PRUnichar * *aHWVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHWVersion(aHWVersion); } \
NS_SCRIPTABLE NS_IMETHOD GetFWVersion(PRUnichar * *aFWVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFWVersion(aFWVersion); } \
NS_SCRIPTABLE NS_IMETHOD GetStatus(PRUint32 *aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatus(aStatus); } \
NS_SCRIPTABLE NS_IMETHOD GetToken(nsIPK11Token * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetToken(_retval); } \
NS_SCRIPTABLE NS_IMETHOD GetTokenName(PRUnichar * *aTokenName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTokenName(aTokenName); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsPKCS11Slot : public nsIPKCS11Slot
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIPKCS11SLOT
nsPKCS11Slot();
private:
~nsPKCS11Slot();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsPKCS11Slot, nsIPKCS11Slot)
nsPKCS11Slot::nsPKCS11Slot()
{
/* member initializers and constructor code */
}
nsPKCS11Slot::~nsPKCS11Slot()
{
/* destructor code */
}
/* readonly attribute wstring name; */
NS_IMETHODIMP nsPKCS11Slot::GetName(PRUnichar * *aName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute wstring desc; */
NS_IMETHODIMP nsPKCS11Slot::GetDesc(PRUnichar * *aDesc)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute wstring manID; */
NS_IMETHODIMP nsPKCS11Slot::GetManID(PRUnichar * *aManID)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute wstring HWVersion; */
NS_IMETHODIMP nsPKCS11Slot::GetHWVersion(PRUnichar * *aHWVersion)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute wstring FWVersion; */
NS_IMETHODIMP nsPKCS11Slot::GetFWVersion(PRUnichar * *aFWVersion)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute unsigned long status; */
NS_IMETHODIMP nsPKCS11Slot::GetStatus(PRUint32 *aStatus)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIPK11Token getToken (); */
NS_IMETHODIMP nsPKCS11Slot::GetToken(nsIPK11Token * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute wstring tokenName; */
NS_IMETHODIMP nsPKCS11Slot::GetTokenName(PRUnichar * *aTokenName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIPKCS11Slot_h__ */
|