Simplify parsing of CEF structure types.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@190 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2011-02-22 00:07:19 +00:00
parent 0c0da498d0
commit 04bce7acad
1 changed files with 7 additions and 15 deletions

View File

@ -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