summaryrefslogtreecommitdiff
path: root/nice/gen-def.py
blob: fb6116c63707ad87c58501df868bd9d51f12f153 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python3
#
# gen-def.py LIBNICE.SYM
import os
import sys

try:
    sym_file = sys.argv[1]
except:
    print('Usage: gen-def.py SYM-FILE')
    exit(-1)

f = open(os.path.join(sym_file), 'r')

print('EXPORTS')
for line in f:
    print('    ' + line.strip())

f.close()