2001-09-29 00:14:13 +04:00
|
|
|
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04: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-20 03:44:19 +04:00
|
|
|
|
|
|
|
/* Data shared between prefapi.c and nsPref.cpp */
|
|
|
|
|
2013-12-11 03:10:01 +04:00
|
|
|
#ifndef prefapi_private_data_h
|
|
|
|
#define prefapi_private_data_h
|
|
|
|
|
2013-06-23 16:03:39 +04:00
|
|
|
#include "mozilla/MemoryReporting.h"
|
2015-12-06 17:06:02 +03:00
|
|
|
#include "mozilla/UniquePtr.h"
|
2013-06-23 16:03:39 +04:00
|
|
|
|
2015-05-20 02:46:17 +03:00
|
|
|
extern PLDHashTable* gHashTable;
|
2015-05-18 10:52:08 +03:00
|
|
|
extern bool gDirty;
|
2003-05-02 08:00:19 +04:00
|
|
|
|
2012-08-23 00:00:21 +04:00
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
class PrefSetting;
|
2015-07-13 18:25:42 +03:00
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
2010-10-20 00:35:08 +04:00
|
|
|
|
2015-12-06 17:06:02 +03:00
|
|
|
mozilla::UniquePtr<char*[]>
|
|
|
|
pref_savePrefs(PLDHashTable* aTable);
|
2010-10-20 00:35:08 +04:00
|
|
|
|
|
|
|
nsresult
|
2012-08-23 00:00:21 +04:00
|
|
|
pref_SetPref(const mozilla::dom::PrefSetting& aPref);
|
2010-10-20 00:35:08 +04:00
|
|
|
|
2008-10-10 19:04:34 +04:00
|
|
|
int pref_CompareStrings(const void *v1, const void *v2, void* unused);
|
2015-07-31 23:06:12 +03:00
|
|
|
PrefHashEntry* pref_HashTableLookup(const char *key);
|
2010-10-20 00:35:08 +04:00
|
|
|
|
2016-05-17 17:55:49 +03:00
|
|
|
bool
|
|
|
|
pref_EntryHasAdvisablySizedValues(PrefHashEntry* aHashEntry);
|
|
|
|
|
2012-08-23 00:00:21 +04:00
|
|
|
void pref_GetPrefFromEntry(PrefHashEntry *aHashEntry,
|
|
|
|
mozilla::dom::PrefSetting* aPref);
|
2012-10-11 19:36:21 +04:00
|
|
|
|
|
|
|
size_t
|
2013-06-23 16:03:39 +04:00
|
|
|
pref_SizeOfPrivateData(mozilla::MallocSizeOf aMallocSizeOf);
|
2013-12-11 03:10:01 +04:00
|
|
|
|
|
|
|
#endif
|