|
|
|
|
@ -149,7 +149,7 @@ def patch_app_layer_parser_c(proto):
|
|
|
|
|
inlines = open(filename).readlines()
|
|
|
|
|
for line in inlines:
|
|
|
|
|
if line.find("SCRegisterTemplateParser") > -1:
|
|
|
|
|
output.write(line.replace("template", proto.lower()))
|
|
|
|
|
output.write(line.replace("Template", proto))
|
|
|
|
|
output.write(line)
|
|
|
|
|
open(filename, "w").write(output.getvalue())
|
|
|
|
|
|
|
|
|
|
@ -209,7 +209,7 @@ def logger_patch_output_c(proto):
|
|
|
|
|
output.write(inlines[i+3])
|
|
|
|
|
if line.find("SCTemplateLoggerLog") > -1:
|
|
|
|
|
output.write(inlines[i].replace("TEMPLATE", proto.upper()).replace(
|
|
|
|
|
"template", proto.lower()))
|
|
|
|
|
"Template", proto))
|
|
|
|
|
# RegisterSimpleJsonApplayerLogger( on its own line for clang-format
|
|
|
|
|
output.write(inlines[i-1])
|
|
|
|
|
output.write(line)
|
|
|
|
|
|