diff --git a/tools/cef_parser.py b/tools/cef_parser.py index 11d91a715..18f3a7e96 100644 --- a/tools/cef_parser.py +++ b/tools/cef_parser.py @@ -1053,21 +1053,6 @@ class obj_analysis: 'result_value' : None } - # check for simple direct translations - structuretypes = { - 'CefPrintInfo' : 'cef_print_info_t', - 'CefWindowInfo' : 'cef_window_info_t', - 'CefPopupFeatures' : 'cef_popup_features_t', - 'CefSettings' : 'cef_settings_t', - 'CefBrowserSettings' : 'cef_browser_settings_t', - 'CefURLParts' : 'cef_urlparts_t', - } - if value in structuretypes.keys(): - return { - 'result_type' : 'structure', - 'result_value' : structuretypes[value] - } - # check for simple direct translations simpletypes = { 'void' : 'void', @@ -1105,6 +1090,13 @@ class obj_analysis: 'result_type' : 'refptr', 'result_value' : get_capi_name(list[0], True)+'*' } + + # check for CEF structure types + if value[0:3] == 'Cef' and value[-4:] != 'List': + return { + 'result_type' : 'structure', + 'result_value' : get_capi_name(value, True) + } return None