pidgin/pidgin

simple: Convert TCP listener to gio.

2020-05-16, Elliott Sales de Andrade
c010c54a719d
simple: Convert TCP listener to gio.

Note, this no longer defaults to a fixed range of ports (5060-5160), but
that appears unnecessary. The SIP RFC3261 says that 5060 is the default
if a port is not specified, but we always include our port in the Via
header. Thus there's no reason to restrict ports to any particular
range.
PROGS = [
'account_option',
'attention_type',
'circular_buffer',
'image',
'keyvaluepair',
'protocol_action',
'protocol_attention',
'protocol_xfer',
'queued_output_stream',
'smiley',
'smiley_list',
'trie',
'util',
'xmlnode'
]
test_ui = static_library(
'test-ui',
'test_ui.c',
'test_ui.h',
c_args: [
'-DTEST_DATA_DIR="@0@/data"'.format(meson.current_source_dir())
],
dependencies: [libpurple_dep, glib]
)
foreach prog : PROGS
e = executable('test_' + prog, 'test_@0@.c'.format(prog),
c_args : [
'-DTEST_DATA_DIR="@0@/data"'.format(meson.current_source_dir())
],
dependencies : [libpurple_dep, glib],
link_with: test_ui,
)
test(prog, e)
endforeach