Debian Codegraph @

linux/registry.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 --- HISTORICAL COMMENTS FOLLOW ---
19
20 * $Logfile: /DescentIII/Main/linux/registry.h $
21 * $Revision: 1.2 $
22 * $Date: 2004/02/09 04:14:51 $
23 * $Author: kevinb $
24 *
25 * Linux registry header
26 *
27 * $Log: registry.h,v $
28 * Revision 1.2 2004/02/09 04:14:51 kevinb
29 * Added newlines to all headers to reduce number of warnings printed
30 *
31 * Made some small changes to get everything compiling.
32 *
33 * All Ready to merge the 1.5 tree.
34 *
35 * Revision 1.1.1.1 2000/04/18 00:00:39 icculus
36 * initial checkin
37 *
38 *
39 * 4 7/14/99 9:09p Jeff
40 * added comment header
41 *
42 * $NoKeywords: $
43 */
44
45 #ifndef __REGISTRY_H_
46 #define __REGISTRY_H_cxx . . $ `linux/registry.h:46:9`!
47
48 #define MAX_RECORD_NAMEcxx . . $ `linux/registry.h:48:9`! 256
49 #define REGT_STRINGcxx . . $ `linux/registry.h:49:9`! 0
50 #define REGT_DWORDcxx . . $ `linux/registry.h:50:9`! 1
51
52 #include <stdio.h>
53
54 struct tRecordcxx . . $ tRecord# {
55 char namecxx . . $ tRecord#name.[MAX_RECORD_NAMEcxx . . $ `linux/registry.h:48:9`!];
56 char typecxx . . $ tRecord#type.;
57 void *datacxx . . $ tRecord#data.;
58 tRecordcxx . . $ tRecord# *nextcxx . . $ tRecord#next.;
59 };
60
61 struct tKeycxx . . $ tKey# {
62 char namecxx . . $ tKey#name.[MAX_RECORD_NAMEcxx . . $ `linux/registry.h:48:9`!];
63 tKeycxx . . $ tKey# *nextcxx . . $ tKey#next.;
64 tRecordcxx . . $ tRecord# *recordscxx . . $ tKey#records.;
65 };
66
67 class CRegistrycxx . . $ CRegistry# {
68 public:
69 CRegistrycxx . . $ CRegistry#CRegistry(85c52e162fed56f9).(const char *name);
70 ~cxx . . $ CRegistry#`~CRegistry`(ced63f7c635d850d).CRegistrycxx . . $ CRegistry#();
71 void Exportcxx . . $ CRegistry#Export(49f6e7a06ebc5aa8).();
72 bool Importcxx . . $ CRegistry#Import(c9857a73d68e59ba).();
73 void CreateKeycxx . . $ CRegistry#CreateKey(85c52e162fed56f9).(const char *name);
74 bool LookupKeycxx . . $ CRegistry#LookupKey(c5f7da30cbc0f4e9).(const char *name);
75 bool CreateRecordcxx . . $ CRegistry#CreateRecord(5438c15cf96d2f9c).(const char *name, char type, void *data);
76 tRecordcxx . . $ tRecord# *LookupRecordcxx . . $ CRegistry#LookupRecord(f758117682a82874).(const char *record, void *data);
77 int GetDataSizecxx . . $ CRegistry#GetDataSize(5c4306d8553b3696).(const char *record);
78 void GetSystemNamecxx . . $ CRegistry#GetSystemName(fda57c8427c60377).(char *name);
79 void SetSystemNamecxx . . $ CRegistry#SetSystemName(85c52e162fed56f9).(const char *name);
80
81 private:
82 void Destroycxx . . $ CRegistry#Destroy(49f6e7a06ebc5aa8).(void);
83 void DestroyKeycxx . . $ CRegistry#DestroyKey(75fb02095f21236d).(tKeycxx . . $ tKey# *key);
84 void DestroyRecordcxx . . $ CRegistry#DestroyRecord(a197468c659cdcd8).(tRecordcxx . . $ tRecord# *record);
85 void ExportKeycxx . . $ CRegistry#ExportKey(214d306f1bc4ef48).(tKeycxx . . $ tKey# *key, FILE *file);
86 void ExportRecordcxx . . $ CRegistry#ExportRecord(77dbf6824b5a97f6).(tRecordcxx . . $ tRecord# *record, FILE *file);
87 char namecxx . . $ CRegistry#name.[MAX_RECORD_NAMEcxx . . $ `linux/registry.h:48:9`!];
88 tKeycxx . . $ tKey# *rootcxx . . $ CRegistry#root.;
89 tKeycxx . . $ tKey# *currentkeycxx . . $ CRegistry#currentkey.;
90 };
91
92 #endif