Imported Upstream version 0.1.17
[platform/upstream/libnice.git] / nice / gen-def.py
1 #!/usr/bin/env python3
2 #
3 # gen-def.py LIBNICE.SYM
4 import os
5 import sys
6
7 try:
8     sym_file = sys.argv[1]
9 except:
10     print('Usage: gen-def.py SYM-FILE')
11     exit(-1)
12
13 f = open(os.path.join(sym_file), 'r')
14
15 print('EXPORTS')
16 for line in f:
17     print('    ' + line.strip())
18
19 f.close()