/usr/include/firefox/nsIConsoleService.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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/firefox-11.0+build1/build-tree/mozilla/xpcom/base/nsIConsoleService.idl
*/
#ifndef __gen_nsIConsoleService_h__
#define __gen_nsIConsoleService_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsIConsoleListener_h__
#include "nsIConsoleListener.h"
#endif
#ifndef __gen_nsIConsoleMessage_h__
#include "nsIConsoleMessage.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIConsoleService */
#define NS_ICONSOLESERVICE_IID_STR "883472a0-ea9b-11da-8ad9-0800200c9a66"
#define NS_ICONSOLESERVICE_IID \
{0x883472a0, 0xea9b, 0x11da, \
{ 0x8a, 0xd9, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIConsoleService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONSOLESERVICE_IID)
/* void logMessage (in nsIConsoleMessage message); */
NS_SCRIPTABLE NS_IMETHOD LogMessage(nsIConsoleMessage *message) = 0;
/* void logStringMessage (in wstring message); */
NS_SCRIPTABLE NS_IMETHOD LogStringMessage(const PRUnichar * message) = 0;
/* void getMessageArray ([array, size_is (count)] out nsIConsoleMessage messages, out PRUint32 count); */
NS_SCRIPTABLE NS_IMETHOD GetMessageArray(nsIConsoleMessage * **messages NS_OUTPARAM, PRUint32 *count NS_OUTPARAM) = 0;
/* void registerListener (in nsIConsoleListener listener); */
NS_SCRIPTABLE NS_IMETHOD RegisterListener(nsIConsoleListener *listener) = 0;
/* void unregisterListener (in nsIConsoleListener listener); */
NS_SCRIPTABLE NS_IMETHOD UnregisterListener(nsIConsoleListener *listener) = 0;
/* void reset (); */
NS_SCRIPTABLE NS_IMETHOD Reset(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIConsoleService, NS_ICONSOLESERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONSOLESERVICE \
NS_SCRIPTABLE NS_IMETHOD LogMessage(nsIConsoleMessage *message); \
NS_SCRIPTABLE NS_IMETHOD LogStringMessage(const PRUnichar * message); \
NS_SCRIPTABLE NS_IMETHOD GetMessageArray(nsIConsoleMessage * **messages NS_OUTPARAM, PRUint32 *count NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD RegisterListener(nsIConsoleListener *listener); \
NS_SCRIPTABLE NS_IMETHOD UnregisterListener(nsIConsoleListener *listener); \
NS_SCRIPTABLE NS_IMETHOD Reset(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONSOLESERVICE(_to) \
NS_SCRIPTABLE NS_IMETHOD LogMessage(nsIConsoleMessage *message) { return _to LogMessage(message); } \
NS_SCRIPTABLE NS_IMETHOD LogStringMessage(const PRUnichar * message) { return _to LogStringMessage(message); } \
NS_SCRIPTABLE NS_IMETHOD GetMessageArray(nsIConsoleMessage * **messages NS_OUTPARAM, PRUint32 *count NS_OUTPARAM) { return _to GetMessageArray(messages, count); } \
NS_SCRIPTABLE NS_IMETHOD RegisterListener(nsIConsoleListener *listener) { return _to RegisterListener(listener); } \
NS_SCRIPTABLE NS_IMETHOD UnregisterListener(nsIConsoleListener *listener) { return _to UnregisterListener(listener); } \
NS_SCRIPTABLE NS_IMETHOD Reset(void) { return _to Reset(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONSOLESERVICE(_to) \
NS_SCRIPTABLE NS_IMETHOD LogMessage(nsIConsoleMessage *message) { return !_to ? NS_ERROR_NULL_POINTER : _to->LogMessage(message); } \
NS_SCRIPTABLE NS_IMETHOD LogStringMessage(const PRUnichar * message) { return !_to ? NS_ERROR_NULL_POINTER : _to->LogStringMessage(message); } \
NS_SCRIPTABLE NS_IMETHOD GetMessageArray(nsIConsoleMessage * **messages NS_OUTPARAM, PRUint32 *count NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageArray(messages, count); } \
NS_SCRIPTABLE NS_IMETHOD RegisterListener(nsIConsoleListener *listener) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterListener(listener); } \
NS_SCRIPTABLE NS_IMETHOD UnregisterListener(nsIConsoleListener *listener) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterListener(listener); } \
NS_SCRIPTABLE NS_IMETHOD Reset(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Reset(); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsConsoleService : public nsIConsoleService
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSICONSOLESERVICE
nsConsoleService();
private:
~nsConsoleService();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsConsoleService, nsIConsoleService)
nsConsoleService::nsConsoleService()
{
/* member initializers and constructor code */
}
nsConsoleService::~nsConsoleService()
{
/* destructor code */
}
/* void logMessage (in nsIConsoleMessage message); */
NS_IMETHODIMP nsConsoleService::LogMessage(nsIConsoleMessage *message)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void logStringMessage (in wstring message); */
NS_IMETHODIMP nsConsoleService::LogStringMessage(const PRUnichar * message)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getMessageArray ([array, size_is (count)] out nsIConsoleMessage messages, out PRUint32 count); */
NS_IMETHODIMP nsConsoleService::GetMessageArray(nsIConsoleMessage * **messages NS_OUTPARAM, PRUint32 *count NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void registerListener (in nsIConsoleListener listener); */
NS_IMETHODIMP nsConsoleService::RegisterListener(nsIConsoleListener *listener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void unregisterListener (in nsIConsoleListener listener); */
NS_IMETHODIMP nsConsoleService::UnregisterListener(nsIConsoleListener *listener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void reset (); */
NS_IMETHODIMP nsConsoleService::Reset()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#define NS_CONSOLESERVICE_CLASSNAME "Console Service"
#define NS_CONSOLESERVICE_CID \
{ 0x7e3ff85c, 0x1dd2, 0x11b2, { 0x8d, 0x4b, 0xeb, 0x45, 0x2c, 0xb0, 0xff, 0x40 }}
#define NS_CONSOLESERVICE_CONTRACTID "@mozilla.org/consoleservice;1"
#endif /* __gen_nsIConsoleService_h__ */
|