Bug 1910362 - Create new Nimbus helper r=aaronmt,ohorvath
[gecko.git] / xpcom / build / gen_process_types.py
blob9e16ecfd4ce4ff20d8d1044442eae6b5970a9fd0
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 from geckoprocesstypes import process_types
8 def main(output):
9 output.write(
10 """\
11 /* THIS FILE IS GENERATED BY gen_process_types.py - DO NOT EDIT */
12 """
15 for p in process_types:
16 output.write(
17 """
18 #ifndef SKIP_PROCESS_TYPE_%(allcaps_name)s
19 GECKO_PROCESS_TYPE(%(enum_value)d, %(enum_name)s, "%(string_name)s", """
20 """%(proc_typename)s, %(process_bin_type)s, %(procinfo_typename)s, """
21 """%(webidl_typename)s, %(allcaps_name)s)
22 #endif // SKIP_PROCESS_TYPE_%(allcaps_name)s
23 """
24 % {
25 "enum_value": p.enum_value,
26 "enum_name": p.enum_name,
27 "string_name": p.string_name,
28 "proc_typename": p.proc_typename,
29 "process_bin_type": p.process_bin_type,
30 "procinfo_typename": p.procinfo_typename,
31 "webidl_typename": p.webidl_typename,
32 "allcaps_name": p.allcaps_name,