mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 12:37:37 +00:00
62 lines
2.0 KiB
C++
62 lines
2.0 KiB
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
*
|
|
* The contents of this file are subject to the Netscape Public
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy of
|
|
* the License at http://www.mozilla.org/NPL/
|
|
*
|
|
* Software distributed under the License is distributed on an "AS
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
* implied. See the License for the specific language governing
|
|
* rights and limitations under the License.
|
|
*
|
|
* The Original Code is mozilla.org code.
|
|
*
|
|
* The Initial Developer of the Original Code is Netscape
|
|
* Communications Corporation. Portions created by Netscape are
|
|
* Copyright (C) 1999 Netscape Communications Corporation. All
|
|
* Rights Reserved.
|
|
*
|
|
* Contributor(s):
|
|
*/
|
|
|
|
/* The nsIInterfaceInfoManager xpcom public declaration. */
|
|
|
|
#ifndef nsIInterfaceInfoManager_h___
|
|
#define nsIInterfaceInfoManager_h___
|
|
|
|
#include "nsIInterfaceInfo.h"
|
|
#include "nsIEnumerator.h"
|
|
|
|
// This should be implemented as a Service
|
|
|
|
// {8B161900-BE2B-11d2-9831-006008962422}
|
|
#define NS_IINTERFACEINFO_MANAGER_IID \
|
|
{ 0x8b161900, 0xbe2b, 0x11d2, \
|
|
{ 0x98, 0x31, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
|
|
|
|
class nsIInterfaceInfoManager : public nsISupports
|
|
{
|
|
public:
|
|
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IINTERFACEINFO_MANAGER_IID)
|
|
|
|
// nsIInformationInfo management services
|
|
NS_IMETHOD GetInfoForIID(const nsIID* iid, nsIInterfaceInfo** info) = 0;
|
|
NS_IMETHOD GetInfoForName(const char* name, nsIInterfaceInfo** info) = 0;
|
|
|
|
// name <-> IID mapping services
|
|
// NOTE: these return IAllocatator alloc'd copies of the data
|
|
NS_IMETHOD GetIIDForName(const char* name, nsIID** iid) = 0;
|
|
NS_IMETHOD GetNameForIID(const nsIID* iid, char** name) = 0;
|
|
|
|
// Get an enumeration of all the interfaces
|
|
NS_IMETHOD EnumerateInterfaces(nsIEnumerator** emumerator) = 0;
|
|
|
|
// XXX other methods?
|
|
|
|
};
|
|
|
|
#endif /* nsIInterfaceInfoManager_h___ */
|
|
|
|
|