1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/base/nsIEntropyCollector.idl
3 : */
4 :
5 : #ifndef __gen_nsIEntropyCollector_h__
6 : #define __gen_nsIEntropyCollector_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 :
18 : /*
19 : * If anyone wants to collect the entropy distributed by the
20 : * event handler, they'll have to implement this CONTRACTID
21 : */
22 : #define NS_ENTROPYCOLLECTOR_CONTRACTID "@mozilla.org/security/entropy;1"
23 :
24 : /* starting interface: nsIEntropyCollector */
25 : #define NS_IENTROPYCOLLECTOR_IID_STR "6f883680-ab9d-11d4-9978-00b0d02354a0"
26 :
27 : #define NS_IENTROPYCOLLECTOR_IID \
28 : {0x6f883680, 0xab9d, 0x11d4, \
29 : { 0x99, 0x78, 0x00, 0xb0, 0xd0, 0x23, 0x54, 0xa0 }}
30 :
31 1732 : class NS_NO_VTABLE nsIEntropyCollector : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IENTROPYCOLLECTOR_IID)
35 :
36 : /* void randomUpdate (in buffer entropy, in long bufLen); */
37 : NS_IMETHOD RandomUpdate(void *entropy, PRInt32 bufLen) = 0;
38 :
39 : };
40 :
41 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIEntropyCollector, NS_IENTROPYCOLLECTOR_IID)
42 :
43 : /* Use this macro when declaring classes that implement this interface. */
44 : #define NS_DECL_NSIENTROPYCOLLECTOR \
45 : NS_IMETHOD RandomUpdate(void *entropy, PRInt32 bufLen);
46 :
47 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
48 : #define NS_FORWARD_NSIENTROPYCOLLECTOR(_to) \
49 : NS_IMETHOD RandomUpdate(void *entropy, PRInt32 bufLen) { return _to RandomUpdate(entropy, bufLen); }
50 :
51 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
52 : #define NS_FORWARD_SAFE_NSIENTROPYCOLLECTOR(_to) \
53 : NS_IMETHOD RandomUpdate(void *entropy, PRInt32 bufLen) { return !_to ? NS_ERROR_NULL_POINTER : _to->RandomUpdate(entropy, bufLen); }
54 :
55 : #if 0
56 : /* Use the code below as a template for the implementation class for this interface. */
57 :
58 : /* Header file */
59 : class nsEntropyCollector : public nsIEntropyCollector
60 : {
61 : public:
62 : NS_DECL_ISUPPORTS
63 : NS_DECL_NSIENTROPYCOLLECTOR
64 :
65 : nsEntropyCollector();
66 :
67 : private:
68 : ~nsEntropyCollector();
69 :
70 : protected:
71 : /* additional members */
72 : };
73 :
74 : /* Implementation file */
75 : NS_IMPL_ISUPPORTS1(nsEntropyCollector, nsIEntropyCollector)
76 :
77 : nsEntropyCollector::nsEntropyCollector()
78 : {
79 : /* member initializers and constructor code */
80 : }
81 :
82 : nsEntropyCollector::~nsEntropyCollector()
83 : {
84 : /* destructor code */
85 : }
86 :
87 : /* void randomUpdate (in buffer entropy, in long bufLen); */
88 : NS_IMETHODIMP nsEntropyCollector::RandomUpdate(void *entropy, PRInt32 bufLen)
89 : {
90 : return NS_ERROR_NOT_IMPLEMENTED;
91 : }
92 :
93 : /* End of implementation class template. */
94 : #endif
95 :
96 :
97 : #endif /* __gen_nsIEntropyCollector_h__ */
|