2001-09-28 20:14:13 +00:00
|
|
|
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
1999-04-19 23:44:19 +00:00
|
|
|
|
|
|
|
/* Data shared between prefapi.c and nsPref.cpp */
|
|
|
|
|
2013-12-10 23:10:01 +00:00
|
|
|
#ifndef prefapi_private_data_h
|
|
|
|
#define prefapi_private_data_h
|
|
|
|
|
2013-06-23 12:03:39 +00:00
|
|
|
#include "mozilla/MemoryReporting.h"
|
|
|
|
|
2015-05-19 23:46:17 +00:00
|
|
|
extern PLDHashTable* gHashTable;
|
2015-05-18 07:52:08 +00:00
|
|
|
extern bool gDirty;
|
2003-05-02 04:00:19 +00:00
|
|
|
|
2012-08-22 20:00:21 +00:00
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
class PrefSetting;
|
2015-07-13 15:25:42 +00:00
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
2010-10-19 20:35:08 +00:00
|
|
|
|
2015-06-19 00:58:24 +00:00
|
|
|
void
|
|
|
|
pref_savePrefs(PLDHashTable* aTable, char** aPrefArray);
|
2010-10-19 20:35:08 +00:00
|
|
|
|
|
|
|
nsresult
|
2012-08-22 20:00:21 +00:00
|
|
|
pref_SetPref(const mozilla::dom::PrefSetting& aPref);
|
2010-10-19 20:35:08 +00:00
|
|
|
|
2008-10-10 15:04:34 +00:00
|
|
|
int pref_CompareStrings(const void *v1, const void *v2, void* unused);
|
2015-07-31 20:06:12 +00:00
|
|
|
PrefHashEntry* pref_HashTableLookup(const char *key);
|
2010-10-19 20:35:08 +00:00
|
|
|
|
2012-08-22 20:00:21 +00:00
|
|
|
void pref_GetPrefFromEntry(PrefHashEntry *aHashEntry,
|
|
|
|
mozilla::dom::PrefSetting* aPref);
|
2012-10-11 15:36:21 +00:00
|
|
|
|
|
|
|
size_t
|
2013-06-23 12:03:39 +00:00
|
|
|
pref_SizeOfPrivateData(mozilla::MallocSizeOf aMallocSizeOf);
|
2013-12-10 23:10:01 +00:00
|
|
|
|
|
|
|
#endif
|