| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2011 Google Inc. All rights reserved. | 2 # Copyright (c) 2011 Google Inc. All rights reserved. |
| 3 # Copyright (c) 2012 Intel Corporation. All rights reserved. | 3 # Copyright (c) 2012 Intel Corporation. All rights reserved. |
| 4 # | 4 # |
| 5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
| 6 # modification, are permitted provided that the following conditions are | 6 # modification, are permitted provided that the following conditions are |
| 7 # met: | 7 # met: |
| 8 # | 8 # |
| 9 # * Redistributions of source code must retain the above copyright | 9 # * Redistributions of source code must retain the above copyright |
| 10 # notice, this list of conditions and the following disclaimer. | 10 # notice, this list of conditions and the following disclaimer. |
| (...skipping 1864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1875 agentField=agent_field, | 1875 agentField=agent_field, |
| 1876 methodCode="".join([method_in_code, method_out_code]), | 1876 methodCode="".join([method_in_code, method_out_code]), |
| 1877 agentCallParamsDeclaration="\n".join(agent_call_params_declaration_l
ist), | 1877 agentCallParamsDeclaration="\n".join(agent_call_params_declaration_l
ist), |
| 1878 agentCallParams=", ".join(agent_call_param_list), | 1878 agentCallParams=", ".join(agent_call_param_list), |
| 1879 requestMessageObject=request_message_param, | 1879 requestMessageObject=request_message_param, |
| 1880 responseCook=normal_response_cook_text, | 1880 responseCook=normal_response_cook_text, |
| 1881 sendResponseCallParams=", ".join(send_response_call_params_list), | 1881 sendResponseCallParams=", ".join(send_response_call_params_list), |
| 1882 commandNameIndex=cmd_enum_name)) | 1882 commandNameIndex=cmd_enum_name)) |
| 1883 declaration_command_name = "%s.%s\\0" % (domain_name, json_command_name) | 1883 declaration_command_name = "%s.%s\\0" % (domain_name, json_command_name) |
| 1884 Generator.backend_method_name_declaration_list.append(" \"%s\"" % dec
laration_command_name) | 1884 Generator.backend_method_name_declaration_list.append(" \"%s\"" % dec
laration_command_name) |
| 1885 assert Generator.backend_method_name_declaration_current_index < 2 ** 16
, "Number too large for unsigned short." |
| 1885 Generator.backend_method_name_declaration_index_list.append(" %d," %
Generator.backend_method_name_declaration_current_index) | 1886 Generator.backend_method_name_declaration_index_list.append(" %d," %
Generator.backend_method_name_declaration_current_index) |
| 1886 Generator.backend_method_name_declaration_current_index += len(declarati
on_command_name) - 1 | 1887 Generator.backend_method_name_declaration_current_index += len(declarati
on_command_name) - 1 |
| 1887 | 1888 |
| 1888 backend_agent_interface_list.append(") = 0;\n") | 1889 backend_agent_interface_list.append(") = 0;\n") |
| 1889 | 1890 |
| 1890 class CallbackMethodStructTemplate: | 1891 class CallbackMethodStructTemplate: |
| 1891 @staticmethod | 1892 @staticmethod |
| 1892 def append_prolog(line_list): | 1893 def append_prolog(line_list): |
| 1893 pass | 1894 pass |
| 1894 | 1895 |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2118 validatorIfdefName=VALIDATOR_IFDEF_NAME)) | 2119 validatorIfdefName=VALIDATOR_IFDEF_NAME)) |
| 2119 | 2120 |
| 2120 backend_h_file.close() | 2121 backend_h_file.close() |
| 2121 backend_cpp_file.close() | 2122 backend_cpp_file.close() |
| 2122 | 2123 |
| 2123 frontend_h_file.close() | 2124 frontend_h_file.close() |
| 2124 frontend_cpp_file.close() | 2125 frontend_cpp_file.close() |
| 2125 | 2126 |
| 2126 typebuilder_h_file.close() | 2127 typebuilder_h_file.close() |
| 2127 typebuilder_cpp_file.close() | 2128 typebuilder_cpp_file.close() |
| OLD | NEW |