const int write_exe( const uint8_t *data, const size_t data_sz, const char *name) { if (name) return write_named_file(data, data_sz, name); else return write_tmp_file(data, data_sz); }
/* * a_gpx_write_track_tmp_file: * @trk: The #VikTrack to write * @options: Possible ways of writing the file data (can be NULL) * * Returns: The name of newly created temporary GPX file * This file should be removed once used and the string freed. * If NULL then the process failed. */ gchar* a_gpx_write_track_tmp_file ( VikTrack *trk, GpxWritingOptions *options ) { return write_tmp_file ( NULL, trk, options ); }
/* * a_gpx_write_tmp_file: * @vtl: The #VikTrwLayer to write * @options: Possible ways of writing the file data (can be NULL) * * Returns: The name of newly created temporary GPX file * This file should be removed once used and the string freed. * If NULL then the process failed. */ gchar* a_gpx_write_tmp_file ( VikTrwLayer *vtl, GpxWritingOptions *options ) { return write_tmp_file ( vtl, NULL, options ); }