meson: Fix syntax in the auto-generated fpi-drivers file

Better to be nice everywhere :)
This commit is contained in:
Marco Trevisan (Treviño) 2019-12-14 16:45:11 +01:00
parent 6f2b1f97da
commit 8184e33dd6

View file

@ -152,13 +152,18 @@ drivers_type_list += '#include <glib-object.h>'
drivers_type_list += '#include "fpi-context.h"'
drivers_type_list += ''
drivers_type_func += 'void fpi_get_driver_types (GArray *drivers)'
drivers_type_func += ' {'
drivers_type_func += ' GType t;'
drivers_type_func += '{'
drivers_type_func += ' GType t;'
drivers_type_func += ''
idx = 0
foreach driver: drivers
drivers_type_list += 'extern GType (fpi_device_' + driver + '_get_type) (void);'
drivers_type_func += ' t = fpi_device_' + driver + '_get_type ();'
drivers_type_func += ' g_array_append_val (drivers, t);\n'
drivers_type_func += ' t = fpi_device_' + driver + '_get_type ();'
drivers_type_func += ' g_array_append_val (drivers, t);'
if idx != drivers.length() - 1
drivers_type_func += ''
idx += 1
endif
endforeach
drivers_type_list += ''
drivers_type_func += '}'