This commit is contained in:
ftang%netscape.com 1999-05-10 22:30:21 +00:00
Родитель 14994be14d
Коммит db41c00813
2 изменённых файлов: 101 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,61 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsMappingCache.h"
typedef struct {
PRInt16 mask;
PRInt16 reserved;
PRUint32 data[1] ;
} nsMappingCacheBase;
typedef struct {
PRInt16 mask;
PRInt16 reserved;
PRUint32 data[64] ;
} nsMappingCache64;
typedef struct {
PRInt16 mask;
PRInt16 reserved;
PRUint32 data[128] ;
} nsMappingCache128;
typedef struct {
PRInt16 mask;
PRInt16 reserved;
PRUint32 data[256] ;
} nsMappingCache256;
typedef struct {
PRInt16 mask;
PRInt16 reserved;
PRUint32 data[512] ;
} nsMappingCache512;
nsresult nsMappingCache::CreateCache(nsMappingCacheType aType, nsIMappingCache* aResult)
{
// to be implemented
return NS_OK;
}
nsresult nsMappingCache::DestroyCache(nsIMappingCache aCache)
{
// to be implemented
return NS_OK;
}

Просмотреть файл

@ -0,0 +1,40 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (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 Communicator client code.
*
* The Initial Developer of the Original Code is Netscape Communications
* Corporation. Portions created by Netscape are Copyright (C) 1998
* Netscape Communications Corporation. All Rights Reserved.
*/
#ifndef nsMappingCache_h__
#define nsMappingCache_h__
#include "nsIMappingCache.h"
#include "nsError.h"
class nsMappingCache {
public:
/**
* Create a Mapping Cache
*/
static nsresult CreateCache(nsMappingCacheType aType, nsIMappingCache* aResult);
/**
* Destroy a Mapping Cache
*/
static nsresult DestroyCache(nsIMappingCache aCache);
};
#endif /* nsMappingCache_h__ */