Skip to content

Commit

Permalink
Fix regenerate-miral-symbols-map
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGriffiths committed Jul 5, 2018
1 parent 8be8853 commit 2cb3fcf
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 11 deletions.
37 changes: 31 additions & 6 deletions src/miral/process_doxygen_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,12 @@ def _report(publish, symbol):
print('NOPUBLISH: {}'.format(symbol))

OLD_STANZAS = '''
MIRAL_2.0 {
global:
# miral::InternalClientLauncher::launch*;
_ZNK5miral22InternalClientLauncher6launchERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt8functionIFvN3mir6client10ConnectionEEERKS9_IFvSt8weak_ptrINSA_5scene7SessionEEEE;
# miral::StartupInternalClient::StartupInternalClient*;
_ZN5miral21StartupInternalClientC?ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8functionIFvN3mir6client10ConnectionEEES7_IFvSt8weak_ptrINS8_5scene7SessionEEEE;
extern "C++" {
miral::AddInitCallback::?AddInitCallback*;
miral::AddInitCallback::AddInitCallback*;
Expand Down Expand Up @@ -130,7 +133,7 @@ def _report(publish, symbol):
miral::DebugExtension::operator*;
miral::InternalClientLauncher::?InternalClientLauncher*;
miral::InternalClientLauncher::InternalClientLauncher*;
miral::InternalClientLauncher::launch*;
# miral::InternalClientLauncher::launch*;
miral::InternalClientLauncher::operator*;
miral::Keymap::?Keymap*;
miral::Keymap::Keymap*;
Expand Down Expand Up @@ -169,7 +172,7 @@ def _report(publish, symbol):
miral::SetWindowManagementPolicy::SetWindowManagementPolicy*;
miral::SetWindowManagementPolicy::operator*;
miral::StartupInternalClient::?StartupInternalClient*;
miral::StartupInternalClient::StartupInternalClient*;
# miral::StartupInternalClient::StartupInternalClient*;
miral::StartupInternalClient::operator*;
miral::Window::?Window*;
miral::Window::Window*;
Expand Down Expand Up @@ -405,17 +408,39 @@ def _report(publish, symbol):
MIRAL_2.2 {
global:
extern "C++" {'''
extern "C++" {
miral::ExternalClientLauncher::?ExternalClientLauncher*;
miral::ExternalClientLauncher::ExternalClientLauncher*;
miral::ExternalClientLauncher::launch*;
miral::ExternalClientLauncher::operator*;
typeinfo?for?miral::ExternalClientLauncher;
vtable?for?miral::ExternalClientLauncher;
};
} MIRAL_2.1;
END_NEW_STANZA = ''' };
} MIRAL_2.1;'''
MIRAL_2.3 {
global:
# miral::InternalClientLauncher::launch*;
_ZNK5miral22InternalClientLauncher6launchERKSt8functionIFvP10wl_displayEERKS1_IFvSt8weak_ptrIN3mir5scene7SessionEEEE;
# miral::StartupInternalClient::StartupInternalClient*;
_ZN5miral21StartupInternalClientC?ESt8functionIFvP10wl_displayEES1_IFvSt8weak_ptrIN3mir5scene7SessionEEEE;
'''

END_NEW_STANZA = '''} MIRAL_2.2;'''

def _print_report():
print(OLD_STANZAS)
new_symbols = False;
for symbol in sorted(SYMBOLS['public']):
formatted_symbol = ' {};'.format(symbol)
if formatted_symbol not in OLD_STANZAS and 'miral::' in formatted_symbol:
if not new_symbols:
new_symbols = True;
print(' extern "C++" {')
print(formatted_symbol)

if new_symbols: print(" };")
print(END_NEW_STANZA)

def _print_debug_info(node, attributes):
Expand Down
10 changes: 5 additions & 5 deletions src/miral/symbols.map
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@


MIRAL_2.0 {
global:
# miral::InternalClientLauncher::launch*;
# miral::InternalClientLauncher::launch*;
_ZNK5miral22InternalClientLauncher6launchERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt8functionIFvN3mir6client10ConnectionEEERKS9_IFvSt8weak_ptrINSA_5scene7SessionEEEE;
# miral::StartupInternalClient::StartupInternalClient*;
# miral::StartupInternalClient::StartupInternalClient*;
_ZN5miral21StartupInternalClientC?ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8functionIFvN3mir6client10ConnectionEEES7_IFvSt8weak_ptrINS8_5scene7SessionEEEE;
extern "C++" {
miral::AddInitCallback::?AddInitCallback*;
Expand Down Expand Up @@ -338,9 +337,10 @@ global:

MIRAL_2.3 {
global:
# miral::InternalClientLauncher::launch*;
# miral::InternalClientLauncher::launch*;
_ZNK5miral22InternalClientLauncher6launchERKSt8functionIFvP10wl_displayEERKS1_IFvSt8weak_ptrIN3mir5scene7SessionEEEE;

# miral::StartupInternalClient::StartupInternalClient*;
# miral::StartupInternalClient::StartupInternalClient*;
_ZN5miral21StartupInternalClientC?ESt8functionIFvP10wl_displayEES1_IFvSt8weak_ptrIN3mir5scene7SessionEEEE;

} MIRAL_2.2;

0 comments on commit 2cb3fcf

Please sign in to comment.