1*c1d255d3SCy Schubert /* 2*c1d255d3SCy Schubert * Configuration parsing 3*c1d255d3SCy Schubert * Copyright (c) 2003-2019, Jouni Malinen <j@w1.fi> 4*c1d255d3SCy Schubert * 5*c1d255d3SCy Schubert * This software may be distributed under the terms of the BSD license. 6*c1d255d3SCy Schubert * See README for more details. 7*c1d255d3SCy Schubert */ 8*c1d255d3SCy Schubert 9*c1d255d3SCy Schubert #ifndef UTILS_CONFIG_H 10*c1d255d3SCy Schubert #define UTILS_CONFIG_H 11*c1d255d3SCy Schubert 12*c1d255d3SCy Schubert /** 13*c1d255d3SCy Schubert * wpa_config_get_line - Read the next configuration file line 14*c1d255d3SCy Schubert * @s: Buffer for the line 15*c1d255d3SCy Schubert * @size: The buffer length 16*c1d255d3SCy Schubert * @stream: File stream to read from 17*c1d255d3SCy Schubert * @line: Pointer to a variable storing the file line number 18*c1d255d3SCy Schubert * @_pos: Buffer for the pointer to the beginning of data on the text line or 19*c1d255d3SCy Schubert * %NULL if not needed (returned value used instead) 20*c1d255d3SCy Schubert * Returns: Pointer to the beginning of data on the text line or %NULL if no 21*c1d255d3SCy Schubert * more text lines are available. 22*c1d255d3SCy Schubert * 23*c1d255d3SCy Schubert * This function reads the next non-empty line from the configuration file and 24*c1d255d3SCy Schubert * removes comments. The returned string is guaranteed to be null-terminated. 25*c1d255d3SCy Schubert */ 26*c1d255d3SCy Schubert char * wpa_config_get_line(char *s, int size, FILE *stream, int *line, 27*c1d255d3SCy Schubert char **_pos); 28*c1d255d3SCy Schubert 29*c1d255d3SCy Schubert #endif /* UTILS_CONFIG_H */ 30