Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/nsINamed.h
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /src/mozilla-central/xpcom/threads/nsINamed.idl
3
 */
4
5
#ifndef __gen_nsINamed_h__
6
#define __gen_nsINamed_h__
7
8
9
#ifndef __gen_nsISupports_h__
10
#include "nsISupports.h"
11
#endif
12
13
#include "js/GCAnnotations.h"
14
15
/* For IDL files that don't want to include root IDL files. */
16
#ifndef NS_NO_VTABLE
17
#define NS_NO_VTABLE
18
#endif
19
20
/* starting interface:    nsINamed */
21
#define NS_INAMED_IID_STR "0c5fe7de-7e83-4d0d-a8a6-4a6518b9a7b3"
22
23
#define NS_INAMED_IID \
24
  {0x0c5fe7de, 0x7e83, 0x4d0d, \
25
    { 0xa8, 0xa6, 0x4a, 0x65, 0x18, 0xb9, 0xa7, 0xb3 }}
26
27
class NS_NO_VTABLE nsINamed : public nsISupports {
28
 public:
29
30
  NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAMED_IID)
31
32
  /* readonly attribute AUTF8String name; */
33
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetName(nsACString& aName) = 0;
34
35
};
36
37
  NS_DEFINE_STATIC_IID_ACCESSOR(nsINamed, NS_INAMED_IID)
38
39
/* Use this macro when declaring classes that implement this interface. */
40
#define NS_DECL_NSINAMED \
41
  NS_IMETHOD GetName(nsACString& aName) override; 
42
43
/* Use this macro when declaring the members of this interface when the
44
   class doesn't implement the interface. This is useful for forwarding. */
45
#define NS_DECL_NON_VIRTUAL_NSINAMED \
46
  nsresult GetName(nsACString& aName); 
47
48
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
49
#define NS_FORWARD_NSINAMED(_to) \
50
0
  NS_IMETHOD GetName(nsACString& aName) override { return _to GetName(aName); } 
51
52
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
53
#define NS_FORWARD_SAFE_NSINAMED(_to) \
54
  NS_IMETHOD GetName(nsACString& aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } 
55
56
57
#endif /* __gen_nsINamed_h__ */