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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIKeyModule.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIKeyModule_h__
       6             : #define __gen_nsIKeyModule_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             :  /* forward declaration */
      18             :  typedef struct PK11SymKeyStr PK11SymKey;
      19             : 
      20             : /* starting interface:    nsIKeyObject */
      21             : #define NS_IKEYOBJECT_IID_STR "ee2dc516-ba7b-4e77-89fe-c43b886ef715"
      22             : 
      23             : #define NS_IKEYOBJECT_IID \
      24             :   {0xee2dc516, 0xba7b, 0x4e77, \
      25             :     { 0x89, 0xfe, 0xc4, 0x3b, 0x88, 0x6e, 0xf7, 0x15 }}
      26             : 
      27           0 : class NS_NO_VTABLE nsIKeyObject : public nsISupports {
      28             :  public:
      29             : 
      30             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IKEYOBJECT_IID)
      31             : 
      32             :   enum {
      33             :     SYM_KEY = 1,
      34             :     HMAC = 257
      35             :   };
      36             : 
      37             :   /* [must_use,noscript] void initKey (in short aAlgorithm, in PK11SymKeyPtr aKey); */
      38             :   MOZ_MUST_USE NS_IMETHOD InitKey(int16_t aAlgorithm, PK11SymKey *aKey) = 0;
      39             : 
      40             :   /* [must_use,noscript] PK11SymKeyPtr getKeyObj (); */
      41             :   MOZ_MUST_USE NS_IMETHOD GetKeyObj(PK11SymKey **_retval) = 0;
      42             : 
      43             :   /* [must_use] short getType (); */
      44             :   MOZ_MUST_USE NS_IMETHOD GetType(int16_t *_retval) = 0;
      45             : 
      46             : };
      47             : 
      48             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIKeyObject, NS_IKEYOBJECT_IID)
      49             : 
      50             : /* Use this macro when declaring classes that implement this interface. */
      51             : #define NS_DECL_NSIKEYOBJECT \
      52             :   MOZ_MUST_USE NS_IMETHOD InitKey(int16_t aAlgorithm, PK11SymKey *aKey) override; \
      53             :   MOZ_MUST_USE NS_IMETHOD GetKeyObj(PK11SymKey **_retval) override; \
      54             :   MOZ_MUST_USE NS_IMETHOD GetType(int16_t *_retval) override; 
      55             : 
      56             : /* Use this macro when declaring the members of this interface when the
      57             :    class doesn't implement the interface. This is useful for forwarding. */
      58             : #define NS_DECL_NON_VIRTUAL_NSIKEYOBJECT \
      59             :   MOZ_MUST_USE nsresult InitKey(int16_t aAlgorithm, PK11SymKey *aKey); \
      60             :   MOZ_MUST_USE nsresult GetKeyObj(PK11SymKey **_retval); \
      61             :   MOZ_MUST_USE nsresult GetType(int16_t *_retval); 
      62             : 
      63             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      64             : #define NS_FORWARD_NSIKEYOBJECT(_to) \
      65             :   MOZ_MUST_USE NS_IMETHOD InitKey(int16_t aAlgorithm, PK11SymKey *aKey) override { return _to InitKey(aAlgorithm, aKey); } \
      66             :   MOZ_MUST_USE NS_IMETHOD GetKeyObj(PK11SymKey **_retval) override { return _to GetKeyObj(_retval); } \
      67             :   MOZ_MUST_USE NS_IMETHOD GetType(int16_t *_retval) override { return _to GetType(_retval); } 
      68             : 
      69             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      70             : #define NS_FORWARD_SAFE_NSIKEYOBJECT(_to) \
      71             :   MOZ_MUST_USE NS_IMETHOD InitKey(int16_t aAlgorithm, PK11SymKey *aKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitKey(aAlgorithm, aKey); } \
      72             :   MOZ_MUST_USE NS_IMETHOD GetKeyObj(PK11SymKey **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeyObj(_retval); } \
      73             :   MOZ_MUST_USE NS_IMETHOD GetType(int16_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(_retval); } 
      74             : 
      75             : #if 0
      76             : /* Use the code below as a template for the implementation class for this interface. */
      77             : 
      78             : /* Header file */
      79             : class nsKeyObject : public nsIKeyObject
      80             : {
      81             : public:
      82             :   NS_DECL_ISUPPORTS
      83             :   NS_DECL_NSIKEYOBJECT
      84             : 
      85             :   nsKeyObject();
      86             : 
      87             : private:
      88             :   ~nsKeyObject();
      89             : 
      90             : protected:
      91             :   /* additional members */
      92             : };
      93             : 
      94             : /* Implementation file */
      95             : NS_IMPL_ISUPPORTS(nsKeyObject, nsIKeyObject)
      96             : 
      97             : nsKeyObject::nsKeyObject()
      98             : {
      99             :   /* member initializers and constructor code */
     100             : }
     101             : 
     102             : nsKeyObject::~nsKeyObject()
     103             : {
     104             :   /* destructor code */
     105             : }
     106             : 
     107             : /* [must_use,noscript] void initKey (in short aAlgorithm, in PK11SymKeyPtr aKey); */
     108             : MOZ_MUST_USE NS_IMETHODIMP nsKeyObject::InitKey(int16_t aAlgorithm, PK11SymKey *aKey)
     109             : {
     110             :     return NS_ERROR_NOT_IMPLEMENTED;
     111             : }
     112             : 
     113             : /* [must_use,noscript] PK11SymKeyPtr getKeyObj (); */
     114             : MOZ_MUST_USE NS_IMETHODIMP nsKeyObject::GetKeyObj(PK11SymKey **_retval)
     115             : {
     116             :     return NS_ERROR_NOT_IMPLEMENTED;
     117             : }
     118             : 
     119             : /* [must_use] short getType (); */
     120             : MOZ_MUST_USE NS_IMETHODIMP nsKeyObject::GetType(int16_t *_retval)
     121             : {
     122             :     return NS_ERROR_NOT_IMPLEMENTED;
     123             : }
     124             : 
     125             : /* End of implementation class template. */
     126             : #endif
     127             : 
     128             : 
     129             : /* starting interface:    nsIKeyObjectFactory */
     130             : #define NS_IKEYOBJECTFACTORY_IID_STR "838bdbf1-8244-448f-8bcd-cede70227d75"
     131             : 
     132             : #define NS_IKEYOBJECTFACTORY_IID \
     133             :   {0x838bdbf1, 0x8244, 0x448f, \
     134             :     { 0x8b, 0xcd, 0xce, 0xde, 0x70, 0x22, 0x7d, 0x75 }}
     135             : 
     136           0 : class NS_NO_VTABLE nsIKeyObjectFactory : public nsISupports {
     137             :  public:
     138             : 
     139             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IKEYOBJECTFACTORY_IID)
     140             : 
     141             :   /* [must_use] nsIKeyObject keyFromString (in short aAlgorithm, in ACString aKey); */
     142             :   MOZ_MUST_USE NS_IMETHOD KeyFromString(int16_t aAlgorithm, const nsACString & aKey, nsIKeyObject * *_retval) = 0;
     143             : 
     144             : };
     145             : 
     146             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIKeyObjectFactory, NS_IKEYOBJECTFACTORY_IID)
     147             : 
     148             : /* Use this macro when declaring classes that implement this interface. */
     149             : #define NS_DECL_NSIKEYOBJECTFACTORY \
     150             :   MOZ_MUST_USE NS_IMETHOD KeyFromString(int16_t aAlgorithm, const nsACString & aKey, nsIKeyObject * *_retval) override; 
     151             : 
     152             : /* Use this macro when declaring the members of this interface when the
     153             :    class doesn't implement the interface. This is useful for forwarding. */
     154             : #define NS_DECL_NON_VIRTUAL_NSIKEYOBJECTFACTORY \
     155             :   MOZ_MUST_USE nsresult KeyFromString(int16_t aAlgorithm, const nsACString & aKey, nsIKeyObject * *_retval); 
     156             : 
     157             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     158             : #define NS_FORWARD_NSIKEYOBJECTFACTORY(_to) \
     159             :   MOZ_MUST_USE NS_IMETHOD KeyFromString(int16_t aAlgorithm, const nsACString & aKey, nsIKeyObject * *_retval) override { return _to KeyFromString(aAlgorithm, aKey, _retval); } 
     160             : 
     161             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     162             : #define NS_FORWARD_SAFE_NSIKEYOBJECTFACTORY(_to) \
     163             :   MOZ_MUST_USE NS_IMETHOD KeyFromString(int16_t aAlgorithm, const nsACString & aKey, nsIKeyObject * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->KeyFromString(aAlgorithm, aKey, _retval); } 
     164             : 
     165             : #if 0
     166             : /* Use the code below as a template for the implementation class for this interface. */
     167             : 
     168             : /* Header file */
     169             : class nsKeyObjectFactory : public nsIKeyObjectFactory
     170             : {
     171             : public:
     172             :   NS_DECL_ISUPPORTS
     173             :   NS_DECL_NSIKEYOBJECTFACTORY
     174             : 
     175             :   nsKeyObjectFactory();
     176             : 
     177             : private:
     178             :   ~nsKeyObjectFactory();
     179             : 
     180             : protected:
     181             :   /* additional members */
     182             : };
     183             : 
     184             : /* Implementation file */
     185             : NS_IMPL_ISUPPORTS(nsKeyObjectFactory, nsIKeyObjectFactory)
     186             : 
     187             : nsKeyObjectFactory::nsKeyObjectFactory()
     188             : {
     189             :   /* member initializers and constructor code */
     190             : }
     191             : 
     192             : nsKeyObjectFactory::~nsKeyObjectFactory()
     193             : {
     194             :   /* destructor code */
     195             : }
     196             : 
     197             : /* [must_use] nsIKeyObject keyFromString (in short aAlgorithm, in ACString aKey); */
     198             : MOZ_MUST_USE NS_IMETHODIMP nsKeyObjectFactory::KeyFromString(int16_t aAlgorithm, const nsACString & aKey, nsIKeyObject * *_retval)
     199             : {
     200             :     return NS_ERROR_NOT_IMPLEMENTED;
     201             : }
     202             : 
     203             : /* End of implementation class template. */
     204             : #endif
     205             : 
     206             : 
     207             : #endif /* __gen_nsIKeyModule_h__ */

Generated by: LCOV version 1.13