LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIPKCS11.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPKCS11.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIPKCS11_h__
       6             : #define __gen_nsIPKCS11_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : /* For IDL files that don't want to include root IDL files. */
      14             : #ifndef NS_NO_VTABLE
      15             : #define NS_NO_VTABLE
      16             : #endif
      17             : #define NS_PKCS11_CONTRACTID "@mozilla.org/security/pkcs11;1"
      18             : 
      19             : /* starting interface:    nsIPKCS11 */
      20             : #define NS_IPKCS11_IID_STR "5743f870-958e-4f02-aef2-c0afeef67f05"
      21             : 
      22             : #define NS_IPKCS11_IID \
      23             :   {0x5743f870, 0x958e, 0x4f02, \
      24             :     { 0xae, 0xf2, 0xc0, 0xaf, 0xee, 0xf6, 0x7f, 0x05 }}
      25             : 
      26           0 : class NS_NO_VTABLE nsIPKCS11 : public nsISupports {
      27             :  public:
      28             : 
      29             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPKCS11_IID)
      30             : 
      31             :   /* [must_use] void deleteModule (in AString moduleName); */
      32             :   MOZ_MUST_USE NS_IMETHOD DeleteModule(const nsAString & moduleName) = 0;
      33             : 
      34             :   /* [must_use] void addModule (in AString moduleName, in AString libraryFullPath, in long cryptoMechanismFlags, in long cipherFlags); */
      35             :   MOZ_MUST_USE NS_IMETHOD AddModule(const nsAString & moduleName, const nsAString & libraryFullPath, int32_t cryptoMechanismFlags, int32_t cipherFlags) = 0;
      36             : 
      37             : };
      38             : 
      39             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIPKCS11, NS_IPKCS11_IID)
      40             : 
      41             : /* Use this macro when declaring classes that implement this interface. */
      42             : #define NS_DECL_NSIPKCS11 \
      43             :   MOZ_MUST_USE NS_IMETHOD DeleteModule(const nsAString & moduleName) override; \
      44             :   MOZ_MUST_USE NS_IMETHOD AddModule(const nsAString & moduleName, const nsAString & libraryFullPath, int32_t cryptoMechanismFlags, int32_t cipherFlags) override; 
      45             : 
      46             : /* Use this macro when declaring the members of this interface when the
      47             :    class doesn't implement the interface. This is useful for forwarding. */
      48             : #define NS_DECL_NON_VIRTUAL_NSIPKCS11 \
      49             :   MOZ_MUST_USE nsresult DeleteModule(const nsAString & moduleName); \
      50             :   MOZ_MUST_USE nsresult AddModule(const nsAString & moduleName, const nsAString & libraryFullPath, int32_t cryptoMechanismFlags, int32_t cipherFlags); 
      51             : 
      52             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      53             : #define NS_FORWARD_NSIPKCS11(_to) \
      54             :   MOZ_MUST_USE NS_IMETHOD DeleteModule(const nsAString & moduleName) override { return _to DeleteModule(moduleName); } \
      55             :   MOZ_MUST_USE NS_IMETHOD AddModule(const nsAString & moduleName, const nsAString & libraryFullPath, int32_t cryptoMechanismFlags, int32_t cipherFlags) override { return _to AddModule(moduleName, libraryFullPath, cryptoMechanismFlags, cipherFlags); } 
      56             : 
      57             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      58             : #define NS_FORWARD_SAFE_NSIPKCS11(_to) \
      59             :   MOZ_MUST_USE NS_IMETHOD DeleteModule(const nsAString & moduleName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteModule(moduleName); } \
      60             :   MOZ_MUST_USE NS_IMETHOD AddModule(const nsAString & moduleName, const nsAString & libraryFullPath, int32_t cryptoMechanismFlags, int32_t cipherFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddModule(moduleName, libraryFullPath, cryptoMechanismFlags, cipherFlags); } 
      61             : 
      62             : #if 0
      63             : /* Use the code below as a template for the implementation class for this interface. */
      64             : 
      65             : /* Header file */
      66             : class nsPKCS11 : public nsIPKCS11
      67             : {
      68             : public:
      69             :   NS_DECL_ISUPPORTS
      70             :   NS_DECL_NSIPKCS11
      71             : 
      72             :   nsPKCS11();
      73             : 
      74             : private:
      75             :   ~nsPKCS11();
      76             : 
      77             : protected:
      78             :   /* additional members */
      79             : };
      80             : 
      81             : /* Implementation file */
      82             : NS_IMPL_ISUPPORTS(nsPKCS11, nsIPKCS11)
      83             : 
      84             : nsPKCS11::nsPKCS11()
      85             : {
      86             :   /* member initializers and constructor code */
      87             : }
      88             : 
      89             : nsPKCS11::~nsPKCS11()
      90             : {
      91             :   /* destructor code */
      92             : }
      93             : 
      94             : /* [must_use] void deleteModule (in AString moduleName); */
      95             : MOZ_MUST_USE NS_IMETHODIMP nsPKCS11::DeleteModule(const nsAString & moduleName)
      96             : {
      97             :     return NS_ERROR_NOT_IMPLEMENTED;
      98             : }
      99             : 
     100             : /* [must_use] void addModule (in AString moduleName, in AString libraryFullPath, in long cryptoMechanismFlags, in long cipherFlags); */
     101             : MOZ_MUST_USE NS_IMETHODIMP nsPKCS11::AddModule(const nsAString & moduleName, const nsAString & libraryFullPath, int32_t cryptoMechanismFlags, int32_t cipherFlags)
     102             : {
     103             :     return NS_ERROR_NOT_IMPLEMENTED;
     104             : }
     105             : 
     106             : /* End of implementation class template. */
     107             : #endif
     108             : 
     109             : 
     110             : #endif /* __gen_nsIPKCS11_h__ */

Generated by: LCOV version 1.13