mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
e21712765c
--HG-- rename : modules/libpref/src/Makefile.in => modules/libpref/Makefile.in rename : modules/libpref/src/Preferences.cpp => modules/libpref/Preferences.cpp rename : modules/libpref/public/Preferences.h => modules/libpref/Preferences.h rename : modules/libpref/src/init/all.js => modules/libpref/init/all.js rename : modules/libpref/public/nsIPrefBranch.idl => modules/libpref/nsIPrefBranch.idl rename : modules/libpref/public/nsIPrefBranch2.idl => modules/libpref/nsIPrefBranch2.idl rename : modules/libpref/public/nsIPrefBranchInternal.idl => modules/libpref/nsIPrefBranchInternal.idl rename : modules/libpref/public/nsIPrefLocalizedString.idl => modules/libpref/nsIPrefLocalizedString.idl rename : modules/libpref/public/nsIPrefService.idl => modules/libpref/nsIPrefService.idl rename : modules/libpref/public/nsIRelativeFilePref.idl => modules/libpref/nsIRelativeFilePref.idl rename : modules/libpref/src/nsPrefBranch.cpp => modules/libpref/nsPrefBranch.cpp rename : modules/libpref/src/nsPrefBranch.h => modules/libpref/nsPrefBranch.h rename : modules/libpref/src/nsPrefsFactory.cpp => modules/libpref/nsPrefsFactory.cpp rename : modules/libpref/src/prefapi.cpp => modules/libpref/prefapi.cpp rename : modules/libpref/src/prefapi.h => modules/libpref/prefapi.h rename : modules/libpref/src/prefapi_private_data.h => modules/libpref/prefapi_private_data.h rename : modules/libpref/src/prefread.cpp => modules/libpref/prefread.cpp rename : modules/libpref/src/prefread.h => modules/libpref/prefread.h
50 lines
1.3 KiB
C++
50 lines
1.3 KiB
C++
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* 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/. */
|
|
|
|
/* Data shared between prefapi.c and nsPref.cpp */
|
|
|
|
#ifndef prefapi_private_data_h
|
|
#define prefapi_private_data_h
|
|
|
|
#include "mozilla/MemoryReporting.h"
|
|
|
|
extern PLDHashTable gHashTable;
|
|
extern bool gDirty;
|
|
|
|
namespace mozilla {
|
|
namespace dom {
|
|
class PrefSetting;
|
|
}
|
|
}
|
|
|
|
enum pref_SaveTypes { SAVE_NONSHARED, SAVE_SHARED, SAVE_ALL, SAVE_ALL_AND_DEFAULTS };
|
|
|
|
// Passed as the arg to pref_savePref
|
|
struct pref_saveArgs {
|
|
char **prefArray;
|
|
pref_SaveTypes saveTypes;
|
|
};
|
|
|
|
PLDHashOperator
|
|
pref_savePref(PLDHashTable *table, PLDHashEntryHdr *heh, uint32_t i, void *arg);
|
|
|
|
PLDHashOperator
|
|
pref_GetPrefs(PLDHashTable *table,
|
|
PLDHashEntryHdr *heh, uint32_t i, void *arg);
|
|
|
|
nsresult
|
|
pref_SetPref(const mozilla::dom::PrefSetting& aPref);
|
|
|
|
int pref_CompareStrings(const void *v1, const void *v2, void* unused);
|
|
PrefHashEntry* pref_HashTableLookup(const void *key);
|
|
|
|
void pref_GetPrefFromEntry(PrefHashEntry *aHashEntry,
|
|
mozilla::dom::PrefSetting* aPref);
|
|
|
|
size_t
|
|
pref_SizeOfPrivateData(mozilla::MallocSizeOf aMallocSizeOf);
|
|
|
|
#endif
|